BBot - The best bot of the world
equip ring if press hotkey - 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: equip ring if press hotkey (/thread-20945.html)



equip ring if press hotkey - opol - 10-15-2018

Tibia.SendKey(:K_F4)
Self.Equip.Ring(3048)

how to make it work? i wanna bot equip ring if i press f4


RE: equip ring if press hotkey - Catar - 10-16-2018

is it old tibia version? ther is no built in Equip Item in hotkeys?



btw command Tibia.SendKey will PRESS a key,

if you want macro to do something when YOU press it,
u need to use Tibia.KeyDown(...)


RE: equip ring if press hotkey - Insider - 10-16-2018

Yes it's old version.
So how to make this script ?
Tibia.KeyDown(112)
Self.Equip.Ring(3048)?


RE: equip ring if press hotkey - Catar - 10-16-2018

(10-16-2018, 06:39 PM)Insider Wrote: Yes it's old version.
So how to make this script ?
Tibia.KeyDown(112)
Self.Equip.Ring(3048)?

ye


RE: equip ring if press hotkey - Insider - 10-16-2018

It doesn't Work. Im pressing F1 and it didn't wearing ring ;C What I'm doing bad ?


RE: equip ring if press hotkey - opol - 10-17-2018

(10-16-2018, 06:44 PM)Catar Wrote:
(10-16-2018, 06:39 PM)Insider Wrote: Yes it's old version.
So how to make this script ?
Tibia.KeyDown(112)
Self.Equip.Ring(3048)?

ye

give us full code please this doesnt work


RE: equip ring if press hotkey - Catar - 10-17-2018

because u didnt specify condition when you want next line to happen (Tibia.KeyDown(112) is 1 or 0, :True or :False)

[macro]50 {asda} Tibia.KeyDown(112)==1 Self.Equip.Ring(3048)[/macro]
But to this kind of macro I would also add cooldown, or condition to not put on another ring while you already wearing it.


RE: equip ring if press hotkey - opol - 10-20-2018

(10-17-2018, 06:29 PM)Catar Wrote: because u didnt specify condition when you want next line to happen (Tibia.KeyDown(112) is 1 or 0, :True or :False)

[macro]50 {asda} Tibia.KeyDown(112)==1 Self.Equip.Ring(3048)[/macro]
But to this kind of macro I would also add cooldown, or condition to not put on another ring while you already wearing it.

but this macro equip once after once i wanna equip only one when i click


RE: equip ring if press hotkey - Catar - 10-20-2018

(10-20-2018, 02:12 PM)opol Wrote: but this macro equip once after once i wanna equip only one when i click



Did u even read what i said below macro?

Quote:But to this kind of macro I would also add cooldown, or condition to not put on another ring while you already wearing it.