Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Shop.close() not working

Niche bots at your disposal
Joined
Dec 23, 2015
Messages
1,104
@Party
Game mode: RS3
Location: Burthorpe Jack Oval
What: Does not close shop window
Code Used:
Code:
if (Shop.isOpen()){
            Shop.close();
            return;}
 
Java Warlord
Joined
Nov 17, 2014
Messages
4,906
Give some more information, what did Shop.close() return, what did the client do when calling it, did it like hover the close button or did it just do nothing?

And have you checked if your code block even executes or or Shop.isOpen() returns false in the first place?
 
Niche bots at your disposal
Joined
Dec 23, 2015
Messages
1,104
Code:
 if (Shop.isOpen()){
            System.out.println("Shop is open");
            Shop.close();
            if (!Shop.isOpen())
                System.out.println("Shop is closed");
            else
                System.out.println("Shop is still open");
            return;}

I tries this and debug gives: "shop is still open"

It does not do anything in client and just continues to a next branch/leaf (which for now is not problematic)
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
@tyb51 is this still an issue? If so could you please provide information about the "Close" button so I can get it implemented (and also a screenshot of where the shop is because I'm trash at RS3)
 
@tyb51 please confirm this is no longer an issue.
 
Niche bots at your disposal
Joined
Dec 23, 2015
Messages
1,104
Sorry, I forgot all about this. Gonna check it now
 
Nope still not working:
I'll add a picture
mm9cYMq.png


Not really game breaking for it not to close, I currently just use minimap to traverse to another area

For testing purpose i used this code:

JavaScript:
        if (Inventory.contains(item) && Shop.isOpen())
            Shop.close();
            //Shop.sell(item, 27);
The Shop.sell is what it normalo does ( and does well, the Shop.close i put in for testing purpose and it doesn't do anything)
 
Top