BBot - The best bot of the world
MACRO TO SHOW YOUR STAMINA - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: MACRO TO SHOW YOUR STAMINA (/thread-14405.html)



MACRO TO SHOW YOUR STAMINA - raphaelignacio - 03-28-2014

I dont know how to do this in bbot, but i need to know how to make division with macros, like:


Stamina:=Self.StaminaMins()
StaHours:=Stamina/60 < This need to be a int number
StaMins:=Stamina-StaHours*60
Hud.Setup ................

What's Wrong?

3800 {Stamina} Sta:=Self.StaminaMins() StaHours:=VarDiv(!Sta!, 60) StaLeft:=VarSub(!StaHours!, 14) HUD.Setup(3, 3, 255, 255, 255) HUD.Display(!StaLeft!)


RE: MACRO TO SHOW YOUR STAMINA - raphaelignacio - 04-07-2014

(03-28-2014, 10:47 AM)raphaelignacio Wrote: I dont know how to do this in bbot, but i need to know how to make division with macros, like:


Stamina:=Self.StaminaMins()
StaHours:=Stamina/60 < This need to be a int number
StaMins:=Stamina-StaHours*60
Hud.Setup ................

What's Wrong?

3800 {Stamina} Sta:=Self.StaminaMins() StaHours:=VarDiv(!Sta!, 60) StaLeft:=VarSub(!StaHours!, 14) HUD.Setup(3, 3, 255, 255, 255) HUD.Display(!StaLeft!)
up

I DID, THANKS FOR HELPING COMMUNITY!