Fixed talking to monument of heroes.
This commit is contained in:
parent
c7458b4b8b
commit
98c6cd7456
@ -6,7 +6,8 @@
|
|||||||
</table>
|
</table>
|
||||||
<!-- // Olympiad Emblem -->
|
<!-- // Olympiad Emblem -->
|
||||||
<table border=0 cellpadding=0 cellspacing=0>
|
<table border=0 cellpadding=0 cellspacing=0>
|
||||||
<tr><td align=center>You are not a noblesse.</td></tr>
|
<tr><td align=center>(You have to reach Lv. 55 and complete </td></tr>
|
||||||
|
<tr><td align=center> the 2nd Class Transfer to compete.)</td></tr>
|
||||||
<tr><td height=10></td></tr>
|
<tr><td height=10></td></tr>
|
||||||
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
||||||
<tr><td height=34></td></tr>
|
<tr><td height=34></td></tr>
|
||||||
|
@ -18,6 +18,7 @@ package ai.others.MonumentOfHeroes;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||||
@ -225,7 +226,11 @@ public final class MonumentOfHeroes extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||||
{
|
{
|
||||||
return player.isNoble() ? "MonumentOfHeroes-noblesse.html" : "MonumentOfHeroes-noNoblesse.html";
|
if ((!player.isInCategory(CategoryType.THIRD_CLASS_GROUP) && !player.isInCategory(CategoryType.FOURTH_CLASS_GROUP)) || (player.getLevel() < 55))
|
||||||
|
{
|
||||||
|
return "MonumentOfHeroes-noNoblesse.html";
|
||||||
|
}
|
||||||
|
return "MonumentOfHeroes-noblesse.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getOlympiadRank(L2PcInstance player)
|
private int getOlympiadRank(L2PcInstance player)
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
</table>
|
</table>
|
||||||
<!-- // Olympiad Emblem -->
|
<!-- // Olympiad Emblem -->
|
||||||
<table border=0 cellpadding=0 cellspacing=0>
|
<table border=0 cellpadding=0 cellspacing=0>
|
||||||
<tr><td align=center>You are not a noblesse.</td></tr>
|
<tr><td align=center>(You have to reach Lv. 55 and complete </td></tr>
|
||||||
|
<tr><td align=center> the 2nd Class Transfer to compete.)</td></tr>
|
||||||
<tr><td height=10></td></tr>
|
<tr><td height=10></td></tr>
|
||||||
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
||||||
<tr><td height=34></td></tr>
|
<tr><td height=34></td></tr>
|
||||||
|
@ -18,6 +18,7 @@ package ai.others.MonumentOfHeroes;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||||
@ -225,7 +226,11 @@ public final class MonumentOfHeroes extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||||
{
|
{
|
||||||
return player.isNoble() ? "MonumentOfHeroes-noblesse.html" : "MonumentOfHeroes-noNoblesse.html";
|
if ((!player.isInCategory(CategoryType.THIRD_CLASS_GROUP) && !player.isInCategory(CategoryType.FOURTH_CLASS_GROUP)) || (player.getLevel() < 55))
|
||||||
|
{
|
||||||
|
return "MonumentOfHeroes-noNoblesse.html";
|
||||||
|
}
|
||||||
|
return "MonumentOfHeroes-noblesse.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getOlympiadRank(L2PcInstance player)
|
private int getOlympiadRank(L2PcInstance player)
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
</table>
|
</table>
|
||||||
<!-- // Olympiad Emblem -->
|
<!-- // Olympiad Emblem -->
|
||||||
<table border=0 cellpadding=0 cellspacing=0>
|
<table border=0 cellpadding=0 cellspacing=0>
|
||||||
<tr><td align=center>You are not a noblesse.</td></tr>
|
<tr><td align=center>(You have to reach Lv. 55 and complete </td></tr>
|
||||||
|
<tr><td align=center> the 2nd Class Transfer to compete.)</td></tr>
|
||||||
<tr><td height=10></td></tr>
|
<tr><td height=10></td></tr>
|
||||||
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
||||||
<tr><td height=34></td></tr>
|
<tr><td height=34></td></tr>
|
||||||
|
@ -18,6 +18,7 @@ package ai.others.MonumentOfHeroes;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||||
@ -225,7 +226,11 @@ public final class MonumentOfHeroes extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||||
{
|
{
|
||||||
return player.isNoble() ? "MonumentOfHeroes-noblesse.html" : "MonumentOfHeroes-noNoblesse.html";
|
if ((!player.isInCategory(CategoryType.THIRD_CLASS_GROUP) && !player.isInCategory(CategoryType.FOURTH_CLASS_GROUP)) || (player.getLevel() < 55))
|
||||||
|
{
|
||||||
|
return "MonumentOfHeroes-noNoblesse.html";
|
||||||
|
}
|
||||||
|
return "MonumentOfHeroes-noblesse.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getOlympiadRank(L2PcInstance player)
|
private int getOlympiadRank(L2PcInstance player)
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
</table>
|
</table>
|
||||||
<!-- // Olympiad Emblem -->
|
<!-- // Olympiad Emblem -->
|
||||||
<table border=0 cellpadding=0 cellspacing=0>
|
<table border=0 cellpadding=0 cellspacing=0>
|
||||||
<tr><td align=center>You are not a noblesse.</td></tr>
|
<tr><td align=center>(You have to reach Lv. 55 and complete </td></tr>
|
||||||
|
<tr><td align=center> the 2nd Class Transfer to compete.)</td></tr>
|
||||||
<tr><td height=10></td></tr>
|
<tr><td height=10></td></tr>
|
||||||
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
|
||||||
<tr><td height=34></td></tr>
|
<tr><td height=34></td></tr>
|
||||||
|
@ -18,6 +18,7 @@ package ai.others.MonumentOfHeroes;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||||
import com.l2jmobius.gameserver.model.entity.Hero;
|
import com.l2jmobius.gameserver.model.entity.Hero;
|
||||||
@ -225,7 +226,11 @@ public final class MonumentOfHeroes extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||||
{
|
{
|
||||||
return player.isNoble() ? "MonumentOfHeroes-noblesse.html" : "MonumentOfHeroes-noNoblesse.html";
|
if ((!player.isInCategory(CategoryType.THIRD_CLASS_GROUP) && !player.isInCategory(CategoryType.FOURTH_CLASS_GROUP)) || (player.getLevel() < 55))
|
||||||
|
{
|
||||||
|
return "MonumentOfHeroes-noNoblesse.html";
|
||||||
|
}
|
||||||
|
return "MonumentOfHeroes-noblesse.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getOlympiadRank(L2PcInstance player)
|
private int getOlympiadRank(L2PcInstance player)
|
||||||
|
Loading…
Reference in New Issue
Block a user