From f40b3cd12dd2e2c65d02816c450e5645fba84109 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Mar 2016 16:22:46 +0300 Subject: For skill units in context menu show creator name or id. --- src/net/eathena/beingrecv.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/beingrecv.cpp') diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index c5c7acfcc..18c8c11b5 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -1186,7 +1186,7 @@ void BeingRecv::processSkillEntry(Net::MessageIn &msg) { msg.readInt16("len"); const BeingId id = msg.readBeingId("skill unit id"); - msg.readBeingId("creator accound id"); + const BeingId creatorId = msg.readBeingId("creator accound id"); const int x = msg.readInt16("x"); const int y = msg.readInt16("y"); const int job = msg.readInt32("job"); @@ -1199,6 +1199,7 @@ void BeingRecv::processSkillEntry(Net::MessageIn &msg) dstBeing->setAction(BeingAction::STAND, 0); dstBeing->setTileCoords(x, y); dstBeing->setLevel(level); + dstBeing->setCreatorId(creatorId); } void BeingRecv::processPlaterStatusChange(Net::MessageIn &msg) @@ -1757,7 +1758,7 @@ void BeingRecv::processSolveCharName(Net::MessageIn &msg) void BeingRecv::processGraffiti(Net::MessageIn &msg) { const BeingId id = msg.readBeingId("graffiti id"); - msg.readBeingId("creator id"); + const BeingId creatorId = msg.readBeingId("creator id"); const int x = msg.readInt16("x"); const int y = msg.readInt16("y"); const int job = msg.readUInt8("job"); @@ -1773,6 +1774,7 @@ void BeingRecv::processGraffiti(Net::MessageIn &msg) dstBeing->setTileCoords(x, y); dstBeing->setShowName(true); dstBeing->setName(text); + dstBeing->setCreatorId(creatorId); } void BeingRecv::applyPlayerAction(Net::MessageIn &msg, -- cgit v1.2.3-70-g09d2