summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index f854ccd..3784566 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3780,6 +3780,12 @@ int pc_setparam(dumb_ptr<block_list> bl, SP type, int val)
else if (nd)
npc_enable(nd->name, (val > 0) ? false : true);
break;
+ case SP::GM:
+ nullpo_retz(sd);
+ pc_set_gm_level(sd->status_key.account_id, GmLevel::from(static_cast<uint32_t>(val)));
+ clif_updatestatus(sd, SP::GM); // propagate to self
+ clif_fixpcpos(sd); // propagate to others
+ break;
case SP::HIDDEN:
nullpo_retz(sd);
if (val == 1)