Skip to content
Snippets Groups Projects
Commit 421bc609 authored by Zoey76's avatar Zoey76
Browse files

Fixed quest The Name of Evil - 1 (125)

Reported by: kotsoskorg
Fixed by: Avanael92
parent 7171add0
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,8 @@ public class Q00125_TheNameOfEvil1 extends Quest ...@@ -48,6 +48,8 @@ public class Q00125_TheNameOfEvil1 extends Quest
private static final int DEINONYCHUS_BONE = 8780; private static final int DEINONYCHUS_BONE = 8780;
private static final int EPITAPH_OF_WISDOM = 8781; private static final int EPITAPH_OF_WISDOM = 8781;
private static final int GAZKH_FRAGMENT = 8782; private static final int GAZKH_FRAGMENT = 8782;
// Skills
private static final int REPRESENTATION_ENTER_THE_SAILREN_NEST_QUEST_ID = 5089;
private static final Map<Integer, Integer> ORNITHOMIMUS = new HashMap<>(); private static final Map<Integer, Integer> ORNITHOMIMUS = new HashMap<>();
private static final Map<Integer, Integer> DEINONYCHUS = new HashMap<>(); private static final Map<Integer, Integer> DEINONYCHUS = new HashMap<>();
...@@ -376,112 +378,113 @@ public class Q00125_TheNameOfEvil1 extends Quest ...@@ -376,112 +378,113 @@ public class Q00125_TheNameOfEvil1 extends Quest
case ULU_KAIMU: case ULU_KAIMU:
if (st.isStarted()) if (st.isStarted())
{ {
switch (st.getCond()) switch (st.getCond()) {
{
case 1: case 1:
case 2: case 2:
case 3: case 3:
case 4: case 4: {
htmltext = "32119-01.html"; htmltext = "32119-01.html";
break; break;
}
case 5: case 5:
if (st.get("Memo") == null) if (st.get("Memo") == null) {
{ npc.broadcastPacket(new MagicSkillUse(npc, player, REPRESENTATION_ENTER_THE_SAILREN_NEST_QUEST_ID, 1, 1000, 0));
htmltext = "32119-02.html";
npc.broadcastPacket(new MagicSkillUse(npc, player, 5089, 1, 1000, 0));
st.unset("T"); st.unset("T");
st.unset("E"); st.unset("E");
st.unset("P"); st.unset("P");
st.unset("U"); st.unset("U");
} htmltext = "32119-02.html";
else } else {
{
htmltext = "32119-09.html"; htmltext = "32119-09.html";
} }
break; break;
case 6: case 6: {
htmltext = "32119-18.html"; htmltext = "32119-18.html";
break; break;
default: }
default: {
htmltext = "32119-19.html"; htmltext = "32119-19.html";
break; break;
}
} }
} }
break; break;
case BALU_KAIMU: case BALU_KAIMU:
if (st.isStarted()) if (st.isStarted())
{ {
switch (st.getCond()) switch (st.getCond()) {
{
case 1: case 1:
case 2: case 2:
case 3: case 3:
case 4: case 4:
case 5: case 5: {
htmltext = "32120-01.html"; htmltext = "32120-01.html";
break; break;
case 6: }
if (st.get("Memo") == null) case 6: {
{ if (st.get("Memo") == null) {
htmltext = "32120-02.html"; npc.broadcastPacket(new MagicSkillUse(npc, player, REPRESENTATION_ENTER_THE_SAILREN_NEST_QUEST_ID, 1, 1000, 0));
npc.broadcastPacket(new MagicSkillUse(npc, player, 5089, 1, 1000, 0));
st.unset("T"); st.unset("T");
st.unset("O"); st.unset("O");
st.unset("O2"); st.unset("O2");
st.unset("N"); st.unset("N");
} htmltext = "32120-02.html";
else } else {
{
htmltext = "32120-09.html"; htmltext = "32120-09.html";
} }
break; break;
case 7: }
case 7: {
htmltext = "32120-17.html"; htmltext = "32120-17.html";
break; break;
default: }
default: {
htmltext = "32119-18.html"; htmltext = "32119-18.html";
break; break;
}
} }
} }
break; break;
case CHUTA_KAIMU: case CHUTA_KAIMU:
if (st.isStarted()) if (st.isStarted())
{ {
switch (st.getCond()) switch (st.getCond()) {
{
case 1: case 1:
case 2: case 2:
case 3: case 3:
case 4: case 4:
case 5: case 5:
case 6: case 6: {
htmltext = "32121-01.html"; htmltext = "32121-01.html";
break; break;
case 7: }
switch (st.getInt("Memo")) case 7: {
{ if (st.get("Memo") == null) {
case 0: npc.broadcastPacket(new MagicSkillUse(npc, player, REPRESENTATION_ENTER_THE_SAILREN_NEST_QUEST_ID, 1, 1000, 0));
htmltext = "32121-02.html"; st.unset("W");
npc.broadcastPacket(new MagicSkillUse(npc, player, 5089, 1, 1000, 0)); st.unset("A");
st.unset("W"); st.unset("G");
st.unset("A"); st.unset("U");
st.unset("G"); htmltext = "32121-02.html";
st.unset("U"); } else {
break; switch (st.getInt("Memo")) {
case 1: case 1:
htmltext = "32121-09.html"; htmltext = "32121-09.html";
break; break;
case 2: case 2:
htmltext = "32121-19.html"; htmltext = "32121-19.html";
break; break;
case 3: case 3:
htmltext = "32121-20.html"; htmltext = "32121-20.html";
break; break;
}
} }
break; break;
case 8: }
case 8: {
htmltext = "32121-21.html"; htmltext = "32121-21.html";
break; break;
}
} }
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment