L2JMobius

Free Users => Shares/Contributions => Committed User Contributions => Topic started by: emilianoify on March 01, 2021, 05:33:56 AM

Title: Q120_PavelsResearch
Post by: emilianoify on March 01, 2021, 05:33:56 AM
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 (https://mega.nz/file/DXZmGRyD#NF8lzqPw9y_YFnJpzp4LYbgCC0z3a0LNiQx2_G4NGo4)
Title: Re: Q120_PavelsResearch
Post by: Mobius on March 01, 2021, 06:47:49 AM
-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
Title: Re: Q120_PavelsResearch
Post by: Mobius on March 01, 2021, 06:54:04 AM
Maybe Research Report needs?
Code: [Select]
<set name="consume_type" val="stackable" />
Title: Re: Q120_PavelsResearch
Post by: emilianoify on March 01, 2021, 06:58:02 AM
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 (https://youtu.be/0YFPjut6S68?t=1060)
Title: Re: Q120_PavelsResearch
Post by: Mobius on March 01, 2021, 07:02:52 AM
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.
Title: Re: Q120_PavelsResearch
Post by: emilianoify on March 01, 2021, 07:13:29 AM
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
Title: Re: Q120_PavelsResearch
Post by: Mobius on March 02, 2021, 07:34:06 AM
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;
  }
Title: Re: Q120_PavelsResearch
Post by: emilianoify on March 02, 2021, 07:02:49 PM
Ok i try it and work. I think is a good solution give the Research Report instead Locked Research Report.
Title: Re: Q120_PavelsResearch
Post by: Mobius on March 19, 2021, 01:37:44 AM
Committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/5cb44514837fba407e3f477e9a1e5eec000622c5
Thanks :D