Fixed inability to calculate olympiad rewards.
This commit is contained in:
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -172,14 +171,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -187,11 +179,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -172,14 +171,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -187,11 +179,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -172,14 +171,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -187,11 +179,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -172,14 +171,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -187,11 +179,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -172,14 +171,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -187,11 +179,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -172,14 +171,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -187,11 +179,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1036,14 +1036,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -30,7 +30,6 @@ import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -136,14 +135,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -151,11 +143,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1041,14 +1041,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -30,7 +30,6 @@ import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -136,14 +135,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -151,11 +143,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1041,14 +1041,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -30,7 +30,6 @@ import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -136,14 +135,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -151,11 +143,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1041,14 +1041,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
@@ -30,7 +30,6 @@ import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||
import com.l2jmobius.gameserver.model.olympiad.CompetitionType;
|
||||
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import com.l2jmobius.gameserver.model.olympiad.OlympiadGameManager;
|
||||
@@ -136,14 +135,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
}
|
||||
case "calculatePoints":
|
||||
{
|
||||
final int points = Olympiad.getInstance().getOlympiadTradePoint(player, false);
|
||||
if (points == 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
else if (points < 20)
|
||||
{
|
||||
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()) || Hero.getInstance().isHero(player.getObjectId()))
|
||||
if (Olympiad.getInstance().getOlympiadTradePoint(player, false) > 0)
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
@@ -151,11 +143,6 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
|
||||
{
|
||||
htmltext = "OlyManager-calculateNoEnough.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "OlyManager-calculateEnough.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "calculatePointsDone":
|
||||
|
@@ -1041,14 +1041,8 @@ public class Olympiad extends ListenersContainer
|
||||
return 0;
|
||||
}
|
||||
|
||||
int points = 0;
|
||||
|
||||
// Hero point bonus
|
||||
if (Hero.getInstance().isHero(player.getObjectId()) || Hero.getInstance().isUnclaimedHero(player.getObjectId()))
|
||||
{
|
||||
points += Config.ALT_OLY_HERO_POINTS;
|
||||
}
|
||||
|
||||
int points = player.isHero() || Hero.getInstance().isUnclaimedHero(player.getObjectId()) ? Config.ALT_OLY_HERO_POINTS : 0;
|
||||
// Rank point bonus
|
||||
switch (_noblesRank.get(objId))
|
||||
{
|
||||
|
Reference in New Issue
Block a user