Inherit multisell template NPC ids.
This commit is contained in:
parent
d21691842e
commit
fea534e58e
@ -43,7 +43,6 @@ import org.l2jmobius.gameserver.network.serverpackets.ExBrExtraUserInfo;
|
|||||||
import org.l2jmobius.gameserver.network.serverpackets.MultiSellList;
|
import org.l2jmobius.gameserver.network.serverpackets.MultiSellList;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.UserInfo;
|
import org.l2jmobius.gameserver.network.serverpackets.UserInfo;
|
||||||
import org.l2jmobius.gameserver.util.Util;
|
|
||||||
|
|
||||||
public class MultisellData implements IXmlReader
|
public class MultisellData implements IXmlReader
|
||||||
{
|
{
|
||||||
@ -140,8 +139,6 @@ public class MultisellData implements IXmlReader
|
|||||||
for (Node b = d.getFirstChild(); b != null; b = b.getNextSibling())
|
for (Node b = d.getFirstChild(); b != null; b = b.getNextSibling())
|
||||||
{
|
{
|
||||||
if ("npc".equalsIgnoreCase(b.getNodeName()))
|
if ("npc".equalsIgnoreCase(b.getNodeName()))
|
||||||
{
|
|
||||||
if (Util.isDigit(b.getTextContent()))
|
|
||||||
{
|
{
|
||||||
list.allowNpc(Integer.parseInt(b.getTextContent()));
|
list.allowNpc(Integer.parseInt(b.getTextContent()));
|
||||||
}
|
}
|
||||||
@ -150,7 +147,6 @@ public class MultisellData implements IXmlReader
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
_entries.put(id, list);
|
_entries.put(id, list);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -93,6 +93,8 @@ public class PreparedListContainer extends ListContainer
|
|||||||
_entries.add(new PreparedEntry(ent, null, getApplyTaxes(), false, taxRate));
|
_entries.add(new PreparedEntry(ent, null, getApplyTaxes(), false, taxRate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_npcsAllowed = template._npcsAllowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean checkNpcObjectId(int npcObjectId)
|
public boolean checkNpcObjectId(int npcObjectId)
|
||||||
|
Loading…
Reference in New Issue
Block a user