From 533cb165e0a9b4031f027c1ee193da52f962bdd2 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sat, 18 Apr 2015 11:23:04 -0400 Subject: remove @gm atcommand --- src/map/atcommand.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/map/atcommand.cpp') diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index cd51b70..ad810f5 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -1527,25 +1527,6 @@ ATCE atcommand_joblevelup(Session *s, dumb_ptr sd, return ATCE::OKAY; } -static -ATCE atcommand_gm(Session *s, dumb_ptr sd, - ZString message) -{ - if (!message) - return ATCE::USAGE; - - if (pc_isGM(sd)) - { - // a GM can not use this function. only a normal player (become gm is not for gm!) - clif_displaymessage(s, "You already have some GM powers."_s); - return ATCE::PERM; - } - else - chrif_changegm(sd->status_key.account_id, message); - - return ATCE::OKAY; -} - static ATCE atcommand_pvpoff(Session *s, dumb_ptr sd, ZString) @@ -5017,9 +4998,6 @@ Map atcommand_info = {"jlvl"_s, {""_s, 60, atcommand_joblevelup, "Adjust your job level"_s}}, - {"gm"_s, {""_s, - 100, atcommand_gm, - "Receive GM powers"_s}}, {"pvpoff"_s, {""_s, 60, atcommand_pvpoff, "Enable PvP on your map"_s}}, -- cgit v1.2.3-70-g09d2