local reloadTypes = { ["all"] = RELOAD_TYPE_ALL, ["action"] = RELOAD_TYPE_ACTIONS, ["actions"] = RELOAD_TYPE_ACTIONS, ["act"] = RELOAD_TYPE_ACTIONS, ["chat"] = RELOAD_TYPE_CHAT, ["channel"] = RELOAD_TYPE_CHAT, ["chatchannels"] = RELOAD_TYPE_CHAT, ["config"] = RELOAD_TYPE_CONFIG, ["configuration"] = RELOAD_TYPE_CONFIG, ["creaturescript"] = RELOAD_TYPE_CREATURESCRIPTS, ["creaturescripts"] = RELOAD_TYPE_CREATURESCRIPTS, ["cs"] = RELOAD_TYPE_CREATURESCRIPTS, ["events"] = RELOAD_TYPE_EVENTS, ["global"] = RELOAD_TYPE_GLOBAL, ["globalevent"] = RELOAD_TYPE_GLOBALEVENTS, ["globalevents"] = RELOAD_TYPE_GLOBALEVENTS, ["items"] = RELOAD_TYPE_ITEMS, ["monster"] = RELOAD_TYPE_MONSTERS, ["monsters"] = RELOAD_TYPE_MONSTERS, ["mount"] = RELOAD_TYPE_MOUNTS, ["mounts"] = RELOAD_TYPE_MOUNTS, ["aura"] = RELOAD_TYPE_AURAS, ["auras"] = RELOAD_TYPE_AURAS, ["wing"] = RELOAD_TYPE_WINGS, ["wings"] = RELOAD_TYPE_WINGS, ["shader"] = RELOAD_TYPE_SHADERS, ["shaders"] = RELOAD_TYPE_SHADERS, ["runeffect"] = RELOAD_TYPE_RUNEEFFECTS, ["runeeffects"] = RELOAD_TYPE_RUNEEFFECTS, ["outfit"] = RELOAD_TYPE_OUTFITS, ["outfits"] = RELOAD_TYPE_OUTFITS, ["move"] = RELOAD_TYPE_MOVEMENTS, ["movement"] = RELOAD_TYPE_MOVEMENTS, ["movements"] = RELOAD_TYPE_MOVEMENTS, ["npc"] = RELOAD_TYPE_NPCS, ["npcs"] = RELOAD_TYPE_NPCS, ["quest"] = RELOAD_TYPE_QUESTS, ["quests"] = RELOAD_TYPE_QUESTS, ["raid"] = RELOAD_TYPE_RAIDS, ["raids"] = RELOAD_TYPE_RAIDS, ["spell"] = RELOAD_TYPE_SPELLS, ["spells"] = RELOAD_TYPE_SPELLS, ["talk"] = RELOAD_TYPE_TALKACTIONS, ["talkaction"] = RELOAD_TYPE_TALKACTIONS, ["talkactions"] = RELOAD_TYPE_TALKACTIONS, ["weapon"] = RELOAD_TYPE_WEAPONS, ["weapons"] = RELOAD_TYPE_WEAPONS, ["scripts"] = RELOAD_TYPE_SCRIPTS, ["libs"] = RELOAD_TYPE_GLOBAL } function onSay(player, words, param) if player:getGroup():getId() < 3 then return false end logCommand(player, words, param) local reloadType = reloadTypes[param:lower()] if not reloadType then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Reload type not found.") return false end Game.reload(reloadType) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, string.format("Reloaded %s.", param:lower())) return false end