liverare Posted February 18, 2014 Author 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.
liverare Posted February 18, 2014 Author 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...).
pk3r4lif3 Posted March 6, 2014 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!
Soldtodie Posted March 6, 2014 Posted March 6, 2014 Nice, it's really handy. I honor you that you comment your code.
liverare Posted March 16, 2014 Author 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.
GoldenGates Posted March 16, 2014 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.
liverare Posted March 16, 2014 Author 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?
GoldenGates Posted March 16, 2014 Posted March 16, 2014 Stacking interfaces, wut? Duel Arena/Staking, not stacking. :P
liverare Posted March 16, 2014 Author 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