Jump to content

myserver

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by myserver

  1. Every 3hrs the npc will be show up to prontera then after 5mins the npc is disappear

    .

    -    script    mvp-ss    -1,{
        OnInit:
            set .map$,"guild_vs1-2";
        end;
        
        OnMinute34:
            announce "Attention to all players online",0;
            sleep 1000;
            announce "MVP summoner is start please warp to center of prontera",0;
            sleep 1000;            
            mapannounce .map$,"MVP summoner start in 5s",0;
            sleep 1000;
            mapannounce .map$,"5s",0;
            sleep 1000;
            mapannounce .map$,"4s",0;
            sleep 1000;
            mapannounce .map$,"3s",0;
            sleep 1000;
            mapannounce .map$,"2s",0;
            sleep 1000;
            mapannounce .map$,"1s",0;
            sleep 1000;        
            initnpctimer; // Start the timer
            monster .map$,0,0,"Angeling",1096,1,"mvp-ss::OnWave";
            monster .map$,0,0,"Archangeling",1388,1,"mvp-ss::OnWave";
            monster .map$,0,0,"Ghostring",1582,1,"mvp-ss::OnWave";
        end;
        
        OnWave:
            if(!mobcount(.map$,"mvp-ss::OnWave")){
                sleep 5000;
                mapannounce .map$,"First wave clear",0;
                sleep 2000;            
                mapannounce .map$,"Second wave start in 5s",0;
                sleep 1000;
                mapannounce .map$,"5s",0;
                sleep 1000;
                mapannounce .map$,"4s",0;
                sleep 1000;
                mapannounce .map$,"3s",0;
                sleep 1000;
                mapannounce .map$,"2s",0;
                sleep 1000;
                mapannounce .map$,"1s",0;
                sleep 1000;    
                monster .map$,0,0,"Maya Purple",1289,1,"mvp-ss::OnWaveFinal";
                monster .map$,0,0,"Mutant Dragon",1262,1,"mvp-ss::OnWaveFinal";
                monster .map$,0,0,"Tirfing",1204,"mvp-ss::OnWaveFinal";
        end;            
        OnWaveFinal:
                if(!mobcount(.map$,"mvp-ss::OnWaveFinal")){
                sleep 5000;
                mapannounce .map$,"GG",0;
                sleep 2000;
                mapannounce .map$,"Stage is Clear",0;
                sleep 2000;
                mapannounce .map$,"all players warp to Prontera",0;
                sleep 2000;
                mapwarp .map$,"prontera",180,180;
                }
            end;
        }
    }

     

  2. Spoiler

    -    script    mvp-ss    -1,{
        OnInit:
            set .map$,"guild_vs1-2";
        end;
        
        OnMinute34:
            announce "Attention to all players online",0;
            sleep 1000;
            announce "MVP summoner is start please warp to center of prontera",0;
            sleep 1000;            
            mapannounce .map$,"MVP summoner start in 5s",0;
            sleep 1000;
            mapannounce .map$,"5s",0;
            sleep 1000;
            mapannounce .map$,"4s",0;
            sleep 1000;
            mapannounce .map$,"3s",0;
            sleep 1000;
            mapannounce .map$,"2s",0;
            sleep 1000;
            mapannounce .map$,"1s",0;
            sleep 1000;        
            initnpctimer; // Start the timer
            monster .map$,0,0,"Angeling",1096,1,"mvp-ss::OnWave";
            monster .map$,0,0,"Archangeling",1388,1,"mvp-ss::OnWave";
            monster .map$,0,0,"Ghostring",1582,1,"mvp-ss::OnWave";
        end;
        
        OnWave:
            if(!mobcount(.map$,"mvp-ss::OnWave")){
                sleep 5000;
                mapannounce .map$,"First wave clear",0;
                sleep 2000;            
                mapannounce .map$,"Second wave start in 5s",0;
                sleep 1000;
                mapannounce .map$,"5s",0;
                sleep 1000;
                mapannounce .map$,"4s",0;
                sleep 1000;
                mapannounce .map$,"3s",0;
                sleep 1000;
                mapannounce .map$,"2s",0;
                sleep 1000;
                mapannounce .map$,"1s",0;
                sleep 1000;    
                monster .map$,0,0,"Maya Purple",1289,1,"mvp-ss::OnWaveFinal";
                monster .map$,0,0,"Mutant Dragon",1262,1,"mvp-ss::OnWaveFinal";
                monster .map$,0,0,"Tirfing",1204,"mvp-ss::OnWaveFinal";
        end;            
        OnWaveFinal:
                if(!mobcount(.map$,"mvp-ss::OnWaveFinal")){
                sleep 5000;
                mapannounce .map$,"GG",0;
                sleep 2000;
                mapannounce .map$,"Stage is Clear",0;
                sleep 2000;
                mapannounce .map$,"all players warp to Prontera",0;
                sleep 2000;
                mapwarp .map$,"prontera",180,180;
                }
            end;
        }
    }

    how can add the npc for this script . then every 60mins the npc will be show at prontera then after 5mins the npc is hide

  3. i use this script but the npc is not show 

    -    script    mvpsss    -1,{
        // Configuration
        OnInit:
            set .map$,"guild_vs1-1";
        end;
        
        // System
        OnMVP_Start:
                mapannounce .map$,"First wave ended blablabla",0;
            sleep 2000;
            set .@mobCount,0;
            initnpctimer; // Start the timer
            /*
                Uncomment this command if 'initnpctimer' doesn't clear the last timer.
                setnpctimer 0;
            */
            monster .map$,0,0,"Angeling",1096,1,"mvp-ss::OnWaveOne";
            monster .map$,0,0,"Archangeling",1288,1,"mvp-ss::OnWaveOne";
            monster .map$,0,0,"Ghostring",1120,1,"mvp-ss::OnWaveOne";
        end;
        
        OnWaveOne:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Maya Purple",1289,1,"mvp-ss::OnWaveTwo";
                monster .map$,0,0,"Mutant Dragon",1262,1,"mvp-ss::OnWaveTwo";
                monster .map$,0,0,"Tirfing",1204,1,"mvp-ss::OnWaveTwo";
            }
        end;
        
        OnWaveTwo:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Detale",1719,1,"mvp-ss::OnWaveThree";
                monster .map$,0,0,"Doppelganger",1046,1,"mvp-ss::OnWaveThree";
                monster .map$,0,0,"Dracula",1389,1,"mvp-ss::OnWaveThree";
                monster .map$,0,0,"Drake",1112,1,"mvp-ss::OnWaveThree";
            }
        end;
        
        OnWaveThree:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Amon Ra",1719,1,"mvp-ss::OnWaveFour";
                monster .map$,0,0,"Atros",1719,1,"mvp-ss::OnWaveFour";
                monster .map$,0,0,"Baphomet",1719,1,"mvp-ss::OnWaveFour";
                monster .map$,0,0,"Dark Lord",1719,1,"mvp-ss::OnWaveFour";
            }
        end;
        
        
        OnWaveFour:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Eddga",1115,1,"mvp-ss::OnWaveFive";
                monster .map$,0,0,"Evil Snake Lord",1418,1,"mvp-ss::OnWaveFive";
                monster .map$,0,0,"Hatii",1252,1,"mvp-ss::OnWaveFive";
                monster .map$,0,0,"Golden Thief Bug",1086,1,"mvp-ss::OnWaveFive";
            }
        end;
        
        OnWaveFive:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Ifrit",1832,1,"mvp-ss::OnWaveSix";
                monster .map$,0,0,"Incantation Samurai",1492,1,"mvp-ss::OnWaveSix";
                monster .map$,0,0,"Stormy Knight",1251,1,"mvp-ss::OnWaveSix";
            }
        end;
        
        OnWaveSix:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Ktullanux",1779,1,"mvp-ss::OnWaveSeven";
                monster .map$,0,0,"Lady Tanee",1688,1,"mvp-ss::OnWaveSeven";
                monster .map$,0,0,"Lord of Death",1378,1,"mvp-ss::OnWaveSeven";
                monster .map$,0,0,"Maya",1147,1,"mvp-ss::OnWaveSeven";
            }
        end;
        
        OnWaveSeven:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Mistress",1059,1,"mvp-ss::OnWaveEight";
                monster .map$,0,0,"Moonlight Flower",1150,1,"mvp-ss::OnWaveEight";
                monster .map$,0,0,"Orc Hero",1087,1,"mvp-ss::OnWaveEight";
                monster .map$,0,0,"Orc Lord",1190,1,"mvp-ss::OnWaveEight";
            }
        end;
        
        OnWaveEight:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"Osiris",1038,1,"mvp-ss::OnWaveNine";
                monster .map$,0,0,"Pharaoh",1157,1,"mvp-ss::OnWaveNine";
                monster .map$,0,0,"Phreeoni",1159,1,"mvp-ss::OnWaveNine";
            }
        end;
        
        OnWaveNine:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                monster .map$,0,0,"RSX-0806",1623,1,"mvp-ss::OnWaveTen";
                monster .map$,0,0,"Tao Gunka",1583,1,"mvp-ss::OnWaveTen";
                monster .map$,0,0,"Turtle General",1312,1,"mvp-ss::OnWaveTen";
                monster .map$,0,0,"Vesper",1685,1,"mvp-ss::OnWaveTen";
            }
        end;
        
        OnWaveTen:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 3){
                mapannounce .map$,"First wave ended blablabla",0;
                set .@mobCount,0;
                sleep 2000;
                mapannounce .map$,"First wave ended blablabla",0;
                sleep 2000;
                monster .map$,0,0,"Valkyrie Randgris",1765,1,"mvp-ss::OnWaveFinal";
                monster .map$,0,0,"Beelzebub",1874,1,"mvp-ss::OnWaveFinal";
            }
        end;
        
        OnWaveFinal:
            set .@mobCount, .@mobCount + 1;
            if(.@mobCount == 2){
                stopnpctimer;
                mapannounce .map$,"GG",0;
                /*
                    Now do whatever you want with the finalist
                */
            }
        end;
        
        
        OnMinute01:
            killmonster .map$,"all";
            cleanmap .map$;
            mapannounce "prontera",156,175," has entered the PVP Arena!",0;
            sleep 2000;
            mapwarp .map$,"Prontera",180,180;
        end;
    }

     

  4. 
    how to fix this please i need help
    
    
    -	script	mvp-ss	-1,{
    	// Configuration
    	OnInit:
    		set .map$,"guild_v5";
    	end;
    	
    	// System
    	OnMVP_Start:
    		mapannounce .map$,"Begining blablabla";
    		sleep 2000;
    		set .@mobCount,0;
    		initnpctimer; // Start the timer
    		/*
    			Uncomment this command if 'initnpctimer' doesn't clear the last timer.
    			setnpctimer 0;
    		*/
    		monster .map$,0,0,"Angeling",1096,1,"mvp-ss::OnWaveOne";
    		monster .map$,0,0,"Archangeling",1288,1,"mvp-ss::OnWaveOne";
    		monster .map$,0,0,"Ghostring",1120,1,"mvp-ss::OnWaveOne";
    	end;
    	
    	OnWaveOne:
    		set .@mobCount++;
    		if(.@mobCount == 3){
    			mapannounce .map$,"First wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Maya Purple",1289,1,"mvp-ss::OnWaveTwo";
    			monster .map$,0,0,"Mutant Dragon",1262,1,"mvp-ss::OnWaveTwo";
    			monster .map$,0,0,"Tirfing",1204,1,"mvp-ss::OnWaveTwo";
    		}
    	end;
    	
    	OnWaveTwo:
    		set .@mobCount++;
    		if(.@mobCount == 3){
    			mapannounce .map$,"Second wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Detale",1719,1,"mvp-ss::OnWaveThree";
    			monster .map$,0,0,"Doppelganger",1046,1,"mvp-ss::OnWaveThree";
    			monster .map$,0,0,"Dracula",1389,1,"mvp-ss::OnWaveThree";
    			monster .map$,0,0,"Drake",1112,1,"mvp-ss::OnWaveThree";
    		}
    	end;
    	
    	OnWaveThree:
    		set .@mobCount++;
    		if(.@mobCount == 4){
    			mapannounce .map$,"Third wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Amon Ra",1719,1,"mvp-ss::OnWaveFour";
    			monster .map$,0,0,"Atros",1719,1,"mvp-ss::OnWaveFour";
    			monster .map$,0,0,"Baphomet",1719,1,"mvp-ss::OnWaveFour";
    			monster .map$,0,0,"Dark Lord",1719,1,"mvp-ss::OnWaveFour";
    		}
    	end;
    	
    	
    	OnWaveFour:
    		set .@mobCount++;
    		if(.@mobCount == 4){
    			mapannounce .map$,"Fourth wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Eddga",1115,1,"mvp-ss::OnWaveFive";
    			monster .map$,0,0,"Evil Snake Lord",1418,1,"mvp-ss::OnWaveFive";
    			monster .map$,0,0,"Hatii",1252,1,"mvp-ss::OnWaveFive";
    			monster .map$,0,0,"Golden Thief Bug",1086,1,"mvp-ss::OnWaveFive";
    		}
    	end;
    	
    	OnWaveFive:
    		set .@mobCount++;
    		if(.@mobCount == 4){
    			mapannounce .map$,"Fifth wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Ifrit",1832,1,"mvp-ss::OnWaveSix";
    			monster .map$,0,0,"Incantation Samurai",1492,1,"mvp-ss::OnWaveSix";
    			monster .map$,0,0,"Stormy Knight",1251,1,"mvp-ss::OnWaveSix";
    		}
    	end;
    	
    	OnWaveSix:
    		set .@mobCount++;
    		if(.@mobCount == 3){
    			mapannounce .map$,"Sixth wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Ktullanux",1779,1,"mvp-ss::OnWaveSeven";
    			monster .map$,0,0,"Lady Tanee",1688,1,"mvp-ss::OnWaveSeven";
    			monster .map$,0,0,"Lord of Death",1378,1,"mvp-ss::OnWaveSeven";
    			monster .map$,0,0,"Maya",1147,1,"mvp-ss::OnWaveSeven";
    		}
    	end;
    	
    	OnWaveSeven:
    		set .@mobCount++;
    		if(.@mobCount == 4){
    			mapannounce .map$,"Seventh wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Mistress",1059,1,"mvp-ss::OnWaveEight";
    			monster .map$,0,0,"Moonlight Flower",1150,1,"mvp-ss::OnWaveEight";
    			monster .map$,0,0,"Orc Hero",1087,1,"mvp-ss::OnWaveEight";
    			monster .map$,0,0,"Orc Lord",1190,1,"mvp-ss::OnWaveEight";
    		}
    	end;
    	
    	OnWaveEight:
    		set .@mobCount++;
    		if(.@mobCount == 4){
    			mapannounce .map$,"Eight wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"Osiris",1038,1,"mvp-ss::OnWaveNine";
    			monster .map$,0,0,"Pharaoh",1157,1,"mvp-ss::OnWaveNine";
    			monster .map$,0,0,"Phreeoni",1159,1,"mvp-ss::OnWaveNine";
    		}
    	end;
    	
    	OnWaveNine:
    		set .@mobCount++;
    		if(.@mobCount == 3){
    			mapannounce .map$,"Nineth wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			monster .map$,0,0,"RSX-0806",1623,1,"mvp-ss::OnWaveTen";
    			monster .map$,0,0,"Tao Gunka",1583,1,"mvp-ss::OnWaveTen";
    			monster .map$,0,0,"Turtle General",1312,1,"mvp-ss::OnWaveTen";
    			monster .map$,0,0,"Vesper",1685,1,"mvp-ss::OnWaveTen";
    		}
    	end;
    	
    	OnWaveTen:
    		set .@mobCount++;
    		if(.@mobCount == 4){
    			mapannounce .map$,"Tenth wave ended blablabla";
    			set .@mobCount,0;
    			sleep 2000;
    			mapannounce .map$,"Becareful final wave blablabla";
    			sleep 2000;
    			monster .map$,0,0,"Valkyrie Randgris",1765,1,"mvp-ss::OnWaveFinal";
    			monster .map$,0,0,"Beelzebub",1874,1,"mvp-ss::OnWaveFinal";
    		}
    	end;
    	
    	OnWaveFinal:
    		set .@mobCount++;
    		if(.@mobCount == 2){
    			stopnpctimer;
    			mapannounce .map$,"GG";
    			/*
    				Now do whatever you want with the finalist
    			*/
    		}
    	end;
    	
    	
    	OnTimer3600000:
    		killmonster .map$,"all";
    		cleanmap .map$;
    		mapannounce "Time Ended";
    		sleep 2000;
    		mapwarp .map$,"Prontera",180,180;
    	end;
    }
    
    
    
    
    
  5. Spoiler

    //===== rAthena Script ======================================= 
    //= Find the Mushroom
    //===== By: ================================================== 
    //= Mysterious
    //===== Current Version: ===================================== 
    //= 3.6a
    //===== Compatible With: ===================================== 
    //= rAthena Project
    //===== Description: ========================================= 
    //= Find the Mushroom - random amount of Mushrooms spawns in random maps.
    //= Players need to find these mushrooms and kill them to gain prizes!
    //===== Additional Comments: =================================
    //= 3.0 Fully Functional with Rewritten script. [Mysterious]
    //= 3.6a Slightly edited. [Euphy]
    //============================================================ 

    prontera,142,228,6    script    Find the Mushroom    1084,{
        mes "[ Find The Mushroom ]";
        if (.status == 1) {
            .@count = mobcount( .event_map$, strnpcinfo(0) + "::OnMobKilled" );
            if (.@count > 0) {
                mes "There are " + .@count + " Mushrooms left in " + .event_map$ + "!";
                mes "Find and kill the mushrooms to gain " + getitemname(.prize) + "!";
                close;
            }
            .event_map$ = "";
            .status = 0;
            mes "All the mushrooms are killed?";
        }
        mes "There is no event at the moment!";
        if (.status || getgmlevel() < .GM) close;
        mes "Start the event?";
        next;
        if (select("- No:- Yes") == 1) close;
        donpcevent strnpcinfo(0) + "::OnMinute10";
        mes "[ Find The Mushroom ]";
        mes "Event started!";
        close;

    OnInit:
        .prize = 512;    // Reward item ID
        .amount = 10;    // Reward item amount
        .GM = 60;        // GM level required to access NPC
        setarray .maps_list$[0],"izlude","geffen","morocc","prontera"; // Possible maps
        end;

    OnMinute10:    // Start time (every hour)
        if (.status) end;
        .status = 1;
        .@spawn = rand(1,10);    // How many Mushrooms should spawn?
        .event_map$ = .maps_list$[ rand(getarraysize(.maps_list$)) ];
        .@label$ = strnpcinfo(0) + "::OnMobKilled";
        killmonster .event_map$, .@label$;
        monster .event_map$,0,0,"Please don't kill me!",1084,.@spawn, .@label$;
        announce "Find the Mushroom : Total of " + .@spawn + " Mushrooms have been spawned in " + .event_map$ + "!",0;
        sleep 2500;
        announce "Find the Mushroom : Every Mushroom you kill will give you " + getitemname(.prize) + "!",0;
        end;

    OnMobKilled:
        if (playerattached() == 0)
            end;
        getitem .prize, .amount;
        .@spawn = mobcount( .event_map$, strnpcinfo(0) + "::OnMobKilled" );
        if (.@spawn > 0)
            announce "[ " + strcharinfo(0) + " ] has killed a Mushroom. There are now " + .@spawn + " Mushroom(s) left.",bc_map;
        else {
            announce "The Find the Mushroom Event has ended. All the Mushrooms have been killed.",0;
            .status = 0;
            .event_map$ = "";
        }
        end;
    }
     

     

    how to convert the reward to cash point

  6. On 1/12/2018 at 6:46 PM, Amidamaru said:
    
    //===== Hourly Points Script =========================================
    //===== By: ==========================================================
    //= GorthexTiger modified by Nibi
    //===== Current Version: =============================================
    //= 1.4.1
    //===== Compatible With: =============================================
    //= Any eAthena Version
    //===== Description: =================================================
    //= Get Points every successful hours of gameplay, you cannot get
    //= the points even if you miss a second or a minute. A player will
    //= get a very big bonus if they played 3 hours consecutively
    //= or without logging out of the game. If the player is vending
    //= the script will then stop.
    //===== Additional Comments: =========================================
    //= You can modify the script to your liking.
    //= The default points is Free Points change it anyway if you like.
    //= 1.1 = Check Chatting too
    //= 1.2 = 5 Minute Idle Check & @at/@autotrade check.
    //= 1.3 = Corrected the current balance line on 12 Hours Consecutive
    //= 1.4 = Added command to check remaining time and updated idle check. (Skorm)
    //= 1.4.1 = Modified the msgs to display according to .timer. (Skorm)
    //====================================================================
    -	script	hourlypoints3	-1,{
        
    OnPointGet:
    	//Check for idle.
    	while(checkvending() >= 1 || checkchatting() == 1 || checkidle() >= .idle) {
    		if( .@mes$ == "" ) {
    			dispbottom set( .@mes$, "The hourly points event stopped because you were vending, chatting, or idle!" );
    			set @hourly_points_timer, 0;
    		}
    		sleep2 .delay;
    	}
    	
    	@consecutive_timer++;
    	.@time_string$ = Time2Str( @consecutive_timer * ( .timer / 1000 ) );
    	dispbottom "You received "+.points+" Free Point(s) by staying ingame for 1 hour.";
    	#KAFRAPOINTS = #KAFRAPOINTS + .points;
    	dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Point(s)";
    	@consecutive_bonus++;
    
    	//Check for consecutive timer.
    	if(@consecutive_bonus == .cdelay) {
    		@consecutive_bonus = 0;
    		#KAFRAPOINTS = #KAFRAPOINTS + .cpoints;
    		dispbottom "You receive a bonus "+.cpoints+" Free Point(s) by playing for minimum 3 hours consecutively!!!";
    		dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Point(s)";
    	}
    	
    OnPCLoginEvent:
    	addtimer .timer,"hourlypoints3::OnPointGet";
    	@hourly_points_timer = gettimetick(2) + ( .timer / 1000 );
    	end;
    	
    OnCheck:
    	message strcharinfo(0),@hourly_points_timer ? Time2Str( @hourly_points_timer )+" Remaining.":"Something went wrong relog!";
    	end;
    
    OnInit:
    	bindatcmd "check","hourlypoints3::OnCheck"; //@check to view time till next point.
    	.timer   = 1000*60*60; //Timer in milliseconds. ( Default: 1000*60*60 [ = 1 Hour ] )
    	.cdelay  = 3;          //Delay before receiving the consecutive bonus. ( Default: 3 [ { ~ 3 Hours } *Using default timer ] )
    	.cpoints = 10;         //Points gained for consecutive time online. ( Default: 10 )
    	.points  = 1;          //Normal points gained. ( Default: 1 )
    	.delay   = 1000;       //Delay for idle re-check check. ( Default: 1000 [ = 1 Second ] )
    	.idle    = 60*5;       //Player is idle after not moving for this many seconds. ( Default: 60*5 [ = 5 Minutes ] )
    }

    Here, you may use this hourlypoints script. i've tested and it's functioning in my server

    each hour (except idle or vending) you get 1 #KAFRAPOINTS or Freepoint

    you can change into getitem instead of #KAFRAPOINTS

    CMIIW

    how to convert this to cashpoint

  7. -    script    PVPPOINTS    -1,{
    OnPCKillEvent:
    getmapxy.@map$,.@x,.@y,0;
    if(getcharid(3)==killedrid) end;
    if(.@map$ != "pvp_y_1-2") end;

    set .@player1, getcharid(3);
    set .@player2, killedrid;

    attachrid(.@player2);
    set .@player2points, #CASHPOINTS;
    if(.@player2points) {
     set #CASHPOINTS, #CASHPOINTS - 1;
     dispbottom "You Lost 1 Cash Point from "+rid2name(killerrid);
    }
     emotion e_sob,1;

    attachrid(.@player1);
    if(.@player2points) {
     set #CASHPOINTS, #CASHPOINTS + 1;
     dispbottom "You Gained 1 Cash Points from "+rid2name(killedrid);
    }
    else
     dispbottom "Sorry no cash points on the "+rid2name(killedrid);
     emotion e_meh,1;
    end;
    }

     

     

    how to add a npc then how the npc how many player inside of the map

  8. Every killed on pvp area the player have a cashpoint but she/he lose detactive or lose 1 point every die inside of the pvp area . then the npc check the ip of the player if the same to other player inside of pvp area she/he not allowed to enter

  9. On 9/4/2018 at 2:29 AM, sader1992 said:
    
    bindatcmd "<command>","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>};

    atcommand level

     

    
    -	script	atcmd_noitem	-1,{
    OnInit:
    	bindatcmd("item",strnpcinfo(3)+"::OnAtcommand",0,99);
    	setarray .item_restrict,607,501;	
    end;
    OnAtcommand:
    	.@itemid = atoi(.@atcmd_parameters$[0]);
    	if(!getgmlevel()){
    		if(inarray(.item_restrict,.@itemid) != -1){
    			message strcharinfo(0),"You cannot create this item.";
    			end;
    		}	
    	}
    	if(getitemname(.@itemid) != "null"){
    		.@quantity = atoi( .@atcmd_parameters$[1] );
    		if ( .@quantity < 1 ) .@quantity = 1;
    		getitem .@itemid,.@quantity;
    	}
    end;
    }

     

    same issue the normal player cannot use the @item any item. the command is not working from the normal player

     

     

    when i paste to renewal i got error 

    1.png

  10. same error sir

     

    1.png

     

    i used this script there are no error but the normal playerhe cannot use @item any item from ratemyserver

     

     

    -    script    atcmd_noitem    -1,{
    OnInit:
        bindatcmd "item", "atcmd_noitem::OnAtcommand";
        setarray .item_restrict,
            607, //1st item to be restricted
            501; //2nd item to be restricted
        .item_restrict_size = getarraysize( .item_restrict );
        end;
    OnAtcommand:
        .@gmlevel = getgmlevel();
        if( .@gmlevel && .@atcmd_numparameters ){
            .@itemid = atoi( .@atcmd_parameters$[0] );
            if( .@gmlevel < 0 ){
                for( .@i = 0; .@i < .item_restrict_size; .@i++ )
                    if( .@itemid == .item_restrict[.@i] ){
                        message strcharinfo(0),"You cannot create this item.";
                        end;
                    }
            }
            if( getitemname( .@itemid ) != "null" ){
                .@quantity = atoi( .@atcmd_parameters$[1] );
                if ( .@quantity < 1 ) .@quantity = 1;
                getitem .@itemid,.@quantity;
            }
        }
        end;

    }

  11. i got error from the 1st choice

    1.png

     

     

    Spoiler

    //By Capuche

    -    script    atcmd_noitem    -1,{
    OnInit:
        bindatcmd "item",strnpcinfo(3)+"::OnAtcommand";
        setarray .item_restrict,
            607, //1st item to be restricted
            501; //2nd item to be restricted
        .item_restrict_size = getarraysize( .item_restrict );
        end;
    OnAtcommand:
        .@gmlevel = getgmlevel();
        if( .@gmlevel && .@atcmd_numparameters ){
            .@itemid = atoi( .@atcmd_parameters$[0] );
            if( .@gmlevel < 99 ){
                for( .@i = 0; .@i < .item_restrict_size; .@i++ )
                    if( .@itemid == .item_restrict[.@i] ){
                        message strcharinfo(0),"You cannot create this item.";
                        end;
                    }
            }
            if( getitemname( .@itemid ) != "null" ){
                .@quantity = atoi( .@atcmd_parameters$[1] );
                if ( .@quantity < 1 ) .@quantity = 1;
                getitem .@itemid,.@quantity;
            }
        }
        end;

    }

     

×
×
  • Create New...