From 4beea3961583c832c9e7a98f8720fa7307653968 Mon Sep 17 00:00:00 2001 From: Li Jixue Date: Sun, 10 Feb 2019 20:30:50 +0800 Subject: [PATCH] fix the error when a monster's oid in map equals charId, (the item will drop from the error monster) (#400) (cherry picked from commit 5c1017c73d83b7bc646c36bdde2d7904af78a111) --- src/tools/MaplePacketCreator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/MaplePacketCreator.java b/src/tools/MaplePacketCreator.java index b999ae5567..216f73e73a 100644 --- a/src/tools/MaplePacketCreator.java +++ b/src/tools/MaplePacketCreator.java @@ -1828,7 +1828,8 @@ public class MaplePacketCreator { mplew.writeInt(!drop.isFFADrop() ? (recvrInParty ? drop.getPartyOwnerId() : drop.getOwnerId()) : 0); // owner charid/partyid :) mplew.write(drop.getDropType()); // 0 = timeout for non-owner, 1 = timeout for non-owner's party, 2 = FFA, 3 = explosive/FFA mplew.writePos(dropto); - mplew.writeInt(!drop.isFFADrop() ? drop.getOwnerId() : 0); // owner charid + // its not charId, but dropper's oid, this error will occur only if a monster's oid in map equals charId, (the item will drop from the error monster) + mplew.writeInt(drop.getDropper().getObjectId()); if (mod != 2) { mplew.writePos(dropfrom);