Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Afk training with exercise item.
#1
Hello guys, i need ur help.

I want to train afk with exercise bow on training dummy.


When ur exercise bow end charges, server send a message "you stop exercising" (something like that), and i its the only thing that's possible to use to create this macro, i'm not experienced with bbot, so i need someone to help me Big Grin.

The macro should be: when server message "you stop exercising", need to wait 30secs to start train again, so will need a wait after this message of 35sec to be safe
then use item exercise bow id(28555) on training dummy id (29044).

Thanks <3
Reply
#2
Try this:

Code:
1 {Exercise Bow} When.SystemMessage(Training Dummy, you stop exercising ) Exit()  {Training Dummy} Cooldown.Blocked(Exercise Bow)==0 Map.UseOn(28555, 29044, :X, :Y, :Z, 6) Cooldown.Create(Exercise Bow, 35000) Exit()

But i think its not going to work becouse this ID's are not in BBot.Data, let me add.

Edit: Add this both lines in the last part of data/bbot.data. Use better 84.2.


Code:
28555,1,100,0,200000,exercise bow
29044,16,0,0,0,training dummy
Reply
#3
(02-07-2019, 08:30 AM)erleo Wrote: Try this:

Code:
1 {Exercise Bow} When.SystemMessage(Training Dummy, you stop exercising ) Exit()  {Training Dummy} Cooldown.Blocked(Exercise Bow)==0 Map.UseOn(28555, 29044, :X, :Y, :Z, 6) Cooldown.Create(Exercise Bow, 35000) Exit()

But i think its not going to work becouse this ID's are not in BBot.Data, let me add.

Edit: Add this both lines in the last part of data/bbot.data. Use better 84.2.


Code:
28555,1,100,0,200000,exercise bow
29044,16,0,0,0,training dummy

Oh, thanks man. But it doesn't work. I added the itens in bbot.items.txt.

[Image: yq6f4Po.png]

How i put in bbot, to u see if i messed up
[Image: UW7QlIv.png]


Code:
1 {Exercise Bow} When.SystemMessage(Ferumbras Exercise Dummy, You have stopped exercising ) Exit()  {Ferumbras Exercise Dummy} Cooldown.Blocked(Exercise Bow)==0 Map.UseOn(28555, 285559, :X, :Y, :Z, 6) Cooldown.Create(Exercise Bow, 35000) Exit()
Reply
#4
Are u playing masteria?

PD: fix the img i can't see
Reply
#5
(02-07-2019, 10:24 AM)erleo Wrote: Are u playing masteria?

PD: fix the img i can't see
nop, i'm playing fortera.

fix'd images.


EDIT: I'M SO DUMB, HOLY. I put 285559 in macro, but the real id is 28559.

I fixed, but 35sec cooldown doesnt work, it tries to use exercise bow without that delay. And it cant be a automatic macro, cause bbot error says that only be ONCE in macro options if has "When" script.
Reply
#6
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()
Reply
#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
#8
Macro.Wait(Delay)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)