/*
Healer (C) Oxxy
*/
prontera,150,150,6 script Healer 700,{
if(@HD > gettimetick(2)) {
mes "[Healer"];
mes "You have to wait "+(@HD - gettimetick(2))+" more second.";
close;
}
if(BaseLevel <= .@freeHeal) {
percentheal 100,100;
if(.@Delay) @HD = gettimetick(2) +.@Delay;
end;
} else {
mes "I will take "+.@zenyNeeded+" Zeny from you.":
mes "Is that ok?";
if(select("Yes:No") == 2) close;
if(Zeny < .@zenyNeeded) {
mes "[Healer]";
mes "You don't have enought zeny to pay me.";
mes "You need "+(.@zenyNeeded - Zeny)+" more Zeny.";
close;
}
Zeny = Zeny - .@zenyNeeded;
percentheal 100,100;
if(.@Delay) @HD = gettimetick(2) +.@Delay;
end;
}
OnInit:
.@Delay = 30; // Delay in seconds;
.@zenyNeeded = (BaseLevel-50) * 5; // Change 5 to the wanted amount of zeny.
.@freeHeal = 50; // Level till you'll get free heal and buff
end;
}