liverare Posted February 18, 2014 Author Share Posted February 18, 2014 Are you ever going to get around to implementing selling support? I don't know why my selling method isn't working. It will sell my whole stack of Pure Essence before stopping... I don't even know... Wow, I completely forgot about this! I'm so sorry about that! OK I'll get to work on it right away! It shouldn't be too hard to implement. Link to comment Share on other sites More sharing options...
liverare Posted February 18, 2014 Author Share Posted February 18, 2014 I've edited the code to include the ability to sell items. But I don't like it. The inventory class doesn't operate in the same manner as my ShopItem. As far as flawlessness is concerned, I don't think it's the greatest, but it should suffice. And I also quickly included two additional methods: getAmount(int...) and getAmount(String...). Link to comment Share on other sites More sharing options...
Reid Posted March 1, 2014 Share Posted March 1, 2014 thanks for this Link to comment Share on other sites More sharing options...
pk3r4lif3 Posted March 6, 2014 Share Posted March 6, 2014 Thanks for this it works perfect! 2 lines in the Shop class had errors when they were compiling: Set<ShopItem> cache = new HashSet<>(); Changed them to: Set<ShopItem> cache = new HashSet<ShopItem>(); and it worked just fine after that :p, thanks again! Link to comment Share on other sites More sharing options...
Nicholas Posted March 6, 2014 Share Posted March 6, 2014 looks nice Link to comment Share on other sites More sharing options...
Soldtodie Posted March 6, 2014 Share Posted March 6, 2014 Nice, it's really handy. I honor you that you comment your code. Link to comment Share on other sites More sharing options...
liverare Posted March 16, 2014 Author Share Posted March 16, 2014 BBBAAACCCKKK May get back around to updating this API. And also, if you've used this API for your scripts - especially premium scripts - credits + phree script pl0x. Link to comment Share on other sites More sharing options...
GoldenGates Posted March 16, 2014 Share Posted March 16, 2014 I used this as a basis for the Staking Interface, thanks, saved me a ton of time. I'll be sure to give creds. Link to comment Share on other sites More sharing options...
liverare Posted March 16, 2014 Author Share Posted March 16, 2014 I used this as a basis for the Staking Interface, thanks, saved me a ton of time. I'll be sure to give creds. Stacking interfaces, wut? Link to comment Share on other sites More sharing options...
GoldenGates Posted March 16, 2014 Share Posted March 16, 2014 Stacking interfaces, wut? Duel Arena/Staking, not stacking. :P Link to comment Share on other sites More sharing options...
liverare Posted March 16, 2014 Author Share Posted March 16, 2014 (edited) Duel Arena/Staking, not stacking. Cool. I was thinking about making a generalised wrapper for any/all interfaces containing clickable item widgets. (bank, inventory, shops, duel arena [ty for reminder], etc.) It would be nice to keep my structural design. Edited March 16, 2014 by liverare Link to comment Share on other sites More sharing options...
liverare Posted June 22, 2014 Author Share Posted June 22, 2014 I've added V2 support. (Haven't tested.) Link to comment Share on other sites More sharing options...