Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implemented suggestion "Script Command to block commands" http://rath…
…ena.org/board/topic/88888-script-command-to-block-commands/ -- Added new script commands: 'enable_command', 'disable_command' -- Added new config 'atcommand_enable_npc' at conf/battle/gm.conf -- Thank Kichi for the patch file Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
- Loading branch information
Showing
with
51 additions
and 7 deletions.
- +4 −1 conf/battle/gm.conf
- +9 −0 doc/script_commands.txt
- +4 −0 src/map/atcommand.c
- +1 −0 src/map/battle.c
- +1 −0 src/map/battle.h
- +4 −6 src/map/clif.c
- +1 −0 src/map/pc.h
- +26 −0 src/map/script.c
- +1 −0 src/map/script.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -529,6 +529,7 @@ extern struct Battle_Config | ||
|
|
||
| int disp_serverbank_msg; | ||
| int warg_can_falcon; | ||
| int atcommand_enable_npc; | ||
| } battle_config; | ||
|
|
||
| void do_init_battle(void); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wouldn't it be better to make this a group permission rather than a battle_config?