Welcome!

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

Sign up now!

Resolved OSRS Client freezing on SpriteItem interaction.

Joined
Dec 10, 2014
Messages
3,255
Code:
SpriteItem arrows = Inventory.getItems(Fletching.Arrow.getNames()).first();
if(arrows != null)
    arrows.interact("Wield");

This freezes my client and I have to kill the VM, I am checking whether the inventory contains any valid arrows or not before this code and it's working fine.

Same result when using both .interact and .click

Gamepack (f0041439)

Edit: Interaction is working fine for another script of mine, maybe it's because the above code was inside a MessageListener?
 
Last edited:
Engineer
Joined
Jul 28, 2013
Messages
2,776
Code:
SpriteItem arrows = Inventory.getItems(Fletching.Arrow.getNames()).first();
if(arrows != null)
    arrows.interact("Wield");

This freezes my client and I have to kill the VM, I am checking whether the inventory contains any valid arrows or not before this code and it's working fine.

Same result when using both .interact and .click

Gamepack (f0041439)

Edit: Interaction is working fine for another script of mine, maybe it's because the above code was inside a MessageListener?
You shouldn't be doing any form of interaction from within the message listener.
 
Top