Fixed quest adena reward count.
Contributed by ultion.
This commit is contained in:
parent
5522bd160d
commit
94bf218e99
@ -2013,7 +2013,7 @@ public abstract class AbstractScript implements INamable
|
||||
* @param count the amount of Adena to give
|
||||
* @param applyRates if {@code true} quest rates will be applied to the amount
|
||||
*/
|
||||
public void giveAdena(L2PcInstance player, long count, boolean applyRates)
|
||||
public static void giveAdena(L2PcInstance player, long count, boolean applyRates)
|
||||
{
|
||||
if (applyRates)
|
||||
{
|
||||
|
@ -38,7 +38,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.events.AbstractScript;
|
||||
import com.l2jserver.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExShowQuestMark;
|
||||
import com.l2jserver.gameserver.network.serverpackets.PlaySound;
|
||||
@ -707,7 +706,7 @@ public final class QuestState
|
||||
*/
|
||||
public void giveAdena(long count, boolean applyRates)
|
||||
{
|
||||
giveItems(Inventory.ADENA_ID, count, applyRates ? 0 : 1);
|
||||
AbstractScript.giveAdena(_player, count, applyRates);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user