prontera,158,193,4 script Healer 742,13,13,{
.@Delay = 5; // Heal delay, in seconds
if (@HD > gettimetick(2))
end;
getmapxy( .@map$, .@x, .@y, 0 );
if( distance( .x, .y, .@x, .@y ) <= 5 )
if( hp != maxhp )
sc_end sc_stone;
sc_end sc_freeze;
sc_end sc_sleep;
sc_end sc_curse;
sc_end sc_silence;
sc_end sc_confusion;
sc_end sc_blind;
sc_end sc_bleeding;
sc_end sc_decreaseagi;
sc_end sc_poison;
sc_end sc_hallucination;
sc_end sc_stripweapon;
sc_end sc_striparmor;
sc_end sc_striphelm;
sc_end sc_stripshield;
sc_end sc_changeundead;
sc_end sc_orcish;
sc_end sc_berserk;
sc_end sc_ske;
sc_end sc_swoo;
sc_end sc_ska;
specialeffect2 EF_INCAGILITY;
sc_start SC_INCREASEAGI,240000,10;
specialeffect2 EF_BLESSING;
sc_start SC_BLESSING,240000,10;
specialeffect2 EF_HEAL2;
percentheal 100,100;
if (.@Delay)
@HD = gettimetick(2) + .@Delay;
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++;
}
while (getbrokenid(1)) {
repair(1);
set .@i, .@i +1;
}
end;
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++;
}
end;
}
This script works fine on rAthena but I want to use this script on my eAthena server. How come there's an error?
Can anyone please fix this for me?