BBot - The best bot of the world

Full Version: Using mana potions MACRO :)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, i need a macro which will use mana potion on my self when my mana is lower than 350 and my hp is higher than 1400. Ofc I'll give REP+ Smile

Refresh, and I ask again Tongue
Please macro Smile
I dont remember id of mp, you can easy change. Not tested, but i think it will work
Code:
1000 {MP by Howcraft} inMana:=350 inHp:=1400 PotionID:=268 Self.Mana()<!inMana! Self.Health()>!inHp! Hotkey.Use(!PotionID!) end

inMana:=350 ## Set in how many mana will use ##
inHp:=1400 ## Same as up, HP ##
PotionID:=268 ## Id od potion ##
Im sorry I copied that macro, id is good but macro doesnt work Sad Do someone have any idea, whats wrong? Or maybe send me a macro ready to work?
... why you dont use function in bot? healing > mana tools > mana restore. set mana potion, from mana 350, to mana 400 and will work..
Self.Mana()<=350
Self.Health()>=1400
Tibia.SendKey(113)

It will only work if you have mana potion on F2 key (in Tibia options/hotkeys). If You want to use other hotkey: http://wiki.bmega.net/doku.php?id=virtual_key_codes
Perfect work! Ty much, REP + Smile