diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index d2ee979..9383512 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1956,6 +1956,19 @@ void Human::WinExp(Human* sender, int exp) if (passive_skill_meta) { AddPassiveSkill(passive_skill_meta); } + if (GetRace() == kZombieRace && meta->i->level() == 3) { + room->TouchPlayerList + ( + a8::XParams() + .SetParam1(meta->i->name()), + [] (Player* hum, a8::XParams& param) + { + hum->SendSysPiaoMsg(a8::Format("%s出现了", {param.param1.GetString()}), + 255, + 3); + } + ); + } } } diff --git a/server/tools/protobuild/metatable.proto b/server/tools/protobuild/metatable.proto index 31e930d..c0bed36 100755 --- a/server/tools/protobuild/metatable.proto +++ b/server/tools/protobuild/metatable.proto @@ -127,6 +127,7 @@ message Player optional int32 zbmode_weapon_id = 20; optional int32 zbmode_weapon_lv = 21; optional int32 revive_time = 22; + optional string name = 23; } message Robot