Jump to content

[BUG] store#buy(id, amount)


RandomInc

Recommended Posts

  • Mirror client version 2.4.144
  • Console output / terminal output Nothing
  • Crash report if a crash occurred No crash, just bot like behaviour 
  • Script that you ran my own
  • Hooks that failed none
  • JVM/Browser bit version (32 / 64)

Code used:

            for (Item item : api.store.getItems()) {
                for (Rune rune : runesToBuy) {

                    if (item.getId() == rune.getRuneId()) {
					
					int amount = api.store.getAmount(item.getId());

                        if (amount > 0) {

                            api.store.buy(item.getName(), amount);

                        }
                    }
                }
            }

Behaviour:

Mouse will move to empty spot, or won't move at all. It will buy a few runes from the first type. than it stops working..

 

Location: 

Shop from Ali Morrisane's in Al kharid

 

EDIT: 

GIF: https://i.imgur.com/gCccjeo.gif

 

EDIT 2:

I'm currently using widgets, and it works great too. But I would still very much like the store api to get fixed. (Or am I doing something wrong here?)

 

 

Edited by RandomInc
  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...