|
@@ -51,7 +51,7 @@ public abstract class AbstractOlympiadGame
|
|
{
|
|
{
|
|
protected static final Logger _log = Logger.getLogger(AbstractOlympiadGame.class.getName());
|
|
protected static final Logger _log = Logger.getLogger(AbstractOlympiadGame.class.getName());
|
|
protected static final Logger _logResults = Logger.getLogger("olympiad");
|
|
protected static final Logger _logResults = Logger.getLogger("olympiad");
|
|
-
|
|
|
|
|
|
+
|
|
protected static final String POINTS = "olympiad_points";
|
|
protected static final String POINTS = "olympiad_points";
|
|
protected static final String COMP_DONE = "competitions_done";
|
|
protected static final String COMP_DONE = "competitions_done";
|
|
protected static final String COMP_WON = "competitions_won";
|
|
protected static final String COMP_WON = "competitions_won";
|
|
@@ -61,32 +61,32 @@ public abstract class AbstractOlympiadGame
|
|
protected static final String COMP_DONE_WEEK_CLASSED = "competitions_done_week_classed";
|
|
protected static final String COMP_DONE_WEEK_CLASSED = "competitions_done_week_classed";
|
|
protected static final String COMP_DONE_WEEK_NON_CLASSED = "competitions_done_week_non_classed";
|
|
protected static final String COMP_DONE_WEEK_NON_CLASSED = "competitions_done_week_non_classed";
|
|
protected static final String COMP_DONE_WEEK_TEAM = "competitions_done_week_team";
|
|
protected static final String COMP_DONE_WEEK_TEAM = "competitions_done_week_team";
|
|
-
|
|
|
|
|
|
+
|
|
protected long _startTime = 0;
|
|
protected long _startTime = 0;
|
|
protected boolean _aborted = false;
|
|
protected boolean _aborted = false;
|
|
protected final int _stadiumID;
|
|
protected final int _stadiumID;
|
|
-
|
|
|
|
|
|
+
|
|
protected AbstractOlympiadGame(int id)
|
|
protected AbstractOlympiadGame(int id)
|
|
{
|
|
{
|
|
_stadiumID = id;
|
|
_stadiumID = id;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public final boolean isAborted()
|
|
public final boolean isAborted()
|
|
{
|
|
{
|
|
return _aborted;
|
|
return _aborted;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public final int getStadiumId()
|
|
public final int getStadiumId()
|
|
{
|
|
{
|
|
return _stadiumID;
|
|
return _stadiumID;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected boolean makeCompetitionStart()
|
|
protected boolean makeCompetitionStart()
|
|
{
|
|
{
|
|
_startTime = System.currentTimeMillis();
|
|
_startTime = System.currentTimeMillis();
|
|
return !_aborted;
|
|
return !_aborted;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected final void addPointsToParticipant(Participant par, int points)
|
|
protected final void addPointsToParticipant(Participant par, int points)
|
|
{
|
|
{
|
|
par.updateStat(POINTS, points);
|
|
par.updateStat(POINTS, points);
|
|
@@ -97,11 +97,13 @@ public abstract class AbstractOlympiadGame
|
|
|
|
|
|
for (Quest quest : QuestManager.getInstance().getAllManagedScripts())
|
|
for (Quest quest : QuestManager.getInstance().getAllManagedScripts())
|
|
{
|
|
{
|
|
- if (quest != null && quest.isOlympiadUse())
|
|
|
|
|
|
+ if ((quest != null) && quest.isOlympiadUse())
|
|
|
|
+ {
|
|
quest.notifyOlympiadWin(par.getPlayer(), getType());
|
|
quest.notifyOlympiadWin(par.getPlayer(), getType());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected final void removePointsFromParticipant(Participant par, int points)
|
|
protected final void removePointsFromParticipant(Participant par, int points)
|
|
{
|
|
{
|
|
par.updateStat(POINTS, -points);
|
|
par.updateStat(POINTS, -points);
|
|
@@ -112,29 +114,36 @@ public abstract class AbstractOlympiadGame
|
|
|
|
|
|
for (Quest quest : QuestManager.getInstance().getAllManagedScripts())
|
|
for (Quest quest : QuestManager.getInstance().getAllManagedScripts())
|
|
{
|
|
{
|
|
- if (quest != null && quest.isOlympiadUse())
|
|
|
|
|
|
+ if ((quest != null) && quest.isOlympiadUse())
|
|
|
|
+ {
|
|
quest.notifyOlympiadLose(par.getPlayer(), getType());
|
|
quest.notifyOlympiadLose(par.getPlayer(), getType());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- * Function return null if player passed all checks
|
|
|
|
- * or SystemMessage with reason for broadcast to opponent(s).
|
|
|
|
|
|
+ * Function return null if player passed all checks or SystemMessage with reason for broadcast to opponent(s).
|
|
* @param player
|
|
* @param player
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
protected static SystemMessage checkDefaulted(L2PcInstance player)
|
|
protected static SystemMessage checkDefaulted(L2PcInstance player)
|
|
{
|
|
{
|
|
- if (player == null || !player.isOnline())
|
|
|
|
|
|
+ if ((player == null) || !player.isOnline())
|
|
|
|
+ {
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_ENDS_THE_GAME);
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_ENDS_THE_GAME);
|
|
-
|
|
|
|
- if (player.getClient() == null || player.getClient().isDetached())
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if ((player.getClient() == null) || player.getClient().isDetached())
|
|
|
|
+ {
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_ENDS_THE_GAME);
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_ENDS_THE_GAME);
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
// safety precautions
|
|
// safety precautions
|
|
if (player.inObserverMode() || TvTEvent.isPlayerParticipant(player.getObjectId()))
|
|
if (player.inObserverMode() || TvTEvent.isPlayerParticipant(player.getObjectId()))
|
|
|
|
+ {
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_DOES_NOT_MEET_THE_REQUIREMENTS_FOR_JOINING_THE_GAME);
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_DOES_NOT_MEET_THE_REQUIREMENTS_FOR_JOINING_THE_GAME);
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
SystemMessage sm;
|
|
SystemMessage sm;
|
|
if (player.isDead())
|
|
if (player.isDead())
|
|
{
|
|
{
|
|
@@ -165,23 +174,27 @@ public abstract class AbstractOlympiadGame
|
|
player.sendPacket(sm);
|
|
player.sendPacket(sm);
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_DOES_NOT_MEET_THE_REQUIREMENTS_FOR_JOINING_THE_GAME);
|
|
return SystemMessage.getSystemMessage(SystemMessageId.THE_GAME_HAS_BEEN_CANCELLED_BECAUSE_THE_OTHER_PARTY_DOES_NOT_MEET_THE_REQUIREMENTS_FOR_JOINING_THE_GAME);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected static final boolean portPlayerToArena(Participant par, Location loc, int id)
|
|
protected static final boolean portPlayerToArena(Participant par, Location loc, int id)
|
|
{
|
|
{
|
|
final L2PcInstance player = par.getPlayer();
|
|
final L2PcInstance player = par.getPlayer();
|
|
- if (player == null || !player.isOnline())
|
|
|
|
|
|
+ if ((player == null) || !player.isOnline())
|
|
|
|
+ {
|
|
return false;
|
|
return false;
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
try
|
|
try
|
|
{
|
|
{
|
|
player.setLastCords(player.getX(), player.getY(), player.getZ());
|
|
player.setLastCords(player.getX(), player.getY(), player.getZ());
|
|
if (player.isSitting())
|
|
if (player.isSitting())
|
|
|
|
+ {
|
|
player.standUp();
|
|
player.standUp();
|
|
|
|
+ }
|
|
player.setTarget(null);
|
|
player.setTarget(null);
|
|
-
|
|
|
|
|
|
+
|
|
player.setOlympiadGameId(id);
|
|
player.setOlympiadGameId(id);
|
|
player.setIsInOlympiadMode(true);
|
|
player.setIsInOlympiadMode(true);
|
|
player.setIsOlympiadStart(false);
|
|
player.setIsOlympiadStart(false);
|
|
@@ -198,14 +211,16 @@ public abstract class AbstractOlympiadGame
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected static final void removals(L2PcInstance player, boolean removeParty)
|
|
protected static final void removals(L2PcInstance player, boolean removeParty)
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
if (player == null)
|
|
if (player == null)
|
|
|
|
+ {
|
|
return;
|
|
return;
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
// Remove Buffs
|
|
// Remove Buffs
|
|
player.stopAllEffectsExceptThoseThatLastThroughDeath();
|
|
player.stopAllEffectsExceptThoseThatLastThroughDeath();
|
|
|
|
|
|
@@ -214,9 +229,13 @@ public abstract class AbstractOlympiadGame
|
|
{
|
|
{
|
|
player.getClan().removeSkillEffects(player);
|
|
player.getClan().removeSkillEffects(player);
|
|
if (player.getClan().getCastleId() > 0)
|
|
if (player.getClan().getCastleId() > 0)
|
|
|
|
+ {
|
|
CastleManager.getInstance().getCastleByOwner(player.getClan()).removeResidentialSkills(player);
|
|
CastleManager.getInstance().getCastleByOwner(player.getClan()).removeResidentialSkills(player);
|
|
|
|
+ }
|
|
if (player.getClan().getFortId() > 0)
|
|
if (player.getClan().getFortId() > 0)
|
|
|
|
+ {
|
|
FortManager.getInstance().getFortByOwner(player.getClan()).removeResidentialSkills(player);
|
|
FortManager.getInstance().getFortByOwner(player.getClan()).removeResidentialSkills(player);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// Abort casting if player casting
|
|
// Abort casting if player casting
|
|
player.abortAttack();
|
|
player.abortAttack();
|
|
@@ -248,7 +267,9 @@ public abstract class AbstractOlympiadGame
|
|
summon.abortCast();
|
|
summon.abortCast();
|
|
|
|
|
|
if (summon instanceof L2PetInstance)
|
|
if (summon instanceof L2PetInstance)
|
|
|
|
+ {
|
|
summon.unSummon(player);
|
|
summon.unSummon(player);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// stop any cubic that has been given by other player.
|
|
// stop any cubic that has been given by other player.
|
|
@@ -259,7 +280,9 @@ public abstract class AbstractOlympiadGame
|
|
{
|
|
{
|
|
final L2Party party = player.getParty();
|
|
final L2Party party = player.getParty();
|
|
if (party != null)
|
|
if (party != null)
|
|
|
|
+ {
|
|
party.removePartyMember(player, messageType.Expelled);
|
|
party.removePartyMember(player, messageType.Expelled);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// Remove Agathion
|
|
// Remove Agathion
|
|
if (player.getAgathionId() > 0)
|
|
if (player.getAgathionId() > 0)
|
|
@@ -284,7 +307,9 @@ public abstract class AbstractOlympiadGame
|
|
for (L2Skill skill : player.getAllSkills())
|
|
for (L2Skill skill : player.getAllSkills())
|
|
{
|
|
{
|
|
if (skill.getReuseDelay() <= 900000)
|
|
if (skill.getReuseDelay() <= 900000)
|
|
|
|
+ {
|
|
player.enableSkill(skill);
|
|
player.enableSkill(skill);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
player.sendSkillList();
|
|
player.sendSkillList();
|
|
@@ -295,7 +320,7 @@ public abstract class AbstractOlympiadGame
|
|
_log.log(Level.WARNING, e.getMessage(), e);
|
|
_log.log(Level.WARNING, e.getMessage(), e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected static final void cleanEffects(L2PcInstance player)
|
|
protected static final void cleanEffects(L2PcInstance player)
|
|
{
|
|
{
|
|
try
|
|
try
|
|
@@ -306,17 +331,21 @@ public abstract class AbstractOlympiadGame
|
|
player.abortAttack();
|
|
player.abortAttack();
|
|
player.abortCast();
|
|
player.abortCast();
|
|
player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
|
player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
|
-
|
|
|
|
|
|
+
|
|
if (player.isDead())
|
|
if (player.isDead())
|
|
|
|
+ {
|
|
player.setIsDead(false);
|
|
player.setIsDead(false);
|
|
|
|
+ }
|
|
|
|
|
|
player.stopAllEffectsExceptThoseThatLastThroughDeath();
|
|
player.stopAllEffectsExceptThoseThatLastThroughDeath();
|
|
player.clearSouls();
|
|
player.clearSouls();
|
|
player.clearCharges();
|
|
player.clearCharges();
|
|
if (player.getAgathionId() > 0)
|
|
if (player.getAgathionId() > 0)
|
|
|
|
+ {
|
|
player.setAgathionId(0);
|
|
player.setAgathionId(0);
|
|
|
|
+ }
|
|
final L2Summon summon = player.getPet();
|
|
final L2Summon summon = player.getPet();
|
|
- if (summon != null && !summon.isDead())
|
|
|
|
|
|
+ if ((summon != null) && !summon.isDead())
|
|
{
|
|
{
|
|
summon.setTarget(null);
|
|
summon.setTarget(null);
|
|
summon.abortAttack();
|
|
summon.abortAttack();
|
|
@@ -324,7 +353,7 @@ public abstract class AbstractOlympiadGame
|
|
summon.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
|
summon.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
|
summon.stopAllEffectsExceptThoseThatLastThroughDeath();
|
|
summon.stopAllEffectsExceptThoseThatLastThroughDeath();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
player.setCurrentCp(player.getMaxCp());
|
|
player.setCurrentCp(player.getMaxCp());
|
|
player.setCurrentHp(player.getMaxHp());
|
|
player.setCurrentHp(player.getMaxHp());
|
|
player.setCurrentMp(player.getMaxMp());
|
|
player.setCurrentMp(player.getMaxMp());
|
|
@@ -335,14 +364,16 @@ public abstract class AbstractOlympiadGame
|
|
_log.log(Level.WARNING, e.getMessage(), e);
|
|
_log.log(Level.WARNING, e.getMessage(), e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected static final void playerStatusBack(L2PcInstance player)
|
|
protected static final void playerStatusBack(L2PcInstance player)
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- if(player.isTransformed())
|
|
|
|
|
|
+ if (player.isTransformed())
|
|
|
|
+ {
|
|
player.untransform();
|
|
player.untransform();
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
player.setIsInOlympiadMode(false);
|
|
player.setIsInOlympiadMode(false);
|
|
player.setIsOlympiadStart(false);
|
|
player.setIsOlympiadStart(false);
|
|
player.setOlympiadSide(-1);
|
|
player.setOlympiadSide(-1);
|
|
@@ -354,9 +385,13 @@ public abstract class AbstractOlympiadGame
|
|
{
|
|
{
|
|
player.getClan().addSkillEffects(player);
|
|
player.getClan().addSkillEffects(player);
|
|
if (player.getClan().getCastleId() > 0)
|
|
if (player.getClan().getCastleId() > 0)
|
|
|
|
+ {
|
|
CastleManager.getInstance().getCastleByOwner(player.getClan()).giveResidentialSkills(player);
|
|
CastleManager.getInstance().getCastleByOwner(player.getClan()).giveResidentialSkills(player);
|
|
|
|
+ }
|
|
if (player.getClan().getFortId() > 0)
|
|
if (player.getClan().getFortId() > 0)
|
|
|
|
+ {
|
|
FortManager.getInstance().getFortByOwner(player.getClan()).giveResidentialSkills(player);
|
|
FortManager.getInstance().getFortByOwner(player.getClan()).giveResidentialSkills(player);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// Add Hero Skills
|
|
// Add Hero Skills
|
|
@@ -368,40 +403,48 @@ public abstract class AbstractOlympiadGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
player.sendSkillList();
|
|
player.sendSkillList();
|
|
-
|
|
|
|
|
|
+
|
|
// heal again after adding clan skills
|
|
// heal again after adding clan skills
|
|
player.setCurrentCp(player.getMaxCp());
|
|
player.setCurrentCp(player.getMaxCp());
|
|
player.setCurrentHp(player.getMaxHp());
|
|
player.setCurrentHp(player.getMaxHp());
|
|
player.setCurrentMp(player.getMaxMp());
|
|
player.setCurrentMp(player.getMaxMp());
|
|
player.getStatus().startHpMpRegeneration();
|
|
player.getStatus().startHpMpRegeneration();
|
|
-
|
|
|
|
|
|
+
|
|
if (Config.L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP > 0)
|
|
if (Config.L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP > 0)
|
|
|
|
+ {
|
|
AntiFeedManager.getInstance().removePlayer(AntiFeedManager.OLYMPIAD_ID, player);
|
|
AntiFeedManager.getInstance().removePlayer(AntiFeedManager.OLYMPIAD_ID, player);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
_log.log(Level.WARNING, "portPlayersToArena()", e);
|
|
_log.log(Level.WARNING, "portPlayersToArena()", e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
protected static final void portPlayerBack(L2PcInstance player)
|
|
protected static final void portPlayerBack(L2PcInstance player)
|
|
{
|
|
{
|
|
if (player == null)
|
|
if (player == null)
|
|
|
|
+ {
|
|
return;
|
|
return;
|
|
-
|
|
|
|
- if (player.getLastX() == 0 && player.getLastY() == 0)
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if ((player.getLastX() == 0) && (player.getLastY() == 0))
|
|
|
|
+ {
|
|
return;
|
|
return;
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
player.setInstanceId(0);
|
|
player.setInstanceId(0);
|
|
player.teleToLocation(player.getLastX(), player.getLastY(), player.getLastZ());
|
|
player.teleToLocation(player.getLastX(), player.getLastY(), player.getLastZ());
|
|
player.setLastCords(0, 0, 0);
|
|
player.setLastCords(0, 0, 0);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static final void rewardParticipant(L2PcInstance player, int[][] reward)
|
|
public static final void rewardParticipant(L2PcInstance player, int[][] reward)
|
|
{
|
|
{
|
|
- if (player == null || !player.isOnline() || reward == null)
|
|
|
|
|
|
+ if ((player == null) || !player.isOnline() || (reward == null))
|
|
|
|
+ {
|
|
return;
|
|
return;
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
try
|
|
try
|
|
{
|
|
{
|
|
SystemMessage sm;
|
|
SystemMessage sm;
|
|
@@ -409,69 +452,73 @@ public abstract class AbstractOlympiadGame
|
|
final InventoryUpdate iu = new InventoryUpdate();
|
|
final InventoryUpdate iu = new InventoryUpdate();
|
|
for (int[] it : reward)
|
|
for (int[] it : reward)
|
|
{
|
|
{
|
|
- if (it == null || it.length != 2)
|
|
|
|
|
|
+ if ((it == null) || (it.length != 2))
|
|
|
|
+ {
|
|
continue;
|
|
continue;
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
item = player.getInventory().addItem("Olympiad", it[0], it[1], player, null);
|
|
item = player.getInventory().addItem("Olympiad", it[0], it[1], player, null);
|
|
if (item == null)
|
|
if (item == null)
|
|
|
|
+ {
|
|
continue;
|
|
continue;
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
iu.addModifiedItem(item);
|
|
iu.addModifiedItem(item);
|
|
sm = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S);
|
|
sm = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S);
|
|
sm.addItemName(it[0]);
|
|
sm.addItemName(it[0]);
|
|
sm.addNumber(it[1]);
|
|
sm.addNumber(it[1]);
|
|
player.sendPacket(sm);
|
|
player.sendPacket(sm);
|
|
}
|
|
}
|
|
- player.sendPacket(iu);
|
|
|
|
|
|
+ player.sendPacket(iu);
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
_log.log(Level.WARNING, e.getMessage(), e);
|
|
_log.log(Level.WARNING, e.getMessage(), e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public abstract CompetitionType getType();
|
|
public abstract CompetitionType getType();
|
|
-
|
|
|
|
|
|
+
|
|
public abstract String[] getPlayerNames();
|
|
public abstract String[] getPlayerNames();
|
|
-
|
|
|
|
|
|
+
|
|
public abstract boolean containsParticipant(int playerId);
|
|
public abstract boolean containsParticipant(int playerId);
|
|
-
|
|
|
|
|
|
+
|
|
public abstract void sendOlympiadInfo(L2Character player);
|
|
public abstract void sendOlympiadInfo(L2Character player);
|
|
-
|
|
|
|
|
|
+
|
|
public abstract void broadcastOlympiadInfo(L2OlympiadStadiumZone stadium);
|
|
public abstract void broadcastOlympiadInfo(L2OlympiadStadiumZone stadium);
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void broadcastPacket(L2GameServerPacket packet);
|
|
protected abstract void broadcastPacket(L2GameServerPacket packet);
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract boolean needBuffers();
|
|
protected abstract boolean needBuffers();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract boolean checkDefaulted();
|
|
protected abstract boolean checkDefaulted();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void removals();
|
|
protected abstract void removals();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract boolean portPlayersToArena(List<Location> spawns);
|
|
protected abstract boolean portPlayersToArena(List<Location> spawns);
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void cleanEffects();
|
|
protected abstract void cleanEffects();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void portPlayersBack();
|
|
protected abstract void portPlayersBack();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void playersStatusBack();
|
|
protected abstract void playersStatusBack();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void clearPlayers();
|
|
protected abstract void clearPlayers();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void handleDisconnect(L2PcInstance player);
|
|
protected abstract void handleDisconnect(L2PcInstance player);
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void resetDamage();
|
|
protected abstract void resetDamage();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void addDamage(L2PcInstance player, int damage);
|
|
protected abstract void addDamage(L2PcInstance player, int damage);
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract boolean checkBattleStatus();
|
|
protected abstract boolean checkBattleStatus();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract boolean haveWinner();
|
|
protected abstract boolean haveWinner();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract void validateWinner(L2OlympiadStadiumZone stadium);
|
|
protected abstract void validateWinner(L2OlympiadStadiumZone stadium);
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract int getDivider();
|
|
protected abstract int getDivider();
|
|
-
|
|
|
|
|
|
+
|
|
protected abstract int[][] getReward();
|
|
protected abstract int[][] getReward();
|
|
|
|
|
|
protected abstract String getWeeklyMatchType();
|
|
protected abstract String getWeeklyMatchType();
|