viewing paste Unknown #19071 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/*
    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 "[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;
}
Viewed 658 times, submitted by Guest.