|
so it read price from the tool instead of the cache
i was looking though the files few days ago i saw it was reading from the tool not the cache
full working shop
pm me your price thanks
Last edited by Castiel; 01-24-2019 at 08:21 PM.
I can do this
Here
Code:use this in world class public static HashMap<Integer, Integer> PRICES; Put this in Init PRICES = SerializableFilesManager.loadGEPrices(); public static int getBuyPrice(int itemId) { ItemDefinitions defs = ItemDefinitions.getItemDefinitions(itemId); if (defs.isNoted()) { itemId = defs.getCertId(); } else if (defs.isLended()) { itemId = defs.getLendId(); } Integer price = PRICES.get(itemId); return price != null && price != 0 ? price : defs.getValue(itemId); } This is what you needed
Ah maybe I interpreted wrong, I thought he wanted to change the shop price on interface which is controlled via a script
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |