diff options
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 1e3af7424..fbd7a28ff 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -100,7 +100,6 @@ ACMD_FUNC(produce); ACMD_FUNC(memo); ACMD_FUNC(gat); ACMD_FUNC(packet); -ACMD_FUNC(waterlevel); ACMD_FUNC(statuspoint); ACMD_FUNC(skillpoint); ACMD_FUNC(zeny); @@ -390,7 +389,6 @@ static AtCommandInfo atcommand_info[] = { { AtCommand_GAT, "@gat", 99, atcommand_gat }, // debug function { AtCommand_Packet, "@packet", 99, atcommand_packet }, // debug function { AtCommand_Packet, "@packetmode", 99, atcommand_packet }, // debug function - { AtCommand_WaterLevel, "@waterlevel", 99, atcommand_waterlevel }, // debug function { AtCommand_StatusPoint, "@stpoint", 60, atcommand_statuspoint }, { AtCommand_SkillPoint, "@skpoint", 60, atcommand_skillpoint }, { AtCommand_Zeny, "@zeny", 60, atcommand_zeny }, @@ -3936,32 +3934,6 @@ int atcommand_packet(const int fd, struct map_session_data* sd, const char* comm } /*========================================== - * @waterlevel [Skotlex] - *------------------------------------------ - */ -int atcommand_waterlevel(const int fd, struct map_session_data* sd, const char* command, const char* message) -{ - int newlevel; - if (!message || !*message || sscanf(message, "%d", &newlevel) < 1) { - sprintf(atcmd_output, "%s's current water level: %d", map[sd->bl.m].name, map_waterheight(map[sd->bl.m].name)); - clif_displaymessage(fd, atcmd_output); - return 0; - } - - if (map_setwaterheight(sd->bl.m, map[sd->bl.m].name, newlevel)) { - if (newlevel > 0) - sprintf(atcmd_output, "%s's water level changed to: %d", map[sd->bl.m].name, newlevel); - else - sprintf(atcmd_output, "Removed %s's water level information.", map[sd->bl.m].name); - clif_displaymessage(fd, atcmd_output); - } else { - sprintf(atcmd_output, "Failed to change %s's water level.", map[sd->bl.m].name); - clif_displaymessage(fd, atcmd_output); - } - return 0; -} - -/*========================================== * @stpoint (Rewritten by [Yor]) *------------------------------------------ */ @@ -5475,8 +5447,6 @@ 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", atcmd_player_name, map[m_id].users, map[m_id].npc_num, chat_num); clif_displaymessage(fd, atcmd_output); - if (map[m_id].flag.alias) - strcat(atcmd_output, "This map is an alias (a named clone of some other map)."); clif_displaymessage(fd, "------ Map Flags ------"); strcpy(atcmd_output,"PvP Flags: "); if (map[m_id].flag.pvp) |