- 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; } }