I just realised it may be risky to use,
Bot may - for some reason - accidently put on hand stone directly from goblin, leaving your weapon in body, but i think it shouldn't since the only reason he would put stone ON weapon, is when he have over 20 of them
Test it first with something cheap that you don't care to lose, and see if that happens what I assume.
If yes, fix it by using Tibia.SendKey(VirtualKeyCode) instead of Self.Equip.LeftHand (below)
but you would have to setup Stones and weapon into tibia Hotkeys as EQUIP item
example hotlkeys
118=F7 Stones
119=F8 weapon
You would have to change macro then to this:
[macro]400 {StoneSword} Fstone:=118 Fsword:=119 StoneID:=1781 SwordID:=3319 StoneUse:=20 StoneQT:=Misc.ItemCountEx(!StoneID!) StoneHandQT:=Self.Inventory.LeftHand.Count() leftH:=Self.Inventory.LeftHand() !StoneQT!>=!StoneUse! [ON] !leftH!<>!StoneID! [a1] Tibia.SendKey(!Fstone!) exit() {a1} !StoneQT!>!StoneHandQT! [b1] Tibia.SendKey(!Fstone!) exit() {b1} exit() {ON} !leftH!<>!StoneID! [a2] !leftH!==0 [b2] Tibia.SendKey(!Fsword!) exit() {b2} !leftH!<>!SwordID! [c1] Tibia.SendKey(!Fsword!) exit() {c1} exit() {a2} Label(a1) exit() [/macro]
Bot may - for some reason - accidently put on hand stone directly from goblin, leaving your weapon in body, but i think it shouldn't since the only reason he would put stone ON weapon, is when he have over 20 of them
Test it first with something cheap that you don't care to lose, and see if that happens what I assume.
If yes, fix it by using Tibia.SendKey(VirtualKeyCode) instead of Self.Equip.LeftHand (below)
but you would have to setup Stones and weapon into tibia Hotkeys as EQUIP item
example hotlkeys
118=F7 Stones
119=F8 weapon
You would have to change macro then to this:
[macro]400 {StoneSword} Fstone:=118 Fsword:=119 StoneID:=1781 SwordID:=3319 StoneUse:=20 StoneQT:=Misc.ItemCountEx(!StoneID!) StoneHandQT:=Self.Inventory.LeftHand.Count() leftH:=Self.Inventory.LeftHand() !StoneQT!>=!StoneUse! [ON] !leftH!<>!StoneID! [a1] Tibia.SendKey(!Fstone!) exit() {a1} !StoneQT!>!StoneHandQT! [b1] Tibia.SendKey(!Fstone!) exit() {b1} exit() {ON} !leftH!<>!StoneID! [a2] !leftH!==0 [b2] Tibia.SendKey(!Fsword!) exit() {b2} !leftH!<>!SwordID! [c1] Tibia.SendKey(!Fsword!) exit() {c1} exit() {a2} Label(a1) exit() [/macro]
Code:
Fstone:=118
Fsword:=119
StoneID:=1781
SwordID:=3319
StoneUse:=20
StoneQT:=Misc.ItemCountEx(!StoneID!)
StoneHandQT:=Self.Inventory.LeftHand.Count()
leftH:=Self.Inventory.LeftHand()
!StoneQT!>=!StoneUse! [ON]
!leftH!<>!StoneID! [a1]
Tibia.SendKey(!Fstone!)
exit()
{a1}
!StoneQT!>!StoneHandQT! [b1]
Tibia.SendKey(!Fstone!)
exit()
{b1}
exit()
{ON}
!leftH!<>!StoneID! [a2]
!leftH!==0 [b2]
Tibia.SendKey(!Fsword!)
exit()
{b2}
!leftH!<>!SwordID! [c1]
Tibia.SendKey(!Fsword!)
exit()
{c1}
exit()
{a2}
Label(a1)
exit()