Hi Motenten,
I am new to gs and am modifying your whm.lua.
I follow you pointers and modify my code as below. I added print to see if where the code is moving.not sure if print command is correct though.
Code:
if spell.english == 'Paralyze' and spell.target.type == 'PLAYER' then
print (111111)
cancel_spell()
print (22211)
send_command('input /ma "Paralyna" ' ..spell.target.name)
else
print (333331)
send_command('input /ma "Paralyze" '..spell.target.name)
end
anyway, if my character try cast paralze on anyone, debug shows it will go into a loop and ffxi eventually crash out.
I tried putting this code in function precast(spell) but nothing happens, it still try to cast paralyze on a player instead of paralyna.
if I put the code in the function job_precast(spell, action, spellMap, event Args) and try to cast paralyze, debug shows it goes into a loop and eventually crash out.
please let me know where should that code reside to achieve my goal of spellcast code below. Thanks.
Code:
<if Spell="Paralyze*"> <!-- Check conditions and change if needed when casting Paralyze II -->
<if SpellTargetType="Self|Player"> <!-- If target is player or self change to paralyna -->
<action type="DefaultTarget" target="<t>" />
<!-- <action type=ChangeTarget Target="<st>" /> -->
<changespell spell="Paralyna" />