L2JMobius

Free Users => Solved/Invalid Bug Reports => Topic started by: snyderjgz on July 19, 2020, 03:19:29 AM

Title: Q336_CoinsOfMagic
Post by: snyderjgz on July 19, 2020, 03:19:29 AM
Hello everyone, I want to report that this quest, even if I search and kill the mobs, they do not drop the Kaldis coin

(https://i.imgur.com/hMdfD31.png)
Title: Re: Q336_CoinsOfMagic
Post by: Mobius on July 19, 2020, 10:11:05 PM
Coin has small chance.
Try this chance taken from L2jServer.
Code: [Select]
Index: dist/game/data/scripts/quests/Q336_CoinsOfMagic/Q336_CoinsOfMagic.java
===================================================================
--- dist/game/data/scripts/quests/Q336_CoinsOfMagic/Q336_CoinsOfMagic.java (revision 7463)
+++ dist/game/data/scripts/quests/Q336_CoinsOfMagic/Q336_CoinsOfMagic.java (working copy)
@@ -356,7 +356,7 @@
  final int npcId = npc.getNpcId();
  if ((npcId == HARIT_LIZARDMAN_MATRIARCH) || (npcId == HARIT_LIZARDMAN_SHAMAN))
  {
- if ((cond == 2) && (Rnd.get(100) < (10.0 * npc.getTemplate().getBaseHpConsumeRate())))
+ if ((cond == 2) && (Rnd.get(1000) < 63))
  {
  st.giveItems(KALDIS_COIN, 1);
  st.set("cond", "3");
Title: Re: Q336_CoinsOfMagic
Post by: snyderjgz on July 19, 2020, 10:55:37 PM
Coin has small chance.
Try this chance taken from L2jServer.
Code: [Select]
Index: dist/game/data/scripts/quests/Q336_CoinsOfMagic/Q336_CoinsOfMagic.java
===================================================================
--- dist/game/data/scripts/quests/Q336_CoinsOfMagic/Q336_CoinsOfMagic.java (revision 7463)
+++ dist/game/data/scripts/quests/Q336_CoinsOfMagic/Q336_CoinsOfMagic.java (working copy)
@@ -356,7 +356,7 @@
  final int npcId = npc.getNpcId();
  if ((npcId == HARIT_LIZARDMAN_MATRIARCH) || (npcId == HARIT_LIZARDMAN_SHAMAN))
  {
- if ((cond == 2) && (Rnd.get(100) < (10.0 * npc.getTemplate().getBaseHpConsumeRate())))
+ if ((cond == 2) && (Rnd.get(1000) < 63))
  {
  st.giveItems(KALDIS_COIN, 1);
  st.set("cond", "3");

it works perfectly thanks :D
Title: Re: Q336_CoinsOfMagic
Post by: Mobius on August 01, 2020, 08:11:31 PM
Fixed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/655fa99b656717a76b3c6ba455ab69d4083e7fbb