Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function job_precast(spell, action, spellMap, eventArgs)
- if spell.action_type == 'Ranged Attack' then
- state.CombatWeapon:set(player.equipment.range)
- end
- end
- function job_aftercast(spell, action, spellMap, eventArgs)
- state.CombatWeapon:set(player.equipment.main)
- end
- function job_update(cmdParams, eventArgs)
- update_combat_form()
- end
- function update_combat_form()
- -- Check for H2H or single-wielding
- if player.equipment.sub == 'empty' or (player.equipment.sub:lower()):contains('grip') or (player.equipment.sub:lower()):contains('strap') or (player.equipment.sub:lower()):contains('shield') then
- state.CombatForm:reset()
- else
- state.CombatForm:set('DW')
- end
- state.CombatWeapon:set(player.equipment.main)
- end
- function job_status_change(oldStatus,newStatus)
- if newStatus == 'Engaged' then
- job_update()
- end
- end
- --Set definition ex.
- sets.midcast.RA.Annihilator = set_combine(sets.midcast.RA, {})
- sets.engaged.DW.Odium = {}
- sets.engaged['Ternion Dagger +1'] = {}
Advertisement
Add Comment
Please, Sign In to add comment