Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Afk training with exercise item.
02-07-2019, 06:09 AM
Post: #1
Afk training with exercise item.
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
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-07-2019, 08:30 AM (This post was last modified: 02-07-2019 08:35 AM by erleo.)
Post: #2
RE: Afk training with exercise item.
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

Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-07-2019, 10:23 AM (This post was last modified: 02-07-2019 10:31 AM by kekeuforever.)
Post: #3
RE: Afk training with exercise item.
(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()

Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-07-2019, 10:24 AM (This post was last modified: 02-07-2019 10:24 AM by erleo.)
Post: #4
RE: Afk training with exercise item.
Are u playing masteria?

PD: fix the img i can't see
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-07-2019, 10:30 AM (This post was last modified: 02-07-2019 10:39 AM by kekeuforever.)
Post: #5
RE: Afk training with exercise item.
(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.
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-07-2019, 11:12 AM (This post was last modified: 02-07-2019 12:22 PM by erleo.)
Post: #6
RE: Afk training with exercise item.
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()

Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-11-2019, 07:33 PM (This post was last modified: 02-11-2019 07:45 PM by kekeuforever.)
Post: #7
RE: Afk training with exercise item.
(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
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
02-11-2019, 09:33 PM
Post: #8
RE: Afk training with exercise item.
Macro.Wait(Delay)
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)