//REDUCE HP PLAYER OUT OF ZONE
prontera,1,1,1 script AutoReduceHP HIDDEN_NPC,{
end;
OnTimer2000:
.@percent = -30;
.@size = getareaunits(BL_PC,"prontera",145,83,164,69,.@aid);
if (.@size > 0) {
for (.@i = 0; .@i < .@size; .@i++) {
if (attachrid(.@aid[.@i])) {
if (Hp <= MaxHp) {
specialeffect2 107;
percentheal .@percent, .@percent;
if (Hp < 5) {
warp "SavePoint",0,0;
}
}
detachrid;
}
}
}
initnpctimer;
end;
OnInit:
initnpctimer;
end;
}
hi rathena i have script from rathena, but i need to convert script if player out of area hp - 30 % every 2 second
can anyone help me please