
Originally Posted by
Suteru
e: Getting this:
cor.lua:489: attempt to index global 'special_QDbullet' (a nil value)
Actually for Mote's luas, the line in question (484) would probably go in the user_setup block so it looks like this;
Code:
function user_setup()
-- Options: Override default values
options.OffenseModes = {'Ranged', 'Melee', 'Acc'}
options.RangedModes = {'Normal', 'Acc'}
options.WeaponskillModes = {'Normal', 'Acc', 'Att', 'Mod'}
options.CastingModes = {'Normal', 'Resistant'}
options.IdleModes = {'Normal'}
options.RestingModes = {'Normal'}
options.PhysicalDefenseModes = {'PDT'}
options.MagicalDefenseModes = {'MDT'}
state.Defense.PhysicalMode = 'PDT'
gear.RAbullet = "Bullet"
gear.WSbullet = "Oberon's Bullet"
gear.MAbullet = "Bronze Bullet"
gear.QDbullet = "Animikii Bullet"
options.ammo_warning_limit = 15
special_QDbullet = S{'Animikii Bullet','Omphalos Bullet'}
-- other lines
end

Originally Posted by
Suteru
e:
If I'm only using Animikii, will this do?
Code:
if spell.type ~= 'CorsairShot' and bullet_name == gear.QDbullet then
add_to_chat(104, 'Dont lose your special ammo! Cancelling.')
eventArgs.cancel = true
return
end
e: Doesn't seem to matter. I think I found the problem. If I accidentally press my Quick Draw Macro RIGHT after I press my WS macro, it fires the Quick Draw bullet without checking to see if a WS is going on. Any way to fix this? Like something to ignore Quick Draw commands until Wildfire is done firing?
The most likely scenario is that you weaponskilled after QD. And because you typo'd,
gear.WSbullet = "Oberon's Bulle"
... you lost your Animikii. It shouldn't matter -how- fast or soon after OD you WS'd. The typo was the culprit because GS couldn't re-equip the proper ammo at WS precast.
Code:
sets.precast.WS['Last Stand'] = {ammo=gear.WSbullet}
Your WS bullet could've been named, "elephant poop" and you'd have the same result.
I still think a hard-check for ammo isn't a bad idea.
Code:
special_QDbullet = S{'Animikii Bullet','Omphalos Bullet'}
-- Don't allow shooting or weaponskilling with ammo reserved for quick draw and stop losing Hurkan Bullets!
if spell.type ~= 'CorsairShot' then
if special_QDbullet:contains(player.equipment.ammo) then
add_to_chat(104, 'Dont lose your special ammo! Cancelling.')
eventArgs.cancel = true
return
elseif bullet_name == gear.QDbullet and available_bullets.count <= bullet_min_count then
add_to_chat(104, 'No ammo will be left for Quick Draw. Cancelling.')
eventArgs.cancel = true
return
end
end