PandoraNyx
06-26-2016, 07:38 PM
I a attempting to make a simple script that will equip a jagged sword when my spear count is too low.. this is about what I have.... Is there some feature to assist with making simple scripts? (like elfbot's creation wizard)
MeleeWeapon = "Jagged Sword",
DistanceWeapon = "Spear",
MinDistanceWeapon = 2
Module("Swap", function
if count.DistnceWeapon > MinDistanceWeapon, then
Self.Equip(DistanceWeapon, "Spear")
else Self.Equip(MeleeWeapon, "Jagged Sword")
end
selfdelay(1500)
end)
it gives me an error at line 2, something unexpected too close to the =
MeleeWeapon = "Jagged Sword",
DistanceWeapon = "Spear",
MinDistanceWeapon = 2
Module("Swap", function
if count.DistnceWeapon > MinDistanceWeapon, then
Self.Equip(DistanceWeapon, "Spear")
else Self.Equip(MeleeWeapon, "Jagged Sword")
end
selfdelay(1500)
end)
it gives me an error at line 2, something unexpected too close to the =