L2JMobius

C6 Q120_PavelsResearch

emilianoify · 9 · 3288

Offline emilianoify

  • Heir
  • **
    • Posts: 35
  • Try first after ask for help
Hi guys, after some hours(cause im junior jeje)

My problems:

-Enigma Key don't open the Locked Research Report.
-Research Report can't be read.
-Missing NPC Dr. Chaos' Secret Bookshelf.(I spawn it on 96314 -110448   -3339 96313, -110455, -3340) you can make the same. I dont provide here "custom_spawnlist.sql" :)
-Missing html for Report Research.

What I do?

-Code in ExtractableItems(org.l2jmobius.gameserver.handler.itemhandlers) and make Enigma Key consumable, now this give to you Enigma key and Research Report.
-Add Research Report(8059) into Book.java (org.l2jmobius.gameserver.handler.itemhandlers)
-Add in ExtractableItems.xml Key of Enigma.
-Add 8059.htm and for Report Research Folder into data/html/help
-Assign property of quest item and others (non-dropeable, non-tradeable, non-sellable, non-destroyable in some occasions for xml 8000-8099.xml into data/stats/items
-Fixed LittleBug on .Java of Quest ("cond > 21 instead cond ==22")

PD: Im working in some xml because some Quest Items are dropeable, sellable, tradeable or unstackable. For example Fang of Stakato or Destroyed Golem Shard(this last is unstackable)

PD2: I know my solution is not the best but now the players can continue the Quest ^^

**EDIT**

14/03: You need spawn weathermaster "32043" because spawnlist dont have this. 32042 and 32044 are in spawnlist.

Download here with the Mobius recommendations:

https://mega.nz/file/DXZmGRyD#NF8lzqPw9y_YFnJpzp4LYbgCC0z3a0LNiQx2_G4NGo4


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16055
-We have ExtractableItems.xml for enigma key so what is ExtractableItems.java code needed for?
-Based on H5 retail spawns bookself spawn location is 96313, -110455, -3340

Patch: https://pastebin.com/TNAUCg5i


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16055
Maybe Research Report needs?
Code: [Select]
<set name="consume_type" val="stackable" />


Offline emilianoify

  • Heir
  • **
    • Posts: 35
  • Try first after ask for help
I use extractableitems.java for give enigma key again to the player. I know is not the best solution but need the key and the research for continue the quest. And if i use enigma key this dissapear and give me the research report but not destroy the Locked Research Report.

So i try make some like this: https://youtu.be/0YFPjut6S68?t=1060


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16055
Tried this?
Code: [Select]
Index: dist/game/data/ExtractableItems.xml
===================================================================
--- dist/game/data/ExtractableItems.xml (revision 8319)
+++ dist/game/data/ExtractableItems.xml (working copy)
@@ -1597,6 +1597,10 @@
  <extract id="7697" quantity="1" chance="10" /> <!-- Piece of Forget-me-not Hairpin -->
  <extract id="-1" quantity="0" chance="54" /> <!-- Nothing -->
  </item>
+ <item id="8059"> <!-- Research Report -->
+ <extract id="8059" quantity="1" chance="100" /> <!-- Research Report -->
+ <extract id="8060" quantity="1" chance="100" /> <!-- Key of Enigma -->
+ </item>
  <item id="8403"> <!-- Small Nimble Green Fish - Upper Grade -->
  <extract id="6911" quantity="2" chance="30" /> <!-- Fish Scale -->
  <extract id="6913" quantity="1" chance="21" /> <!-- Fish Gem -->

I think most proper way is to give items needed after clicking NPC bypass.
So on next step you will have those items.


Offline emilianoify

  • Heir
  • **
    • Posts: 35
  • Try first after ask for help
Yes, but dont work because that keep on my inventory "Lockup research report" and dont give me again the "Key of enigma", this give to me another "Research report" :/

Here you can see: https://youtu.be/v2hwJ_5QNhE


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16055
I mean something like this.
Code: [Select]
Index: dist/game/data/scripts/quests/Q120_PavelsResearch/Q120_PavelsResearch.java
===================================================================
--- dist/game/data/scripts/quests/Q120_PavelsResearch/Q120_PavelsResearch.java (revision 8319)
+++ dist/game/data/scripts/quests/Q120_PavelsResearch/Q120_PavelsResearch.java (working copy)
@@ -274,7 +274,7 @@
  {
  qs.set("cond", "15");
  qs.playSound("ItemSound.quest_middle");
- qs.giveItems(REPORT, 1);
+ qs.giveItems(REPORT2, 1);
  npc.broadcastPacket(new MagicSkillUse(npc, qs.getPlayer(), 5073, 5, 1500, 0));
  break;
  }


Offline emilianoify

  • Heir
  • **
    • Posts: 35
  • Try first after ask for help
Ok i try it and work. I think is a good solution give the Research Report instead Locked Research Report.