Tiralay

Obi Gearswap

Nov 26th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. function job_post_precast(spell, action, spellMap, eventArgs)
  2.     if spell.type == 'WeaponSkill' then
  3.         if spell.english == "Resolution" then
  4.             --Favorable weather (obi equip)
  5.             if world.weather_element == 'Lightning' or
  6.                 world.weather_element == 'Wind' or
  7.                 world.weather_element == 'Light' or            
  8.                 world.day_element == 'Lightning' or
  9.                 world.day_element == 'Wind' or
  10.                 world.day_element == 'Lightning' then
  11.                     equip(sets.Obi)
  12.             --Unfavorable weather (other belt equip)       
  13.             if world.weather_element == 'Earth' or
  14.                 world.weather_element == 'Ice' or
  15.                 world.weather_element == 'Dark' or
  16.                 world.day_element == 'Earth' or
  17.                 world.day_element == 'Ice' or
  18.                 world.day_element == 'Dark' then
  19.                     equip={waist="Fotia Belt"}
  20.             end
  21.             end
  22.         end
Advertisement
Add Comment
Please, Sign In to add comment