Support for premium henna slot.
This commit is contained in:
@@ -49,6 +49,7 @@ public class PremiumManager
|
||||
private static final String LOAD_SQL = "SELECT account_name,enddate FROM account_premium";
|
||||
private static final String UPDATE_SQL = "UPDATE account_premium SET enddate = ? WHERE account_name = ?";
|
||||
private static final String ADD_SQL = "INSERT INTO account_premium (enddate,account_name) VALUE (?,?)";
|
||||
private static final String DELETE_SQL = "DELETE FROM account_premium WHERE account_name = ?";
|
||||
|
||||
class PremiumExpireTask implements Runnable
|
||||
{
|
||||
@@ -208,10 +209,9 @@ public class PremiumManager
|
||||
|
||||
// UPDATE DATABASE
|
||||
try (Connection con = DatabaseFactory.getInstance().getConnection();
|
||||
PreparedStatement stmt = con.prepareStatement(UPDATE_SQL))
|
||||
PreparedStatement stmt = con.prepareStatement(DELETE_SQL))
|
||||
{
|
||||
stmt.setLong(1, 0L);
|
||||
stmt.setString(2, accountName);
|
||||
stmt.setString(1, accountName);
|
||||
stmt.execute();
|
||||
}
|
||||
catch (SQLException e)
|
||||
|
@@ -7914,7 +7914,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
totalSlots = 2;
|
||||
}
|
||||
else
|
||||
else if (getClassId().level() > 1)
|
||||
{
|
||||
totalSlots = 3;
|
||||
}
|
||||
|
Reference in New Issue
Block a user