Proper AUCTION_HOUSE value for AuctionHouseManager deleteFromPlayer SQL statement.
This commit is contained in:
parent
032e7a5412
commit
835e5b2c6d
@ -341,7 +341,7 @@ public class AuctionHouseManager
|
|||||||
public void deleteItemFromPlayer(int playerID, int itemOID)
|
public void deleteItemFromPlayer(int playerID, int itemOID)
|
||||||
{
|
{
|
||||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||||
PreparedStatement statement = con.prepareStatement("DELETE FROM items WHERE owner_id=? AND object_id=? AND loc='AUCTION'");)
|
PreparedStatement statement = con.prepareStatement("DELETE FROM items WHERE owner_id=? AND object_id=? AND loc='AUCTION_HOUSE'");)
|
||||||
{
|
{
|
||||||
statement.setInt(1, playerID);
|
statement.setInt(1, playerID);
|
||||||
statement.setInt(2, itemOID);
|
statement.setInt(2, itemOID);
|
||||||
@ -478,26 +478,29 @@ public class AuctionHouseManager
|
|||||||
};
|
};
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int IDS[] = null;
|
int IDS[] = null;
|
||||||
switch (id)
|
if (id == 61)
|
||||||
{
|
{
|
||||||
case 61:
|
IDS = ids[1];
|
||||||
IDS = ids[1];
|
}
|
||||||
break;
|
else if (id == 62)
|
||||||
case 62:
|
{
|
||||||
IDS = ids[2];
|
IDS = ids[2];
|
||||||
break;
|
}
|
||||||
case 63:
|
else if (id == 63)
|
||||||
IDS = ids[3];
|
{
|
||||||
break;
|
IDS = ids[3];
|
||||||
case 64:
|
}
|
||||||
IDS = ids[4];
|
else if (id == 64)
|
||||||
break;
|
{
|
||||||
case 65:
|
IDS = ids[4];
|
||||||
IDS = ids[5];
|
}
|
||||||
break;
|
else if (id == 65)
|
||||||
case 1:
|
{
|
||||||
IDS = ids[0];
|
IDS = ids[5];
|
||||||
break;
|
}
|
||||||
|
else if (id == 1)
|
||||||
|
{
|
||||||
|
IDS = ids[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((((id > 60) && (id < 66)) || (id == 1)) && (IDS != null))
|
if ((((id > 60) && (id < 66)) || (id == 1)) && (IDS != null))
|
||||||
|
Loading…
Reference in New Issue
Block a user