summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pc.cpp12
-rw-r--r--src/mmo/clif.t.hpp1
2 files changed, 13 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;
diff --git a/src/mmo/clif.t.hpp b/src/mmo/clif.t.hpp
index 1dfbd67..c23842e 100644
--- a/src/mmo/clif.t.hpp
+++ b/src/mmo/clif.t.hpp
@@ -475,6 +475,7 @@ enum class SP : uint16_t
BL_TYPE = 1078,
CHAR_ID = 1079,
INVISIBLE = 1080,
+ HIDDEN = 1081,
};
constexpr