//===== rAthena Script =======================================
//= Healer
//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Basic healer script.
//============================================================
- script Healer 909,{
if (getbrokenid(1)) repairall;
getinventorylist;
while (.@i < @inventorylist_count) {
if (!@inventorylist_identify[.@i]) {
delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[.@i],1;
}
.@i++;
}
.@t = 0; // Delay Seconds.
if (!@h) {
@h = 1;
.@hp = MaxHP-HP;
while (.@t) {
dispbottom "Wait for "+.@t+" second"+((.@t>1)?"s":"")+".";
sleep2 1000;
.@t--;
}
if (Zeny<10000) {
dispbottom "You don't have enough Zeny for the Service!";
end;
}
Zeny -= 10000;
dispbottom "10,000z was removed for healing payment.";
percentheal 100,100;
specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
@h = 0;
}
end;
}