Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- connection = L2DatabaseFactory.getInstance().getConnection();
- PreparedStatement statement = connection.prepareStatement("UPDATE `characters` SET `good`='1', `factionId`='1' WHERE `charId`='?'");
- statement.setInt(1, getObjectId());
- statement.execute();
- statement.close();
- connection.close();
- connection = L2DatabaseFactory.getInstance().getConnection();
- PreparedStatement statement2 = connection.prepareStatement("UPDATE `characters` SET `factionId`='1' WHERE `charId`='?'");
- statement2.setInt(1, getObjectId());
- statement2.execute();
- statement2.close();
- connection.close();
- }
Add Comment
Please, Sign In to add comment