diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-11 20:49:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-11 20:52:50 +0300 |
commit | e36c735ce6569cd9c0e668632e59bcbe3280d507 (patch) | |
tree | eb8fa3f8800d95bcd0c6b3c1ea314567f56debb4 /src/commands.h | |
parent | ffd452cd1ee7d252355c259ca2bae1d40c0e97e9 (diff) | |
download | mv-e36c735ce6569cd9c0e668632e59bcbe3280d507.tar.gz mv-e36c735ce6569cd9c0e668632e59bcbe3280d507.tar.bz2 mv-e36c735ce6569cd9c0e668632e59bcbe3280d507.tar.xz mv-e36c735ce6569cd9c0e668632e59bcbe3280d507.zip |
Add chat command for gms for creating items.
New command: /createitems
It will open creation window.
Diffstat (limited to 'src/commands.h')
-rw-r--r-- | src/commands.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands.h b/src/commands.h index 4b0e2a0f8..933b5a918 100644 --- a/src/commands.h +++ b/src/commands.h @@ -124,6 +124,7 @@ namespace Commands decHandler(disableAway); decHandler(enableAway); decHandler(testParticle); + decHandler(createItems); void replaceVars(std::string &str); } // namespace Commands @@ -215,6 +216,7 @@ enum COMMAND_SETHOME, COMMAND_MAGICATTACK, COMMAND_TEST_PARTICLE, + COMMAND_CREATEITEMS, COMMAND_HACK, END_COMMANDS }; @@ -306,6 +308,7 @@ static const CommandInfo commands[] = {"sethome", nullptr, Input::KEY_SET_HOME, false}, {"magicattack", nullptr, Input::KEY_MAGIC_ATTACK, false}, {"testparticle", &Commands::testParticle, -1, true}, + {"createitems", &Commands::createItems, -1, false}, {"hack", &Commands::hack, -1, true} }; |