@@ -1,4 +1,4 @@
|
|||||||
-/*
|
/*
|
||||||
Author: Kevin
|
Author: Kevin
|
||||||
Quest: Zombie Mushroom Signal 3 (2251)
|
Quest: Zombie Mushroom Signal 3 (2251)
|
||||||
NPC: The Rememberer (1061011)
|
NPC: The Rememberer (1061011)
|
||||||
|
|||||||
@@ -7223,14 +7223,11 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
|||||||
PreparedStatement ps2, ps3;
|
PreparedStatement ps2, ps3;
|
||||||
ResultSet rs2, rs3;
|
ResultSet rs2, rs3;
|
||||||
|
|
||||||
ps3 = con.prepareStatement("SELECT petid FROM inventoryitems WHERE characterid = ? AND petid IS NOT NULL");
|
ps3 = con.prepareStatement("SELECT petid FROM inventoryitems WHERE characterid = ? AND petid > -1");
|
||||||
ps3.setInt(1, charid);
|
ps3.setInt(1, charid);
|
||||||
rs3 = ps3.executeQuery();
|
rs3 = ps3.executeQuery();
|
||||||
while (rs3.next()) {
|
while (rs3.next()) {
|
||||||
int petId = rs3.getInt("petid");
|
final int petId = rs3.getInt("petid");
|
||||||
if (rs3.wasNull()) {
|
|
||||||
petId = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
ps2 = con.prepareStatement("SELECT itemid FROM petignores WHERE petid = ?");
|
ps2 = con.prepareStatement("SELECT itemid FROM petignores WHERE petid = ?");
|
||||||
ps2.setInt(1, petId);
|
ps2.setInt(1, petId);
|
||||||
|
|||||||
Reference in New Issue
Block a user