_addon.name = 'GeoMeNowTest' _addon.version = '0.2.0' _addon.author = 'Hagenige' _addon.command = 'gmn' iSpell = {--List of Indi Spells to be set with //gmn ihaste/idef+/etc. Then Called with //gmn indiNow --Buffs-- ['irefresh'] = {spell = 'Indi-Refresh', info = 'I-Refresh [MP Refresh] @ '}, ['iregen'] = {spell = 'Indi-Regen', info = 'I-Regen [HP Regen] @ '}, ['ihaste'] = {spell = 'Indi-Haste', info = 'I-Haste [Atk Speed+] @ '}, ['iatk+'] = {spell = 'Indi-Fury', info = 'I-Fury [ATK / rATK+] @ '}, ['idef+'] = {spell = 'Indi-Barrier', info = 'I-Barrier [Def+] @ '}, ['iacc+'] = {spell = 'Indi-Precision', info = 'I-Precision [ACC / rACC+] @ '}, ['ieva+'] = {spell = 'Indi-Voidance', info = 'I-Voidance [EVA+] @ '}, ['imab+'] = {spell = 'Indi-Acumen', info = 'I-Acumen [MAB+] @ '}, ['imdb+'] = {spell = 'Indi-Fend', info = 'I-Fend [MDB+] @ '}, ['imacc+'] = {spell = 'Indi-Focus', info = 'I-Focus [mACC+] @ '}, ['imeva+'] = {spell = 'Indi-Attunement', info = 'I-Attunement [mEVA+] @ '}, ['istr+'] = {spell = 'Indi-Str', info = 'I-Str [STR+] @ '}, ['idex+'] = {spell = 'Indi-Dex', info = 'I-Dex [DEX+] @ '}, ['ivit+'] = {spell = 'Indi-Vit', info = 'I-Vit [VIT+] @ '}, ['iagi+'] = {spell = 'Indi-Agi', info = 'I-Agi [AGI+] @ '}, ['imnd+'] = {spell = 'Indi-Mnd', info = 'I-Mnd [MND+] @ '}, ['iint+'] = {spell = 'Indi-Int', info = 'I-Int [INT+] @ '}, ['ichr+'] = {spell = 'Indi-Chr', info = 'I-Chr [CHR+] @ '}, --Debuffs-- ['iatk-'] = {spell = 'Indi-Wilt', info = 'I-Wilt [ATK-] @ ':format(geoStore)) windower.add_to_chat(123, '%s':format(geoInfo)) end function indiNow() windower.send_command('input /ma "%s" ':format(indiStore)) windower.add_to_chat(123, '%s':format(indiInfo)) end function entNow() windower.send_command('input /ma "%s" ':format(entStore)) windower.add_to_chat(123, '%s':format(entInfo)) end function reload() windower.send_command('input //lua reload GeoMeNow') end function geoHelp() windower.add_to_chat(123, 'Buffs (atk+/def+/acc+/eva+/regen/refresh/haste)') windower.add_to_chat(123, 'Buffs (mab+/mdb+/macc+/meva+/str/dex/agi/vit/mnd/int/chr)') windower.add_to_chat(123, '(------[//gmn gatk+/iatk+/eatk+ (examples)]------)') windower.add_to_chat(123, 'Debuffs (atk-/def-/acc-/eva-)') windower.add_to_chat(123, 'Debuffs (mab-/mdb-/macc-/meva-/psn/slow/para/grav)') end windower.register_event('addon command', function(command) command = command and command:lower() or 'geohelp' if command == 'geonow' then geoNow() elseif command == 'indinow' then indiNow() elseif command == 'entnow' then entNow() elseif command == 'geohelp' then geoHelp() elseif command == 'reload' then reload() elseif iSpell[command] ~= nil then indiStore = iSpell[command].spell indiInfo = iSpell[command].info windower.add_to_chat(123, '%s':format(indiInfo)) elseif gSpell[command] ~= nil then geoStore = gSpell[command].spell geoInfo = gSpell[command].info windower.add_to_chat(123, '%s':format(geoInfo)) elseif eSpell[command] ~= nil then entStore = eSpell[command].spell entInfo = eSpell[command].info windower.add_to_chat(123, '%s':format(entInfo)) end end)