BBot - The best bot of the world
These macros crash my bbot - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: These macros crash my bbot (/thread-11250.html)



These macros crash my bbot - Bbotone - 08-09-2013

0 {1} Self.Health() stopfield:=0 Self.Health()
3000 {2} !stopfield!==0 Misc.ItemCountEx(266)<3 stopfield:=1 Killer.Stop() Cavebot.Stop() Macro.Wait(20000) posx:=Self.X() posy:=Self.Y() posz:=Self.Z() Map.Thrown(3031, 1, !posx!, !posy!, !posz!) Macro.Wait(700) Map.UseOn(3148, 3031, !posx!, !posy!, !posz!, 0) Macro.Wait(65000) Status.Poison()==1 [checkfire] stopfield:=0 {checkfire} Status.Fire()==1 [checkenergy] stopfield:=0 {checkenergy} Status.Energy()==1 stopfield:=0 Self.Health()

(if it doesnt paste in bbot from forum, paste it in notepad, then copy again and paste on bbot macros, bbot crashed when I copy these macros from forum edit page)

macro "2" crashes when debugged or activated the auto macros

macro "2" plain text:
------------------------
!stopfield!==0
Misc.ItemCountEx(266)<3
stopfield:=1
Killer.Stop()
Cavebot.Stop()
Macro.Wait(20000)
posx:=Self.X()
posy:=Self.Y()
posz:=Self.Z()
Map.Thrown(3031, 1, !posx!, !posy!, !posz!)
Macro.Wait(700)
Map.UseOn(3148, 3031, !posx!, !posy!, !posz!, 0)
Macro.Wait(65000)
Status.Poison()==1 [checkfire]
stopfield:=0
{checkfire}
Status.Fire()==1 [checkenergy]
stopfield:=0
{checkenergy}
Status.Energy()==1
stopfield:=0
Self.Health()
--------------------------
it's weird because when I removed the lines "Macro.Wait(20000)" and "Macro.Wait(65000)", it debugged fine


RE: These macros crash my bbot - Rudek1212 - 08-09-2013

I don't accualy know what this macro is supposed to do (i belive use def on fields) but it doesn't crash your bot, it only freezes it for 20 and 65 sec. I belive it is bug in macro command "Macro.Wait()". When You try to do something in bbot when this command is running it freezes bbot for amount of time defined in (). I found it out yesterday hen i tried to make afk edron servant cave cleaner. It should be fixed soon.

BTW You can still use bot when this macro is not running but i see You have to uncheck Auto Macros Enabled.