28-06-2009, 07:32 PM
If you want a player HP/MP bar just for your own player, you can solely put this in, inside your bltplayer sub
It still works perfectly fine in MS4 the latest version I as just using it.
Code:
If Player(Index).Vital(HP) = 0 Then Exit Sub
Call DDS_BackBuffer.SetFillColor(RGB(255, 0, 0))
Call DDS_BackBuffer.DrawBox(X, Y + 32, X + 32, Y + 36)
Call DDS_BackBuffer.SetFillColor(RGB(0, 255, 0))
Call DDS_BackBuffer.DrawBox(X, Y + 32, X + ((Player(Index).Vital(HP) / 100) / (Player(Index).MaxHP / 100) * 32), Y + 36)
Call DDS_BackBuffer.SetFillColor(RGB(255, 0, 0))
Call DDS_BackBuffer.DrawBox(X, Y + 35, X + 32, Y + 39)
Call DDS_BackBuffer.SetFillColor(RGB(0, 0, 255))
Call DDS_BackBuffer.DrawBox(X, Y + 35, X + ((Player(MyIndex).Vital(MP) / 100) / (Player(MyIndex).MaxMP / 100) * 32), Y + 39)
It still works perfectly fine in MS4 the latest version I as just using it.