Custom Buffer Request

Snaehild

New member
Messages
59
Points
0
Github
Snaehild
Emulator
Hi, does anyone have something like this? Saw this one on rathena but doesn't look like it's still working. Doesn't buff at all and makes character stuck at some point.
Can anyone help me about these scripts?
 
lv 50 or lower to buff  heal ab kyrie gloria magnificat.
 
lv 51-99 to buff heal ab.
 
Level 90 or higher to pay 1500z.
 
You can pay a one-hour 20000z
 
A delay in the buff for 3 seconds.

Code:
/*lv 50 or lower to buff  heal ab kyrie gloria magnificat.lv 51-99 to buff heal ab.Level 90 or higher to pay 1500z.You can pay a one-hour 20000z A delay in the buff for 3 seconds.*/prontera,150,150,4	script	load	112,{	if ( @timer >= gettimetick(2) )		{			dispbottom "You have to wait for : " + ( @timer - gettimetick(2) ) + " Seconds before another use.";			end;		}			if ( BaseLevel <= 50 )	{		///====================================================================		///ADD BUFFS AND EFFECTS HERE FOR 50 AND UNDER <-------------------		specialeffect2 313;	percentheal 100,100; //HEAL	}	else	{		if ( BaseLevel >= 90 )		{			if ( @allowhealtimer < gettimetick(2) )			{				mes "[Buffer]";				mes "The fee is 1,500z to use buffs at your level.";				mes "";				mes "You can also pay a fee for one hour of use at 20,000z";				close2;				switch(select("Pay the one time fee:Pay the Hour fee:Don't Pay!"))				{					case 1:						if (Zeny < 1500)						{								dispbottom "You do not have enough zeny!";							close;							}						else						{							set Zeny, Zeny - 1500;							break;						}											case 2:						if (Zeny < 20000 )						{								dispbottom "You do not have enough zeny!";							close;							}						else						{							set Zeny, Zeny - 20000;							set @allowhealtimer, gettimetick(2) + 3600;							break;						}					case 3:						close;										}			}			if ( @allowhealtimer )			{				dispbottom "You have : " + ( ( @allowhealtimer - gettimetick(2) ) / 60 ) + " Minutes of Buffs Remaining.";			}		}				///====================================================================		///ADD BUFFS AND EFFECTS HERE FOR 50 AND OVER <-------------------		specialeffect2 313;	percentheal 100,100; //HEAL	}		if ( @timer >= gettimetick(2) )		{		end;	}	else 	{		dispbottom "You have been blessed!!";		set @timer, gettimetick(2) + .healtimer;		close;	}	OnInit:	set .healtimer, 3; // 3 SECOND DELAY.}
 
Last edited by a moderator:
 
On line 17 you have an if function and a starting squiggly but it didn't contain an "else" after that squiggly ends.
 
 
Also when looking at it... the switch on line 26 case 1, they have more than 1,500 zeny, and it just deletes the zeny and nothing else... and on line 57.. you have an if function, with nothing there... if allowhealtimer...what? 
 
Back
Top