summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-01 03:08:13 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-01 03:08:13 +0000
commit8d174c40422d85f5f8a05f653b83004f535d707d (patch)
treea219f75c3c87da4086c069c213994a9538b283ea /src/map/atcommand.c
parent53ffc4fa41007431dc8e5cfd07860ed4b2b5fe43 (diff)
downloadhercules-8d174c40422d85f5f8a05f653b83004f535d707d.tar.gz
hercules-8d174c40422d85f5f8a05f653b83004f535d707d.tar.bz2
hercules-8d174c40422d85f5f8a05f653b83004f535d707d.tar.xz
hercules-8d174c40422d85f5f8a05f653b83004f535d707d.zip
Added support for using 'town', 'autotrade', 'allowks', 'monster_noteleport', 'pvp_nocalcrank' and 'battleground' mapflags in scripts (bugreport:4226).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14322 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 035cc5fe1..4b2fb8b33 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -4279,6 +4279,14 @@ int atcommand_mapinfo(const int fd, struct map_session_data* sd, const char* com
sprintf(atcmd_output, "Map Name: %s | Players In Map: %d | NPCs In Map: %d | Chats In Map: %d", mapname, map[m_id].users, map[m_id].npc_num, chat_num);
clif_displaymessage(fd, atcmd_output);
clif_displaymessage(fd, "------ Map Flags ------");
+ if (map[m_id].flag.town)
+ clif_displaymessage(fd, "Town Map");
+
+ clif_displaymessage(fd, "Autotrade %s", (battle_config.autotrade_mapflag == map[m_id].flag.autotrade) ? "Enabled" : "Disabled");
+
+ if (map[m_id].flag.battleground)
+ clif_displaymessage(fd, "Battlegrounds ON");
+
strcpy(atcmd_output,"PvP Flags: ");
if (map[m_id].flag.pvp)
strcat(atcmd_output, "Pvp ON | ");
@@ -4370,7 +4378,8 @@ int atcommand_mapinfo(const int fd, struct map_session_data* sd, const char* com
strcat(atcmd_output, "NoSkill | ");
if (map[m_id].flag.noicewall)
strcat(atcmd_output, "NoIcewall | ");
-
+ if (map[m_id].allowks)
+ strcat(atcmd_output, "AllowKS | ");
clif_displaymessage(fd, atcmd_output);
strcpy(atcmd_output,"Other Flags: ");
@@ -4390,7 +4399,6 @@ int atcommand_mapinfo(const int fd, struct map_session_data* sd, const char* com
strcat(atcmd_output, "GuildLock | ");
clif_displaymessage(fd, atcmd_output);
-
switch (list) {
case 0:
// Do nothing. It's list 0, no additional display.