PDA

View Full Version : Script to stop targeting when below X spears. (if trapped enable targeting if poss)



Aclahayr
05-21-2013, 10:57 AM
ATM I got a script that doesn't seem working correctly, I can't get it to work, someone please help me out.

mmAmmo = 'Spear'
mmAmount = 7
-- Don't touch below
SpearModule = true
Module.New('NoSpears', function()
if Self.ItemCount(Item.GetID(mmAmmo)) > mmAmount and SpearModule == false then
Targeting.Start()
SpearModule = true
if Self.ItemCount(Item.GetID(mmAmmo)) <= mmAmount and SpearModule == true then
Targeting.Stop()
SpearModule = false
end
end
end
)



I executed the script and doesn't work