- Modified the nocommand mapflag so you can specify the GM range that is blocked from using commands (eg: "prontera.gat mapflag nocommand 40" disables commands to characters in the GM range 0~39)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8733 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -148,8 +148,8 @@ is_charcommand(const int fd, struct map_session_data* sd, const char* message, i
|
||||
if (!*str)
|
||||
return CharCommand_None;
|
||||
|
||||
if (map[sd->bl.m].flag.nocommand &&
|
||||
(gmlvl > 0? gmlvl:pc_isGM(sd)) < battle_config.gm_skilluncond)
|
||||
if (map[sd->bl.m].nocommand &&
|
||||
(gmlvl > 0? gmlvl:pc_isGM(sd)) < map[sd->bl.m].nocommand)
|
||||
{ //Command not allowed on this map.
|
||||
char output[200];
|
||||
sprintf(output, msg_table[143]);
|
||||
|
||||
Reference in New Issue
Block a user