|
@@ -38,6 +38,7 @@ import com.l2jserver.gameserver.model.L2SiegeClan;
|
|
import com.l2jserver.gameserver.model.L2Spawn;
|
|
import com.l2jserver.gameserver.model.L2Spawn;
|
|
import com.l2jserver.gameserver.model.L2World;
|
|
import com.l2jserver.gameserver.model.L2World;
|
|
import com.l2jserver.gameserver.model.L2SiegeClan.SiegeClanType;
|
|
import com.l2jserver.gameserver.model.L2SiegeClan.SiegeClanType;
|
|
|
|
+import com.l2jserver.gameserver.model.Location;
|
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
|
import com.l2jserver.gameserver.model.entity.Siegable;
|
|
import com.l2jserver.gameserver.model.entity.Siegable;
|
|
@@ -57,11 +58,12 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|
private static final String SQL_SAVE_ATTACKERS = "INSERT INTO clanhall_siege_attackers VALUES (?,?)";
|
|
private static final String SQL_SAVE_ATTACKERS = "INSERT INTO clanhall_siege_attackers VALUES (?,?)";
|
|
private static final String SQL_LOAD_GUARDS = "SELECT * FROM clanhall_siege_guards WHERE clanHallId = ?";
|
|
private static final String SQL_LOAD_GUARDS = "SELECT * FROM clanhall_siege_guards WHERE clanHallId = ?";
|
|
|
|
|
|
|
|
+ public static final int FORTRESS_RESSISTANCE = 21;
|
|
public static final int DEVASTATED_CASTLE = 34;
|
|
public static final int DEVASTATED_CASTLE = 34;
|
|
public static final int BANDIT_STRONGHOLD = 35;
|
|
public static final int BANDIT_STRONGHOLD = 35;
|
|
- public static final int FORTRESS_RESSISTANCE = 21;
|
|
|
|
- public static final int FORTRESS_OF_DEAD = 64;
|
|
|
|
public static final int RAINBOW_SPRINGS = 62;
|
|
public static final int RAINBOW_SPRINGS = 62;
|
|
|
|
+ public static final int BEAST_FARM = 63;
|
|
|
|
+ public static final int FORTRESS_OF_DEAD = 64;
|
|
|
|
|
|
protected final Logger _log;
|
|
protected final Logger _log;
|
|
|
|
|
|
@@ -87,12 +89,8 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|
|
|
|
|
//XXX Load methods -------------------------------
|
|
//XXX Load methods -------------------------------
|
|
|
|
|
|
- private final void loadAttackers()
|
|
|
|
|
|
+ public void loadAttackers()
|
|
{
|
|
{
|
|
- // XXX
|
|
|
|
- if(_hall.getId() == 63)
|
|
|
|
- return;;
|
|
|
|
-
|
|
|
|
Connection con = null;
|
|
Connection con = null;
|
|
try
|
|
try
|
|
{
|
|
{
|
|
@@ -345,11 +343,8 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|
|
|
|
|
_hall.banishForeigners();
|
|
_hall.banishForeigners();
|
|
_hall.spawnDoor();
|
|
_hall.spawnDoor();
|
|
- if(_hall.getId() != BANDIT_STRONGHOLD)
|
|
|
|
- {
|
|
|
|
- loadGuards();
|
|
|
|
- spawnSiegeGuards();
|
|
|
|
- }
|
|
|
|
|
|
+ loadGuards();
|
|
|
|
+ spawnSiegeGuards();
|
|
_hall.updateSiegeZone(true);
|
|
_hall.updateSiegeZone(true);
|
|
|
|
|
|
final byte state = 1;
|
|
final byte state = 1;
|
|
@@ -434,8 +429,7 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|
_log.config("Siege of "+_hall.getName()+" scheduled for: "+_hall.getSiegeDate().getTime());
|
|
_log.config("Siege of "+_hall.getName()+" scheduled for: "+_hall.getSiegeDate().getTime());
|
|
|
|
|
|
_hall.updateSiegeStatus(SiegeStatus.REGISTERING);
|
|
_hall.updateSiegeStatus(SiegeStatus.REGISTERING);
|
|
- if(_hall.getId() != BANDIT_STRONGHOLD)
|
|
|
|
- unSpawnSiegeGuards();
|
|
|
|
|
|
+ unSpawnSiegeGuards();
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -492,10 +486,25 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|
}
|
|
}
|
|
|
|
|
|
// XXX Siege task and abstract methods -------------------
|
|
// XXX Siege task and abstract methods -------------------
|
|
|
|
+ public Location getInnerSpawnLoc(L2PcInstance player)
|
|
|
|
+ {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public boolean canPlantFlag()
|
|
|
|
+ {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void onSiegeStarts()
|
|
|
|
+ {
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void onSiegeEnds()
|
|
|
|
+ {
|
|
|
|
+ }
|
|
|
|
|
|
- public abstract L2Clan getWinner();
|
|
|
|
- public void onSiegeStarts() {}
|
|
|
|
- public void onSiegeEnds() {}
|
|
|
|
|
|
+ public abstract L2Clan getWinner();
|
|
|
|
|
|
public class PrepareOwner implements Runnable
|
|
public class PrepareOwner implements Runnable
|
|
{
|
|
{
|