summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 8c2bc01..63b1497 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3541,6 +3541,10 @@ int pc_readparam(dumb_ptr<block_list> bl, SP type)
if (nd)
val = bool(nd->flag & 1);
break;
+ case SP::HIDDEN:
+ if (sd)
+ val = bool(sd->status.option & Opt0::HIDE);
+ break;
}
return val;
@@ -3757,6 +3761,14 @@ 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::HIDDEN:
+ nullpo_retz(sd);
+ if (val == 1)
+ sd->status.option |= Opt0::HIDE;
+ else
+ sd->status.option &= ~Opt0::HIDE;
+ clif_changeoption(sd);
+ break;
}
return 0;