1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-10 07:57:46 +00:00

Re-enable //gm collect

-It requires a player to be targeted ingame, no target or any actor that isn't a player
will result in a generic "GM Command Failed" message
This commit is contained in:
The Dax 2025-07-01 12:40:44 -04:00 committed by Joshua Goins
parent e304e895bf
commit 97682086f0
3 changed files with 3 additions and 5 deletions

View file

@ -116,7 +116,6 @@ These special debug commands start with `!` and are custom to Kawari.
* `!finishevent`: Forcefully finishes the current event, useful if the script has an error and you're stuck talking to something. * `!finishevent`: Forcefully finishes the current event, useful if the script has an error and you're stuck talking to something.
* `!item <name>`: Gives you an item matching by name. * `!item <name>`: Gives you an item matching by name.
* `!inspect`: Prints info about the player. * `!inspect`: Prints info about the player.
* `!collect <amount>`: Subtracts `amount` gil from the player.
### GM commands ### GM commands
@ -133,3 +132,4 @@ These GM commands are implemented in the FFXIV protocol, but only some of them a
* `//gm exp <amount>`: Adds the specified amount of EXP to the current class/job. * `//gm exp <amount>`: Adds the specified amount of EXP to the current class/job.
* `//gm teri_info`: Displays information about the current zone. Currently displays zone id, weather, internal zone name, parent region name, and place/display name. * `//gm teri_info`: Displays information about the current zone. Currently displays zone id, weather, internal zone name, parent region name, and place/display name.
* `//gm gil <amount>`: Adds the specified amount of gil to the player * `//gm gil <amount>`: Adds the specified amount of gil to the player
* `//gm collect <amount>`: Subtracts `amount` gil from the targeted player (yourself only for now).

View file

@ -29,8 +29,7 @@ registerGMCommand(GM_EXP, GM_DIR.."Exp.lua")
registerGMCommand(GM_ORCHESTRION, GM_DIR.."Orchestrion.lua") registerGMCommand(GM_ORCHESTRION, GM_DIR.."Orchestrion.lua")
registerGMCommand(GM_GIVE_ITEM, GM_DIR.."GiveItem.lua") registerGMCommand(GM_GIVE_ITEM, GM_DIR.."GiveItem.lua")
registerGMCommand(GM_GIL, GM_DIR.."Gil.lua") registerGMCommand(GM_GIL, GM_DIR.."Gil.lua")
-- TODO: Figure out how the //gm collect command works ingame, its parameters are not the same as //gm gil registerGMCommand(GM_COLLECT, GM_DIR.."Collect.lua")
--registerGMCommand(GM_COLLECT, GM_DIR.."Collect.lua")
registerGMCommand(GM_WIREFRAME, GM_DIR.."ToggleWireframe.lua") registerGMCommand(GM_WIREFRAME, GM_DIR.."ToggleWireframe.lua")
registerGMCommand(GM_TERRITORY, GM_DIR.."ChangeTerritory.lua") registerGMCommand(GM_TERRITORY, GM_DIR.."ChangeTerritory.lua")
registerGMCommand(GM_TERRITORY_INFO, GM_DIR.."TerritoryInfo.lua") registerGMCommand(GM_TERRITORY_INFO, GM_DIR.."TerritoryInfo.lua")
@ -39,7 +38,6 @@ registerGMCommand(GM_TERRITORY_INFO, GM_DIR.."TerritoryInfo.lua")
-- Please keep these in alphabetical order! -- Please keep these in alphabetical order!
registerCommand("classjob", DBG_DIR.."ClassJob.lua") registerCommand("classjob", DBG_DIR.."ClassJob.lua")
registerCommand("collect", GM_DIR.."Collect.lua") -- TODO: remove this once we figure out the //gm collect command's parameters (see comments above)
registerCommand("festival", DBG_DIR.."Festival.lua") registerCommand("festival", DBG_DIR.."Festival.lua")
registerCommand("inspect", GM_DIR.."InspectPlayer.lua") -- TODO: remove this once we figure out the GMInspect IPC opcode registerCommand("inspect", GM_DIR.."InspectPlayer.lua") -- TODO: remove this once we figure out the GMInspect IPC opcode
registerCommand("nudge", DBG_DIR.."Nudge.lua") registerCommand("nudge", DBG_DIR.."Nudge.lua")