For the first thing:
Code:
get_sets()
U_Shot_Ammo = S{'Ammo Name 1','Ammo Name 2', 'Ammo Name 3'}
DefaultAmmo = {ammo='Copper Bullet'}
end
precast(spell)
if U_Shot_Ammo[player.equipment.ammo] and not buffactive['unlimited shot'] or player.equipment.ammo == 'empty' then
equip(DefaultAmmo)
end
end
Second thing:
Code:
get_sets()
close_range_ws = S{'name 1','name2','etc'}
ranged_ws = S{'name1','name 2','etc'}
end
precast(spell)
-- This should be at the top
if (spell.target.distance >8 and close_range_ws[spell.name]) or (spell.target.distance >21 and ranged_ws[spell.name]) then
cancel_spell()
end
end
Third thing:
There's no need for this in GearSwap. It will never swap gear back too soon.