/*
Healer (C) Oxxy
*/
prontera,150,150,6 script Healer 700,{
if(@HD > gettimetick(2)) {
message strcharinfo(0),"You have to wait "+(@HD - gettimetick(2))+" more seconds to use Healer again.";
end;
}
if(BaseLevel <= .@freeHeal) {
percentheal 100,100;
if(.@Delay) @HD = gettimetick(2) +.@Delay;
end;
} else {
if(Zeny < .@zenyNeeded) {
message strcharinfo(0),"You don't have enough zeny. You need "+(.@zenyNeeded - Zeny)+" more Zeny to use Healer.";
end;
}
Zeny = Zeny - .@zenyNeeded;
percentheal 100,100;
if(.@Delay) @HD = gettimetick(2) +.@Delay;
end;
}
OnInit:
.@Delay = 30; // Delay in seconds;
.@zenyNeeded = BaseLevel * 5; // Change 5 to the wanted amount of zeny.
.@freeHeal = 50; // Level till you'll get free heal and buff
end;
}