1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00
kawari/resources/scripts/commands/Commands.lua
Joshua Goins 6951f9448d Port GM commands to Lua
This removes a ton of implementation overlap between the two
command systems. For example, we had two different implementations
of unlocking aetherytes which is just unnecessary.

On the flipside, this makes implementing new GM commands just as
easy as writing debug ones. I moved the existing debug Lua
implementations into their GM counterparts and updated the USAGE
accordingly.
2025-06-28 10:27:56 -04:00

41 lines
1.5 KiB
Lua

DBG_DIR = "commands/debug/"
GM_DIR = "commands/gm/"
-- GM commands
GM_SET_LEVEL = 1
GM_CHANGE_WEATHER = 6
GM_SPEED = 9
GM_INVISIBILITY = 13
GM_AETHERYTE = 94
GM_EXP = 104
GM_ORCHESTRION = 116
GM_GIVE_ITEM = 200
GM_GIL = 201
GM_WIREFRAME = 550
GM_TERRITORY = 600
GM_TERRITORY_INFO = 605
registerGMCommand(GM_SET_LEVEL, GM_DIR.."SetLevel.lua")
registerGMCommand(GM_CHANGE_WEATHER, GM_DIR.."ChangeWeather.lua")
registerGMCommand(GM_SPEED, GM_DIR.."SetSpeed.lua")
registerGMCommand(GM_INVISIBILITY, GM_DIR.."ToggleInvisibility.lua")
registerGMCommand(GM_AETHERYTE, GM_DIR.."UnlockAetheryte.lua")
registerGMCommand(GM_EXP, GM_DIR.."Exp.lua")
registerGMCommand(GM_ORCHESTRION, GM_DIR.."Orchestrion.lua")
registerGMCommand(GM_GIVE_ITEM, GM_DIR.."GiveItem.lua")
registerGMCommand(GM_GIL, GM_DIR.."Gil.lua")
registerGMCommand(GM_WIREFRAME, GM_DIR.."ToggleWireframe.lua")
registerGMCommand(GM_TERRITORY, GM_DIR.."ChangeTerritory.lua")
registerGMCommand(GM_TERRITORY_INFO, GM_DIR.."TerritoryInfo.lua")
-- Debug commands
-- Please keep these in alphabetical order!
registerCommand("classjob", DBG_DIR.."ClassJob.lua")
registerCommand("festival", DBG_DIR.."Festival.lua")
registerCommand("nudge", DBG_DIR.."Nudge.lua")
registerCommand("ost", DBG_DIR.."OnScreenTest.lua")
registerCommand("permtest", DBG_DIR.."PermissionTest.lua")
registerCommand("setpos", DBG_DIR.."SetPos.lua")
registerCommand("unlock", DBG_DIR.."Unlock.lua")