|
@@ -350,11 +350,13 @@ public class PcInventory extends Inventory
|
|
|
* @param count : int Quantity of adena to be removed
|
|
|
* @param actor : L2PcInstance Player requesting the item add
|
|
|
* @param reference : L2Object Object referencing current action like NPC selling item or previous item in transformation
|
|
|
+ * @return boolean : true if adena was reduced
|
|
|
*/
|
|
|
- public void reduceAdena(String process, long count, L2PcInstance actor, L2Object reference)
|
|
|
+ public boolean reduceAdena(String process, long count, L2PcInstance actor, L2Object reference)
|
|
|
{
|
|
|
if (count > 0)
|
|
|
- destroyItemByItemId(process, ADENA_ID, count, actor, reference);
|
|
|
+ return destroyItemByItemId(process, ADENA_ID, count, actor, reference) != null;
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -376,11 +378,13 @@ public class PcInventory extends Inventory
|
|
|
* @param count : int Quantity of adena to be removed
|
|
|
* @param actor : L2PcInstance Player requesting the item add
|
|
|
* @param reference : L2Object Object referencing current action like NPC selling item or previous item in transformation
|
|
|
+ * @return boolean : true if adena was reduced
|
|
|
*/
|
|
|
- public void reduceAncientAdena(String process, long count, L2PcInstance actor, L2Object reference)
|
|
|
+ public boolean reduceAncientAdena(String process, long count, L2PcInstance actor, L2Object reference)
|
|
|
{
|
|
|
if (count > 0)
|
|
|
- destroyItemByItemId(process, ANCIENT_ADENA_ID, count, actor, reference);
|
|
|
+ return destroyItemByItemId(process, ANCIENT_ADENA_ID, count, actor, reference) != null;
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
/**
|