viewing paste Unknown #19064 | 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
/*
    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;
}
Viewed 679 times, submitted by Guest.