Workaround for admin shop buylists without adena.
This commit is contained in:
@@ -71,7 +71,7 @@ public class ExBuySellList extends AbstractItemPacket
|
|||||||
_type = BUY_SELL_LIST_BUY;
|
_type = BUY_SELL_LIST_BUY;
|
||||||
_listId = list.getListId();
|
_listId = list.getListId();
|
||||||
_list = list.getProducts();
|
_list = list.getProducts();
|
||||||
_money = player.getAdena();
|
_money = player.isGM() && (player.getAdena() == 0) && (list.getNpcsAllowed() == null) ? 1000000000 : player.getAdena();
|
||||||
_inventorySlots = player.getInventory().getNonQuestSize();
|
_inventorySlots = player.getInventory().getNonQuestSize();
|
||||||
_castleTaxRate = castleTaxRate;
|
_castleTaxRate = castleTaxRate;
|
||||||
}
|
}
|
||||||
|
@@ -71,7 +71,7 @@ public class ExBuySellList extends AbstractItemPacket
|
|||||||
_type = BUY_SELL_LIST_BUY;
|
_type = BUY_SELL_LIST_BUY;
|
||||||
_listId = list.getListId();
|
_listId = list.getListId();
|
||||||
_list = list.getProducts();
|
_list = list.getProducts();
|
||||||
_money = player.getAdena();
|
_money = player.isGM() && (player.getAdena() == 0) && (list.getNpcsAllowed() == null) ? 1000000000 : player.getAdena();
|
||||||
_inventorySlots = player.getInventory().getNonQuestSize();
|
_inventorySlots = player.getInventory().getNonQuestSize();
|
||||||
_castleTaxRate = castleTaxRate;
|
_castleTaxRate = castleTaxRate;
|
||||||
}
|
}
|
||||||
|
@@ -78,7 +78,7 @@ public class ExBuySellList extends AbstractItemPacket
|
|||||||
_type = BUY_SELL_LIST_BUY;
|
_type = BUY_SELL_LIST_BUY;
|
||||||
_listId = list.getListId();
|
_listId = list.getListId();
|
||||||
_list = list.getProducts();
|
_list = list.getProducts();
|
||||||
_money = player.getAdena();
|
_money = player.isGM() && (player.getAdena() == 0) && (list.getNpcsAllowed() == null) ? 1000000000 : player.getAdena();
|
||||||
_inventorySlots = player.getInventory().getNonQuestSize();
|
_inventorySlots = player.getInventory().getNonQuestSize();
|
||||||
_castleTaxRate = castleTaxRate;
|
_castleTaxRate = castleTaxRate;
|
||||||
}
|
}
|
||||||
|
@@ -78,7 +78,7 @@ public class ExBuySellList extends AbstractItemPacket
|
|||||||
_type = BUY_SELL_LIST_BUY;
|
_type = BUY_SELL_LIST_BUY;
|
||||||
_listId = list.getListId();
|
_listId = list.getListId();
|
||||||
_list = list.getProducts();
|
_list = list.getProducts();
|
||||||
_money = player.getAdena();
|
_money = player.isGM() && (player.getAdena() == 0) && (list.getNpcsAllowed() == null) ? 1000000000 : player.getAdena();
|
||||||
_inventorySlots = player.getInventory().getNonQuestSize();
|
_inventorySlots = player.getInventory().getNonQuestSize();
|
||||||
_castleTaxRate = castleTaxRate;
|
_castleTaxRate = castleTaxRate;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user