Update Adena and LCoin count on add or destroy.
Contributed by Index.
This commit is contained in:
@@ -3553,12 +3553,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Einhasad coin UI update.
|
|
||||||
if (destoyedItem.getId() == Inventory.EINHASAD_COIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3675,12 +3669,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Einhasad coin UI update.
|
|
||||||
if (item.getId() == Inventory.EINHASAD_COIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-2
@@ -50,6 +50,7 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
|||||||
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
||||||
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
||||||
|
|
||||||
@@ -505,8 +506,13 @@ public class PlayerInventory extends Inventory
|
|||||||
actor.sendItemList();
|
actor.sendItemList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adena UI update.
|
||||||
|
if (item.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
// Einhasad coin UI update.
|
// Einhasad coin UI update.
|
||||||
if (item.getId() == Inventory.EINHASAD_COIN_ID)
|
else if (item.getId() == Inventory.EINHASAD_COIN_ID)
|
||||||
{
|
{
|
||||||
actor.sendPacket(new ExBloodyCoinCount(actor));
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
}
|
}
|
||||||
@@ -598,9 +604,20 @@ public class PlayerInventory extends Inventory
|
|||||||
_ancientAdena = null;
|
_ancientAdena = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify to scripts
|
|
||||||
if (destroyedItem != null)
|
if (destroyedItem != null)
|
||||||
{
|
{
|
||||||
|
// Adena UI update.
|
||||||
|
if (destroyedItem.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
|
// Einhasad coin UI update.
|
||||||
|
else if (destroyedItem.getId() == Inventory.EINHASAD_COIN_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify to scripts
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3581,12 +3581,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Einhasad coin UI update.
|
|
||||||
if (destoyedItem.getId() == Inventory.EINHASAD_COIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3703,12 +3697,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Einhasad coin UI update.
|
|
||||||
if (item.getId() == Inventory.EINHASAD_COIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-2
@@ -50,6 +50,7 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
|||||||
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
||||||
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
||||||
|
|
||||||
@@ -505,8 +506,13 @@ public class PlayerInventory extends Inventory
|
|||||||
actor.sendItemList();
|
actor.sendItemList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adena UI update.
|
||||||
|
if (item.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
// Einhasad coin UI update.
|
// Einhasad coin UI update.
|
||||||
if (item.getId() == Inventory.EINHASAD_COIN_ID)
|
else if (item.getId() == Inventory.EINHASAD_COIN_ID)
|
||||||
{
|
{
|
||||||
actor.sendPacket(new ExBloodyCoinCount(actor));
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
}
|
}
|
||||||
@@ -598,9 +604,20 @@ public class PlayerInventory extends Inventory
|
|||||||
_ancientAdena = null;
|
_ancientAdena = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify to scripts
|
|
||||||
if (destroyedItem != null)
|
if (destroyedItem != null)
|
||||||
{
|
{
|
||||||
|
// Adena UI update.
|
||||||
|
if (destroyedItem.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
|
// Einhasad coin UI update.
|
||||||
|
else if (destroyedItem.getId() == Inventory.EINHASAD_COIN_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify to scripts
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-12
@@ -3515,12 +3515,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (destoyedItem.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3637,12 +3631,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-2
@@ -50,6 +50,7 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
|||||||
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
||||||
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
||||||
|
|
||||||
@@ -505,8 +506,13 @@ public class PlayerInventory extends Inventory
|
|||||||
actor.sendItemList();
|
actor.sendItemList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adena UI update.
|
||||||
|
if (item.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
// LCoin UI update.
|
// LCoin UI update.
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
else if (item.getId() == Inventory.LCOIN_ID)
|
||||||
{
|
{
|
||||||
actor.sendPacket(new ExBloodyCoinCount(actor));
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
}
|
}
|
||||||
@@ -598,9 +604,20 @@ public class PlayerInventory extends Inventory
|
|||||||
_ancientAdena = null;
|
_ancientAdena = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify to scripts
|
|
||||||
if (destroyedItem != null)
|
if (destroyedItem != null)
|
||||||
{
|
{
|
||||||
|
// Adena UI update.
|
||||||
|
if (destroyedItem.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
|
// LCoin UI update.
|
||||||
|
else if (destroyedItem.getId() == Inventory.LCOIN_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify to scripts
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-12
@@ -3557,12 +3557,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (destoyedItem.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3679,12 +3673,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-2
@@ -50,6 +50,7 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
|||||||
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
||||||
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
||||||
|
|
||||||
@@ -505,8 +506,13 @@ public class PlayerInventory extends Inventory
|
|||||||
actor.sendItemList();
|
actor.sendItemList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adena UI update.
|
||||||
|
if (item.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
// LCoin UI update.
|
// LCoin UI update.
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
else if (item.getId() == Inventory.LCOIN_ID)
|
||||||
{
|
{
|
||||||
actor.sendPacket(new ExBloodyCoinCount(actor));
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
}
|
}
|
||||||
@@ -598,9 +604,20 @@ public class PlayerInventory extends Inventory
|
|||||||
_ancientAdena = null;
|
_ancientAdena = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify to scripts
|
|
||||||
if (destroyedItem != null)
|
if (destroyedItem != null)
|
||||||
{
|
{
|
||||||
|
// Adena UI update.
|
||||||
|
if (destroyedItem.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
|
// LCoin UI update.
|
||||||
|
else if (destroyedItem.getId() == Inventory.LCOIN_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify to scripts
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-12
@@ -3572,12 +3572,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (destoyedItem.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3694,12 +3688,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-2
@@ -50,6 +50,7 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
|||||||
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
||||||
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
||||||
|
|
||||||
@@ -505,8 +506,13 @@ public class PlayerInventory extends Inventory
|
|||||||
actor.sendItemList();
|
actor.sendItemList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adena UI update.
|
||||||
|
if (item.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
// LCoin UI update.
|
// LCoin UI update.
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
else if (item.getId() == Inventory.LCOIN_ID)
|
||||||
{
|
{
|
||||||
actor.sendPacket(new ExBloodyCoinCount(actor));
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
}
|
}
|
||||||
@@ -598,9 +604,20 @@ public class PlayerInventory extends Inventory
|
|||||||
_ancientAdena = null;
|
_ancientAdena = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify to scripts
|
|
||||||
if (destroyedItem != null)
|
if (destroyedItem != null)
|
||||||
{
|
{
|
||||||
|
// Adena UI update.
|
||||||
|
if (destroyedItem.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
|
// LCoin UI update.
|
||||||
|
else if (destroyedItem.getId() == Inventory.LCOIN_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify to scripts
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3605,12 +3605,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (destoyedItem.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3727,12 +3721,6 @@ public class Player extends Playable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LCoin UI update.
|
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
|
||||||
{
|
|
||||||
sendPacket(new ExBloodyCoinCount(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+19
-2
@@ -50,6 +50,7 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
|||||||
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
import org.l2jmobius.gameserver.model.skill.SkillConditionScope;
|
||||||
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
import org.l2jmobius.gameserver.model.variables.ItemVariables;
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
import org.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExBloodyCoinCount;
|
||||||
|
|
||||||
@@ -505,8 +506,13 @@ public class PlayerInventory extends Inventory
|
|||||||
actor.sendItemList();
|
actor.sendItemList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adena UI update.
|
||||||
|
if (item.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
// LCoin UI update.
|
// LCoin UI update.
|
||||||
if (item.getId() == Inventory.LCOIN_ID)
|
else if (item.getId() == Inventory.LCOIN_ID)
|
||||||
{
|
{
|
||||||
actor.sendPacket(new ExBloodyCoinCount(actor));
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
}
|
}
|
||||||
@@ -598,9 +604,20 @@ public class PlayerInventory extends Inventory
|
|||||||
_ancientAdena = null;
|
_ancientAdena = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify to scripts
|
|
||||||
if (destroyedItem != null)
|
if (destroyedItem != null)
|
||||||
{
|
{
|
||||||
|
// Adena UI update.
|
||||||
|
if (destroyedItem.getId() == Inventory.ADENA_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||||
|
}
|
||||||
|
// LCoin UI update.
|
||||||
|
else if (destroyedItem.getId() == Inventory.LCOIN_ID)
|
||||||
|
{
|
||||||
|
actor.sendPacket(new ExBloodyCoinCount(actor));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notify to scripts
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemDestroy(actor, destroyedItem), destroyedItem.getTemplate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user