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]
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.
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%
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]
Dropped to 409 health 43% | With 0 mana 0%
On screen were 0 players and 3 monsters
During last second was hit for 160HP | Healed for 0HP | Total of -160HP
Attacked by 3 creatures
________________________
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
In position 33616 32323 7 | Nearby Players=0 Monsters=4
Lost -151 in last 2 seconds | Attacked by 5 creatures
________________________
Dropped to 6373 health at 19:36:21
In position 33617 32323 7 | Nearby Players=0 Monsters=10
Lost -724 in last 2 seconds | Attacked by 10 creatures
________________________
Dropped to 6921 health at 19:36:24
In position 33617 32323 7 | Nearby Players=0 Monsters=11
Lost 548 in last 2 seconds | Attacked by 11 creatures
________________________
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
- amount of potions you have,
- Number of monsters you killed,
- ID of a ground you were standing ON ;D , you could find out if it was grass or wooden floor, for some reason hehe.
- number of open backpacks - idk why but why not ;D
- how long were you standing still without movement.
With all possible info, I'm sure you could figure out in what 'part' of hunt your health dropped below 60%