BBot - The best bot of the world
I went too far.. {} - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: I went too far.. {} (/thread-19562.html)



I went too far.. {} - damiansnk - 03-10-2016



Hello Everyone!
I got weird with macro. I prepared healing and finally work but job isn't in best condition. I need help to connect that macro in 1. Witch check etc. I wrote now in seperated macros. healing under press hotkeys.

f5 - mana potion (116)
f6 - strong health potion (117)
f7 - great health potion (118)
f8 - exura ico (119)

[macro]500 {F7} Self.Health%()<=54 Tibia.SendKey(118) Misc.ItemCount(great health potion)<1 [usestronghealthpotion] Macro.Run(F6) Exit() {usestronghealthpotion} Exit()[/macro]

[macro]0 {F6} Tibia.SendKey(117)[/macro]

[macro]500 {F8} Self.Health%()<=87 Self.Mana()>=40 Tibia.SendKey(119)[/macro]

[macro]0 {F5} Tibia.SendKey(116) Exit()[/macro]

[macro]1000 {F55} Self.Mana%()<=70 Tibia.SendKey(116) Exit()[/macro]

[macro]1000 {F8-Exura Ico} Self.Health%()<=87 Self.Mana()>=40 Tibia.SendKey(119)[/macro]

[macro]1000 {F66} Self.Health%()<=65 Self.Health%()>=55 Tibia.SendKey(117) Exit()[/macro]





RE: I went too far.. {} - Catar - 03-10-2016

Exhaust on healing spells and items is 1000 ms (i usully setup 1008 to avoid cloud animations and uses it very smoothly when under heavy damage)

So why 500 ms?


RE: I went too far.. {} - damiansnk - 03-10-2016

To get priority gor ghp than shp or mana


RE: I went too far.. {} - Catar - 03-10-2016

(03-10-2016, 11:06 AM)damiansnk Wrote: To get priority gor ghp than shp or mana

You can setup all of that 'priorities' in one macro


mana%<=40 [cond1]
hp%>=60 [cond2]
send.key...(with mana pot)
exit()
{cond2}
send.key...(with hp pot)
exit()
{cond1}
hp%<60
send.key...(with hp pot)
exit

So it will use Mana pot when ur mana is lower than 40%, when ur hp is higher than 60%,
but if its hp lower, it will use hp pot.
And if mana is higher than 40% it will check if has enough hp (60%) and will use hp pot if not


If I have some time and zeal i will make all of your macros in a single one, that would work much better than having all of this separately


RE: I went too far.. {} - damiansnk - 03-10-2016

I tried it yesterday but getting weird. Heal by shp ghp exura ico and mp. Always read something wrong