Jump to content

wonderman

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by wonderman

  1. 1 hour ago, Questune09 said:

    can you please help me for my problem

     

    why does this script not working properly /.... when i restart the server the hourly item reward is not working again

     

    even i recompile the server many times

     

    but before its working how does this happen

     

    BTW this is the script 

    
    -	script	hourlypoints	-1,{
     
    //--Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
       
    OnTimer30000:
    //Check if Vending (normal or @at)
    if(checkvending() >= 1) {
        dispbottom "The hourly badge rewards has stopped because you were vending . Please relog if you wish to start again.";
        stopnpctimer;
        end;
    }
     
    OnTimer60000:
    set @minute, @minute + 1;
    //Check for 1 Minute
    if(@minute == 60){
        set @minute,0;
        getitem 7859,1;
        dispbottom "You received 1 "+getitemname( 7859 )+" by staying ingame for 1 hour.";
        set @consecutive_hour, @consecutive_hour + 1;
        }
    //Check for 12 hours consecutive
        if(@consecutive_hour == 5) {
        set @consecutive_hour,0;
        getitem 7859,5;
        dispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 5 hours.";
        }
    stopnpctimer;
    initnpctimer;
    end;
     
    }

     thank you more power

    can you give me some error code in the console ? maybe i can help you

  2. On 4/12/2017 at 6:29 PM, NakedWolf said:

    how do i add this for a combo equip ?when the armor+shoes+shield+garment is equipes they player should have bubble gum effect continuously un till either one equipe is removed from teh combo

    armor+shoes+shield+garment=bubblegumeffect

    what should i add in

    db/re/item_combo_db.txt

    
    // Structure of Database:
    // ID:ID:ID:ID,{ ?_what should i add here_?} 
    

    thank you in advance

    item_id:item_id:item_id:item_id, { sc_start SC_ITEMBOOST,-1,200; }

  3. 10 minutes ago, nagz06 said:

    I guess this is for a normal Adrenaline Rush, What I need is "Full Adrenaline Rush" the one that the blacksmith have when soul linked. Thanks Anyway

    //For NPC
    prontera,150,150,5	script	Adrenaline Rush	717,{
    	set .@type,getiteminfo(getequipid(EQI_HAND_R),11); 
    	if (.@type==W_1HAXE||.@type==W_2HAXE||.@type==W_MACE) { 
    		//sc_start SL_BLACKSMITH,360000,5; //Blacksmith Spirit
    		sc_start SC_ADRENALINE2,600000,1; //Full Adrenaline Rush
    	}
    }
    
    //For Item Script
    set .@type,getiteminfo(getequipid(EQI_HAND_R),11); if (.@type==W_1HAXE||.@type==W_2HAXE||.@type==W_MACE) { sc_start SC_ADRENALINE2,600000,1; }

     

  4. 3 hours ago, nagz06 said:

    Hello guys! Just a newbie here! Anyone there who could give me a script for Full/Advance Adrenaline Rush Scroll? Very much appreciated!

    set .@type,getiteminfo(getequipid(EQI_HAND_R),11); if (.@type==W_1HAXE||.@type==W_2HAXE||.@type==W_MACE) { skilleffect "BS_ADRENALINE",0; sc_start SC_ADRENALINE,150000,5; }

    try this for item script

    prontera,150,150,5	script	Adrenaline Rush	717,{
    	set .@type,getiteminfo(getequipid(EQI_HAND_R),11); 
    	if (.@type==W_1HAXE||.@type==W_2HAXE||.@type==W_MACE) { 
    		skilleffect "BS_ADRENALINE",0; sc_start SC_ADRENALINE,150000,5; 
    	}
    }

    and this, for npc script :P

  5. 1 hour ago, NakedWolf said:

    need a script to add on

    when the player has the armor equipped it should give him bubblegum effect

    add to your item_db (your armor) script > sc_start SC_ITEMBOOST,1800000,200;

    example: 

    2309,Coat,Coat,4,22000,,1200,,42,,0,0xFFFFFFFE,63,2,16,,0,1,0,{ sc_start SC_ITEMBOOST,1800000,200; },{},{}

    don't forget to reloaditemdb or restart your server, good luck :D

    • Upvote 1
  6. //===== Hourly Points Script =========================================
    //===== By: ==========================================================
    //= nostafu
    //===== Current Version: =============================================
    //= 1.3
    //===== 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 12 hours consecutively
    //= or without logging out of the game. If the player is vending
    //= the script will then stop.
    //====================================================================
    -	Script	Hourly Points2	-1,{
    
    OnPCLoginEvent:
    	attachnpctimer ""+strcharinfo(0)+"";
    	initnpctimer;
    	end;
    
    OnTimer30000:
    	if(checkvending() >= 1 || checkchatting() == 1 &&  getgmlevel() == 0) {
    		dispbottom "Your YGG Reward have stopped because you were vending / chatting. Please relog if you wish to start again.";
    		stopnpctimer;
    		end;
    	}
    
    	if(getgmlevel() > 0 ){
    		//you are GM !!
    		end;
    	}
    
    	getmapxy( .@map$, .@x, .@y, 0 );
    	if(@map$ == .@map$ && @x == .@x && @y == .@y &&  getgmlevel() == 0) {
    		//set @afk, @afk + 1;
    	} else {
    		set @afk, 0;
    	}
    	set @map$, .@map$; set @x, .@x; set @y, .@y;
    
    	if(@afk == 360 &&  getgmlevel() == 0) {
    		dispbottom "Your YGG Reward have stopped because you were idle for 30 minutes. Please relog if you wish to start again.";
    		stopnpctimer;
    	}
    	end;
    
    OnTimer60000:
    	set #minute, #minute + 1;
    	if(getgmlevel() == 0)
    	{
    		if(#minute == 5){
    			set #minute,0;
    			set .@point_amt, 1; //Points to get every hour (default: 10)
    			getitem 7227, .@point_amt;
    			dispbottom "You received "+.@point_amt+" TCG by staying in OZAWA Ragnarok Online Server.";
    			dispbottom "Current Balance = "+countitem(7227)+" TCG";
    			set @consecutive_hour, @consecutive_hour + 1;
    		}
    
    		if(@consecutive_hour == 6) {
    			set @consecutive_hour,0;
    			set .@cpoint_amt, 50; //Points to get for 12 Consecutive hours (default: 50)
    			getitem 7227, .@cpoint_amt;
    			dispbottom "You received "+.@cpoint_amt+" TCG in playing for 1 consecutive hour.";
    			dispbottom "Current Balance = "+countitem(7227)+" TCG";
    		}
    		stopnpctimer;
    		initnpctimer;
    	} else {
    		dispbottom "You cannot get rewards, because you are GM !!";
    	}
    	end;
    }

    try this patch, add getgmlevel function, good luck !!

     

    use getgmlevel() > <gm id (0 for players, 99 for superadmin)> to solve your problem :D 

  7. On 3/30/2017 at 6:29 PM, Jaycee KyD said:

    go to trunk/src/map/atcommand.c then find prontera.gat

    maybe like this 
    (map_name, "prontera.gat", 3) == 0) 

     

    remove .gat then recompile & restart

    not found, sir... :')

     

    On 3/27/2017 at 11:41 PM, wonderman said:

    hi, i have a problem related to the user's commands, when I typed "/where" it will appear the following response:

    how to get rid of information that appears to be:

    thank you

    @Cydh @Emistry @Akkarin can you help me ? :)

  8. hi, i have a problem related to the user's commands, when I typed "/where" it will appear the following response:

    Quote

    "Prontera City, Capital of Rune Midgard (prontera.gat): 153, 178"

    how to get rid of information that appears to be:

    Quote

    "Prontera City, Capital of Rune Midgard: 153, 178" (without "(prontera.gat)" )

    thank you

×
×
  • Create New...