BBot - The best bot of the world
Using mana potions MACRO :) - 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: Using mana potions MACRO :) (/thread-11953.html)



Using mana potions MACRO :) - lordekbyku - 09-24-2013

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


RE: Using mana potions MACRO :) - lordekbyku - 09-24-2013

Please macro Smile


RE: Using mana potions MACRO :) - howcraft - 09-24-2013

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 ##


RE: Using mana potions MACRO :) - lordekbyku - 09-24-2013

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?


RE: Using mana potions MACRO :) - howcraft - 09-24-2013

... why you dont use function in bot? healing > mana tools > mana restore. set mana potion, from mana 350, to mana 400 and will work..


RE: Using mana potions MACRO :) - kamill - 09-24-2013

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


RE: Using mana potions MACRO :) - lordekbyku - 09-25-2013

Perfect work! Ty much, REP + Smile