
Originally Posted by
Belgaer
I hate to be "that guy" (the "Bump" guy), but does anyone know what's wrong here?
Also, is there any way to correct enspells to automatically change, say Enstone, to automatically change to the correct enspell based on day/weather? I remember you could in Spellcast, but I'm not sure about GearSwap. Gunna take a look at some RDM ones.
--En spell auto convert
here is a basic one that does not check to see if you even have the spell or if your job can even use it(untested)
Code:
if spell.en:startswith("En") then
local list={Dark="dark",Water="water",Earth="stone",Ice="blizzard",Fire="fire",Wind="aero",Lightning="thunder",Light="light"}
if spell.en ~= "En"..list[world.day_element]..""..(spell.en:endswith(" II") and " II" or "") then
cancel_spell()
self_command('input;/ma "En'..list[world.day_element]..''..(spell.en:endswith(" II") and " II" or "")..'" <me>')
return
end
end