L2JMobius

C6 HTMLs Q004_LongliveThePa'agrioLord

emilianoify · 4 · 2836

Offline emilianoify

  • Heir
  • **
    • Posts: 35
  • Try first after ask for help
Hi guys, in htmls use Q004_LongliveThePaagrioLord instead Q004_LongliveThePa'agrioLord :)
 or download here

 https://mega.nz/file/aC4iAAKC#_6ulEKNwkgVJvsIwC8W1TTHRiPCvwTAfgNBrT4xUaDw


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16120
htmltext = npcId + "30585-01.htm";
is wrong.

Probable what needs to be done.
Code: [Select]
Index: dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-02.htm
===================================================================
--- dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-02.htm (revision 8319)
+++ dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-02.htm (working copy)
@@ -1,4 +1,4 @@
 <html><body>Centurion Nakusin:<br>
 Dekara Lamchar Kakai! Kakai, the Pa'agrio Lord, has not been well recently. The tribal elders have decided that each tribe should offer him <font color="LEVEL">something that is good for his health </font>. Meet the representatives of each tribe and bring back their gifts! Can you do it?<br>
-<a action="bypass -h Quest Q004_LongliveThePa'agrioLord 30578-03.htm">Say you will do it</a>
+<a action="bypass -h Quest Q004_LongliveThePaagrioLord 30578-03.htm">Say you will do it</a>
 </body></html>
\ No newline at end of file
Index: dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-04.htm
===================================================================
--- dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-04.htm (revision 8319)
+++ dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-04.htm (working copy)
@@ -1,4 +1,4 @@
 <html><body>Centurion Nakusin:<br>
 Meet the representatives of each tribe and bring back their gifts! Don't tell me that you have forgotten what your task is?<br>
-<a action="bypass -h Quest Q004_LongliveThePa'agrioLord 30578-05.htm">Say you forgot</a>
+<a action="bypass -h Quest Q004_LongliveThePaagrioLord 30578-05.htm">Say you forgot</a>
 </body></html>
\ No newline at end of file
Index: dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/Q004_LongliveThePaagrioLord.java
===================================================================
--- dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/Q004_LongliveThePaagrioLord.java (revision 8319)
+++ dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/Q004_LongliveThePaagrioLord.java (working copy)
@@ -28,6 +28,7 @@
 
 public class Q004_LongliveThePaagrioLord extends Quest
 {
+ private static final int NAKUSIN = 30578;
  private static final Map<Integer, Integer> NPC_GIFTS = new HashMap<>();
  static
  {
@@ -99,7 +100,8 @@
  case State.STARTED:
  final int cond = st.getInt("cond");
  final int npcId = npc.getNpcId();
- if (npcId == 30578)
+
+ if (npcId == NAKUSIN)
  {
  if (cond == 1)
  {
@@ -123,12 +125,13 @@
  final int i = NPC_GIFTS.get(npcId);
  if (st.hasQuestItems(i))
  {
- htmltext = npcId + "-02.htm";
+ htmltext = "30585-02.htm";
  }
  else
  {
  st.giveItems(i, 1);
- htmltext = npcId + "-01.htm";
+ htmltext = "30585-01.htm";
+
  int count = 0;
  for (int item : NPC_GIFTS.values())
  {


Offline emilianoify

  • Heir
  • **
    • Posts: 35
  • Try first after ask for help
htmltext = npcId + "30585-01.htm";
is wrong.

Probable what needs to be done.
Code: [Select]
Index: dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-02.htm
===================================================================
--- dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-02.htm (revision 8319)
+++ dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-02.htm (working copy)
@@ -1,4 +1,4 @@
 <html><body>Centurion Nakusin:<br>
 Dekara Lamchar Kakai! Kakai, the Pa'agrio Lord, has not been well recently. The tribal elders have decided that each tribe should offer him <font color="LEVEL">something that is good for his health </font>. Meet the representatives of each tribe and bring back their gifts! Can you do it?<br>
-<a action="bypass -h Quest Q004_LongliveThePa'agrioLord 30578-03.htm">Say you will do it</a>
+<a action="bypass -h Quest Q004_LongliveThePaagrioLord 30578-03.htm">Say you will do it</a>
 </body></html>
\ No newline at end of file
Index: dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-04.htm
===================================================================
--- dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-04.htm (revision 8319)
+++ dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/30578-04.htm (working copy)
@@ -1,4 +1,4 @@
 <html><body>Centurion Nakusin:<br>
 Meet the representatives of each tribe and bring back their gifts! Don't tell me that you have forgotten what your task is?<br>
-<a action="bypass -h Quest Q004_LongliveThePa'agrioLord 30578-05.htm">Say you forgot</a>
+<a action="bypass -h Quest Q004_LongliveThePaagrioLord 30578-05.htm">Say you forgot</a>
 </body></html>
\ No newline at end of file
Index: dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/Q004_LongliveThePaagrioLord.java
===================================================================
--- dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/Q004_LongliveThePaagrioLord.java (revision 8319)
+++ dist/game/data/scripts/quests/Q004_LongliveThePaagrioLord/Q004_LongliveThePaagrioLord.java (working copy)
@@ -28,6 +28,7 @@
 
 public class Q004_LongliveThePaagrioLord extends Quest
 {
+ private static final int NAKUSIN = 30578;
  private static final Map<Integer, Integer> NPC_GIFTS = new HashMap<>();
  static
  {
@@ -99,7 +100,8 @@
  case State.STARTED:
  final int cond = st.getInt("cond");
  final int npcId = npc.getNpcId();
- if (npcId == 30578)
+
+ if (npcId == NAKUSIN)
  {
  if (cond == 1)
  {
@@ -123,12 +125,13 @@
  final int i = NPC_GIFTS.get(npcId);
  if (st.hasQuestItems(i))
  {
- htmltext = npcId + "-02.htm";
+ htmltext = "30585-02.htm";
  }
  else
  {
  st.giveItems(i, 1);
- htmltext = npcId + "-01.htm";
+ htmltext = "30585-01.htm";
+
  int count = 0;
  for (int item : NPC_GIFTS.values())
  {

Hi mobius, i upload the erroneous files, sorry. Now are fine. https://imgur.com/lVMbRif