Afk training with exercise item. - 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: Afk training with exercise item. (/thread-21003.html) |
Afk training with exercise item. - kekeuforever - 02-07-2019 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 . 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 RE: Afk training with exercise item. - erleo - 02-07-2019 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 RE: Afk training with exercise item. - kekeuforever - 02-07-2019 (02-07-2019, 08:30 AM)erleo Wrote: Try this: Oh, thanks man. But it doesn't work. I added the itens in bbot.items.txt. How i put in bbot, to u see if i messed up 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() RE: Afk training with exercise item. - erleo - 02-07-2019 Are u playing masteria? PD: fix the img i can't see RE: Afk training with exercise item. - kekeuforever - 02-07-2019 (02-07-2019, 10:24 AM)erleo Wrote: Are u playing masteria?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. RE: Afk training with exercise item. - erleo - 02-07-2019 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 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() RE: Afk training with exercise item. - kekeuforever - 02-11-2019 (02-07-2019, 11:12 AM)erleo Wrote: BBot/Data/bbot.items 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 RE: Afk training with exercise item. - erleo - 02-11-2019 Macro.Wait(Delay) |