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)
This commit is contained in:
@@ -1828,7 +1828,8 @@ public class MaplePacketCreator {
|
|||||||
mplew.writeInt(!drop.isFFADrop() ? (recvrInParty ? drop.getPartyOwnerId() : drop.getOwnerId()) : 0); // owner charid/partyid :)
|
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.write(drop.getDropType()); // 0 = timeout for non-owner, 1 = timeout for non-owner's party, 2 = FFA, 3 = explosive/FFA
|
||||||
mplew.writePos(dropto);
|
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) {
|
if (mod != 2) {
|
||||||
mplew.writePos(dropfrom);
|
mplew.writePos(dropfrom);
|
||||||
|
|||||||
Reference in New Issue
Block a user