new function pausewalking - Printable Version +- BBot - The best bot of the world (https://forums.bmega.net) +-- Forum: BBot (https://forums.bmega.net/forum-3.html) +--- Forum: Sugestions (https://forums.bmega.net/forum-21.html) +--- Thread: new function pausewalking (/thread-20712.html) |
new function pausewalking - the angels - 06-04-2017 new function pausewalking on macro please Pausewalking() pausewalking and mouse.position x please RE: new function pausewalking - Catar - 06-04-2017 there is already... but what for? And you cannot check position of mouse. you can make it on keybind. Cavebot.Stop() Self.Stop() RE: new function pausewalking - the angels - 06-04-2017 Cavebot stop, you have 1 problem. Sometimes when using cavebot start, it does not continue where it left off. Pula waypoints etc. When starting, it starts at another waypoint. And not at what stopped RE: new function pausewalking - Catar - 06-04-2017 (06-04-2017, 01:51 PM)the angels Wrote: Cavebot stop, you have 1 problem. Ye it starts from near random waypoint, Unless you add command in macro to start from certain Label Cavebot.Label(NameOfLabel) RE: new function pausewalking - Kazan - 06-04-2017 (06-04-2017, 03:41 PM)Catar Wrote:(06-04-2017, 01:51 PM)the angels Wrote: Cavebot stop, you have 1 problem. Ye but than if targetting is paused cause of NoKill point it will refresh it and start attacking monsters after stoping cavebot RE: new function pausewalking - the angels - 06-04-2017 (06-04-2017, 03:41 PM)Catar Wrote:(06-04-2017, 01:51 PM)the angels Wrote: Cavebot stop, you have 1 problem. BBOT is now made for OT SERVER, and most OT SERVER are exp 999x. My suggestion is as follows. Create the function to stop walking, and DO NOT PAUSE THE CAVE BOT. Like I said how I'm going to find out what part of HUNT my bot is in case I put it for example. SELF heath <= 60 Cavebot pause. How do I find out which part of the hunt the char is in? The question is: there is no way to find out where the char is for it to go to the particular LABEL. RE: new function pausewalking - Catar - 06-04-2017 But what exactly do you need it for? lol You can use Misc.LogFile to create .txt with whatever data you want inside BBot Folder. example [macro]10 {Logger} Self.Health%()<=60 Cooldown.Blocked(AvoidManyRepeats)==0 h:=Misc.SystemTime.Hour() m:=Misc.SystemTime.Minute() s:=Misc.SystemTime.Second() hpQT:=Self.Health() hp%:=Self.Health%() monst:=Creatures.NPCOnScreen() players:=Creatures.PlayersOnScreen() VarSub(players, 1) LostHP:=Misc.HPDelta(2) qtAttackers:=Misc.AttackersCount(2) Misc.LogFile(lowHP at !h.txt, ) Misc.LogFile(lowHP at !h.txt, Dropped to !hpQT health !hp%!% at !h:!m:!s) Misc.LogFile(lowHP at !h.txt, In position :X :Y :Z | Nearby Players=!players Monsters=!monst) Misc.LogFile(lowHP at !h.txt, Lost !LostHP in last 2 seconds | Attacked by !qtAttackers creatures) Misc.LogFile(lowHP at !h.txt, ________________________ ) Cooldown.Create(AvoidManyRepeats, 5000) [/macro] extended example under spoiler[spoiler] [macro]10 {Logger} Self.Health%()<=40 Cooldown.Blocked(AvoidManyRepeats)==0 h:=Misc.SystemTime.Hour() m:=Misc.SystemTime.Minute() s:=Misc.SystemTime.Second() hpQT:=Self.Health() hp%:=Self.Health%() manaQT:=Self.Mana() mana%:=Self.Mana%() monst:=Creatures.NPCOnScreen() players:=Creatures.PlayersOnScreen() VarSub(players, 1) LostHP:=Misc.HPLose(1) HealHP:=Misc.HPGain(1) DeltHP:=Misc.HPDelta(1) qtAttackers:=Misc.AttackersCount(1) Misc.LogFile(lowHP at !h.txt, ) Misc.LogFile(lowHP at !h.txt, At !h:!m:!s | In position :X :Y :Z) Misc.LogFile(lowHP at !h.txt, Dropped to !hpQT health !hp%!% | With !manaQT mana !mana%!% ) Misc.LogFile(lowHP at !h.txt, On screen were !players players and !monst monsters) Misc.LogFile(lowHP at !h.txt, During last second lost !LostHP!HP | Healed !HealHP!HP | Total !DeltHP!HP) Misc.LogFile(lowHP at !h.txt, Attacked by !qtAttackers creatures) Misc.LogFile(lowHP at !h.txt, ________________________ ) Cooldown.Create(AvoidManyRepeats, 2500)[/macro] Quote:At 21:35:21 | In position 33703 31947 5[/spoiler] Will make text file in your bbot folder whenever your Health drops below 60% Name will be lowHP at (hour of log).txt , and info will look like this. Quote:Dropped to 7097 health at 19:36:19 Also you can add Tibia.Screenshot() but it won't work well if tibia is not visible. Also you can add more info into log, For example
With all possible info, I'm sure you could figure out in what 'part' of hunt your health dropped below 60% |