Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Afk training with exercise item.
#7
(02-07-2019, 11:12 AM)erleo Wrote: BBot/Data/bbot.items
It's not perfect but works.
Add in variables (Just change ID for use other weapon)
Weapon=28556

Quote:28555,1,100,0,200000,exercise bow
28543,100,0,200000,exercise bow
28556,100,0,200000,exercise rod
28559,16,0,0,0,ferumbras exercise dummy
28565,16,0,0,0,exercise dummy

Quote:1 {Exercise Weapon} When.SystemMessage(Dummy, You have stopped exercising) Exit() {Dummy} Cooldown.Create(Exercise Weapon, 40000) Cooldown.Rest(Attack Timer) Exit()

Quote:1000 {Dummy Timer} remainDW:=Cooldown.Rest(Exercise Weapon) !remainDW<=39400 VarDiv(remainDW, 1000) remainDWm:=!remainDW remainDWs:=!remainDW remainDWm:=!remainDWs VarDiv(remainDWm, 60) VarMod(remainDWs, 60) !remainDWs>10 [1] HUD.Print(2, 1, 17, 255, 48, 1070, Time back to use the dummy !remainDWm : !remainDWs) exit() {1} HUD.Print(2, 1, 17, 255, 48, 1070, Time back to use the dummy !remainDWm : 0!remainDWs) exit()

Quote:1000 {Use Exercise Weapon} Cooldown.Blocked(Exercise Weapon)==0 Cooldown.Blocked(Attack Timer)==0 Map.UseOn(!Weapon, 28559, :X, :Y, :Z, 6) Cooldown.Create(Attack Timer, 360000) Exit()

Quote:1000 {Attack Timer} remainDW:=Cooldown.Rest(Attack Timer) !remainDW<=354000 VarDiv(remainDW, 1000) remainDWm:=!remainDW remainDWs:=!remainDW remainDWm:=!remainDWs VarDiv(remainDWm, 60) VarMod(remainDWs, 60) !remainDWs>10 [1] HUD.Print(2, 1, 17, 255, 48, 1070, Attack Timer: !remainDWm : !remainDWs) exit() {1} HUD.Print(2, 1, 17, 255, 48, 1070, Attack Timer: !remainDWm : 0!remainDWs) exit()

Sorry for 'complaining' about ur free help, but i tried so hard to fix a bug on this macro, that now i have to give up and ask for a PRO help.

The problem is, the script requires that attack timer be = 0, but when the "You have stopped exercising" message arrives, this cooldown doesnt reset just iniciate the countdown for 40secs of blocked weapon time, ignoring completely the fact if has some remaining time of Attack Timer.


Edit: BBot doesnt have an simple action like Wait?
example:
When.SystemMessage(Dummy, You have stopped exercising)
Wait 40000
use item blablablabla on blablablabla
exit
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)