11-27-2018, 04:17 PM
(This post was last modified: 11-27-2018, 04:19 PM by MegaNo0body.)
[macro]100 {EQ Changer - Key Listener}
Tibia.KeyDown(:K_SUBTRACT)==:True
VarAdd(SetType, 1)
Comment(When the variable exist, we are at a valid SetType index)
HasVar(S!SetType!_Helmet)==:True [SetIDs]
Comment(When the variable does not exist, reset to SetType 0)
SetType:=0
{SetIDs}
ID_Head:=VarGet(S!SetType!_Helmet)
ID_Armor:=VarGet(S!SetType!_Armor)
ID_Legs:=VarGet(S!SetType!_Legs)
ID_Boots:=VarGet(S!SetType!_Boots)
[/macro]
[macro]600 {EQ Changer - Wear Set}
Self.Inventory.Helmet()<>!ID_Helmet [Armor]
Self.Equip(Helmet, !ID_Helmet)
exit()
{Armor}
Self.Inventory.Armor()<>!ID_Armor [Legs]
Self.Equip(Armor, !ID_Armor)
exit()
{Legs}
Self.Inventory.Legs()<>!ID_Legs [Ammo]
Self.Equip(Legs, !ID_Legs)
exit()
{Ammo}
Self.Inventory.Ammunition()<>!ID_Ammo [Boots]
Self.Equip(Ammo, !ID_Ammo)
exit()
{Boots}
Self.Inventory.Boots()<>!ID_Boots
Self.Equip(Boots, !ID_Boots)
exit()[/macro]
Tibia.KeyDown(:K_SUBTRACT)==:True
VarAdd(SetType, 1)
Comment(When the variable exist, we are at a valid SetType index)
HasVar(S!SetType!_Helmet)==:True [SetIDs]
Comment(When the variable does not exist, reset to SetType 0)
SetType:=0
{SetIDs}
ID_Head:=VarGet(S!SetType!_Helmet)
ID_Armor:=VarGet(S!SetType!_Armor)
ID_Legs:=VarGet(S!SetType!_Legs)
ID_Boots:=VarGet(S!SetType!_Boots)
[/macro]
[macro]600 {EQ Changer - Wear Set}
Self.Inventory.Helmet()<>!ID_Helmet [Armor]
Self.Equip(Helmet, !ID_Helmet)
exit()
{Armor}
Self.Inventory.Armor()<>!ID_Armor [Legs]
Self.Equip(Armor, !ID_Armor)
exit()
{Legs}
Self.Inventory.Legs()<>!ID_Legs [Ammo]
Self.Equip(Legs, !ID_Legs)
exit()
{Ammo}
Self.Inventory.Ammunition()<>!ID_Ammo [Boots]
Self.Equip(Ammo, !ID_Ammo)
exit()
{Boots}
Self.Inventory.Boots()<>!ID_Boots
Self.Equip(Boots, !ID_Boots)
exit()[/macro]