Sync with L2jServer HighFive Mar 1st 2015.
This commit is contained in:
@ -18,6 +18,8 @@
|
||||
*/
|
||||
package com.l2jserver.gameserver.network.clientpackets;
|
||||
|
||||
import static com.l2jserver.gameserver.model.actor.L2Npc.INTERACTION_DISTANCE;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
@ -102,6 +104,15 @@ public class MultiSellChoose extends L2GameClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (!player.isGM() && (npc != null))
|
||||
{
|
||||
if (!player.isInsideRadius(npc, INTERACTION_DISTANCE, true, false) || (player.getInstanceId() != npc.getInstanceId()))
|
||||
{
|
||||
player.setMultiSell(null);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
for (Entry entry : list.getEntries())
|
||||
{
|
||||
if (entry.getEntryId() == _entryId)
|
||||
|
Reference in New Issue
Block a user