viewing paste Unknown #22044 | Text

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
-       script  OnHPCheck       -,{
end;
 
OnPCLoginEvent:
addtimer 2000,strnpcinfo(3) + "::OnHpCheck";
end;
 
OnHpCheck:
if( Hp > MaxHp/10 ) {
addtimer 2000,strnpcinfo(3) + "::OnHpCheck";
        dispbottom "testing";
end;
}
if ( Hp < MaxHp/10 ) {
        atcommand "@effect 500";
        atcommand "@effect 563";
        soundeffect "voice_man5.wav", 0;
        soundeffect "heartbeat.wav", 0;
        dispbottom "HP under 10%";
addtimer 26000,strnpcinfo(3) + "::OnHpCheck";
end;
}
}
Viewed 402 times, submitted by unknown.