/*
Healer (C) Oxxy
*/
prontera,150,150,6 script Healer#1::Healer 700,{
if(@HD > gettimetick(2)) {
mes "[Healer]";
mes "You have to wait "+(@HD - gettimetick(2))+" more seconds.";
close;
}
if(BaseLevel <= .freeHeal) {
percentheal 100,100;
if(.Delay) @HD = gettimetick(2) +.Delay;
end;
} else {
mes "[Healer]";
mes "I will take "+((BaseLevel-50)*5)+" Zeny from you.";
mes "Is that ok?";
if(select("Yes:No") == 2) close;
if(Zeny < ((BaseLevel-50)*5)) {
next;
mes "[Healer]";
mes "You don't have enought zeny to pay me.";
mes "You need "+(((BaseLevel-50)*5) - Zeny)+" more Zeny.";
close;
}
next;
Zeny = Zeny - ((BaseLevel-50)*5);
percentheal 100,100;
if(.Delay) @HD = gettimetick(2) +.Delay;
mes "[Healer]";
mes "Goodbye!";
if(.Delay) mes "You can use me again after "+.Delay+" seconds delay";
close;
}
OnInit:
.Delay = 30; // Delay in seconds;
.freeHeal = 50; // Level till you'll get free heal and buff
end;
}
//<map name>,<x>,<y>,<facing>%TAB%duplicate(<label>)%TAB%<NPC Name>%TAB%<sprite id>,<triggerX>,<triggerY>
prontera,151,151,6 duplicate(Healer) Healer#2 700