Addition of missing RequestSellItem custom sell buylist check.
Contributed by secaolol.
This commit is contained in:
parent
58a85d05f5
commit
904c6be328
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -58,7 +58,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
|
@ -58,7 +58,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@ -57,7 +57,6 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_items = new ArrayList<>(size);
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
@ -122,7 +121,7 @@ public class RequestSellItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
if ((merchant == null) && !player.isGM())
|
||||
if ((merchant == null) && !player.isGM() && (_listId != CUSTOM_CB_SELL_LIST))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user