[Help] /hp command

07/07/2009 06:02 raidenx123#16
UMmm yeah i kinda posted the /hp command already =/

EDIT: Updated one to prevent bugs from reviving
Code:
if (Splitter[0] == "/hp")
{
         if (MyChar.Alive == true)
         MyChar.CurHP = MyChar.MaxHP;
         SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, MyChar.CurHP));
}
07/07/2009 06:34 PeTe Ninja#17
Quote:
Originally Posted by raidenx123 View Post
UMmm yeah i kinda posted the /hp command already =/

EDIT: Updated one to prevent bugs from reviving
Code:
if (Splitter[0] == "/hp")
{
         if (MyChar.Alive == true)
         MyChar.CurHP = MyChar.MaxHP;
         SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, MyChar.CurHP));
}
or you could do :D

Code:
if (MyChar.CurHP = 0)
return; 

and that stuffs :D but urs is same
07/08/2009 02:14 raidenx123#18
EHh sometimes on crappy sources when your dead it shows hp still (im talking crappy source :/)