Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -159,28 +159,12 @@ public class Q10360_CertificationOfFate extends Quest
{
case HUMAN:
{
if (player.getClassId().isMage())
{
qs.setCond(9);
}
else
{
qs.setCond(8);
}
qs.setCond(player.getClassId().isMage() ? 9 : 8);
break;
}
case ELF:
{
if (player.getClassId().isMage())
{
qs.setCond(11);
}
else
{
qs.setCond(10);
}
qs.setCond(player.getClassId().isMage() ? 11 : 10);
break;
}
case DARK_ELF:
@@ -425,7 +409,7 @@ public class Q10360_CertificationOfFate extends Quest
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = null;
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
@@ -438,10 +422,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30289-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case RAINS:
@@ -450,10 +430,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30288-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case ELLENIA:
@@ -462,10 +438,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30155-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case ESRANDELL:
@@ -474,10 +446,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30158-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case TOBIAS:
@@ -486,10 +454,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30297-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case DRIKUS:
@@ -498,10 +462,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30505-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case MENDIO:
@@ -510,10 +470,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30504-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case GERSHWIN:
@@ -522,10 +478,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "32196-01.htm";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
default:
@@ -567,10 +519,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30289-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case RAINS:
@@ -605,10 +553,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30288-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case ELLENIA:
@@ -638,10 +582,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30155-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case ESRANDELL:
@@ -671,10 +611,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30158-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case TOBIAS:
@@ -714,10 +650,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30297-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case DRIKUS:
@@ -752,10 +684,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30505-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case MENDIO:
@@ -785,10 +713,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "30504-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case GERSHWIN:
@@ -818,10 +742,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "32196-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case RENFAD:
@@ -834,10 +754,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "33524-04.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case JOEL:
@@ -850,10 +766,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "33516-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case SCHUAZEN:
@@ -866,10 +778,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "33517-03.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
case SELON:
@@ -882,10 +790,6 @@ public class Q10360_CertificationOfFate extends Quest
{
htmltext = "33518-05.html";
}
else
{
htmltext = getNoQuestMsg(player);
}
break;
}
}