
Originally Posted by
Sechs
Thanks for the link!
And rereading the second part of my post it sounded really wrong D:
What I wanted to say is: haven't you guys been having "packet loss" issues as well? How have you been handling them so far? Nobody else uses a rule to prevent swapping gear while casting? (to avoid situations like when you press macros multiple times in a row and similar, because that's kinda the reason why I started to desire to implement such a rule)
i just deal with it
but i have a huge list of rules to check if i can cast anyways
Code:
function pretarget(spell)
if spell_stopper(spell) then cancel_spell() return end
end
function spell_stopper(spell)
if spell.english ~= 'Ranged' and spell.type ~= 'WeaponSkill' then
if spell.action_type == 'Ability' then
if spell and (windower.ffxi.get_ability_recasts()[spell.recast_id] > 0) then
return true
end
elseif spell.action_type == 'Magic' then
if spell and (windower.ffxi.get_spell_recasts()[spell.recast_id] > 0)then
return true
elseif spell then
if spell.tp_cost > player.tp then
return true
end
if spell.mp_cost > player.mp and not (buffactive['Manawell'] or buffactive['Manafont']) then
return true
end
end
end
end
if buffactive['sleep'] then
return true
end
if spell.type == "Trust" and party.count > 1 then
if player.in_combat then
return true
end
if partynames.party1:contains(string.gsub(spell.english, "%s+", "")) then
return true
end
end
-- if windower.wc_match(spell.english, 'Warp*|Teleport*|Recall*|Retrace|Escape') then
-- return true
-- end
if midaction() or pet_midaction() then
return true
end
if player.tp < 1000 and spell.type == 'WeaponSkill' then
return true
end
if nin_tool_check(spell) then return true end
return false
end