--[[ //rm Fire (ice,wind,etc) Ingame Macro /console rm Fire (Sets Rune Type to Ignis as well as Barelement to Barfire) //rmn RuneInfo Ingame Macro /console rmn RuneMacro (/echos information about the chosen Rune and Barspell) //rmn Rune Ingame Macro /console rmn Rune (Uses the set Rune Type) //rmn Barelement Ingame Macro /console rmn Barelement (Uses the set Barelement Type) //rm Reload (Reloads RuneMe add-on) ]] _addon.name = 'RuneMeNow' _addon.version = '0.2.0' _addon.author = 'Hagenige' _addon.command = 'rmn' map = { fire = {element = 'Ignis', barele = 'Barblizzard', barinfo = 'Ignis Runes Active--Enfire/Barblizzard + Barblizzard'}, ice = {element = 'Gelus', barele = 'Baraero', barinfo = 'Gelus Runes Active--Enblizzard/Baraero + Baraero'}, wind = {element = 'Flabra', barele = 'Barstone', barinfo = 'Flabra Runes Active--Enaero/Barstone + Barstone'}, stone = {element = 'Tellus', barele = 'Barthunder', barinfo = 'Tellus Runes Active--Enstone/Barthunder + Barthunder'}, thunder = {element = 'Sulpor', barele = 'Barwater', barinfo = 'Sulpor Runes Active--Enthunder/Barwater + Barwater'}, water = {element = 'Unda', barele = 'Barfire', barinfo = 'Unda Runes Active--Enwater/Barfire + Barfire'}, dark = {element = 'Tenebrae', barele = 'Barsilence', barinfo = 'Tenebrae Runes Active--Endark/Barlight + Barsilence'}, light = {element = 'Lux', barele = 'Barsilence', barinfo = 'Lux Runes Active--Enlight/Bardark + Barsilence'}, } element = 'Gelus' barele = 'Baraero' info = 'Gelus Runes Active--Enblizzard/Baraero + Baraero' function rune() windower.send_command('input /ja "'..element..'" ') end function barelement() windower.send_command('input /ma "'..barele..'" ') end function runeInfo() windower.add_to_chat(123, '%s':format(info)) end function reload() windower.send_command('input //lua reload RuneMeNow') end windower.register_event('addon command', function(command) command = command and command:lower() if command == 'rune' then rune() elseif command == 'barelement' then barelement() elseif command == 'runeinfo' then runeInfo() elseif command == 'reload' then reload() elseif command and map[command] then element = map[command].element barele = map[command].barele info = map[command].barinfo end end)