1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved OSRS Client freezing on SpriteItem interaction.

Discussion in 'Client & Site Support' started by SlashnHax, Feb 14, 2015.

  1. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    Code (Text):
    1. SpriteItem arrows = Inventory.getItems(Fletching.Arrow.getNames()).first();
    2. if(arrows != null)
    3.     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 bot of mine, maybe it's because the above code was inside a MessageListener?
     
    #1 SlashnHax, Feb 14, 2015
    Last edited: Feb 14, 2015
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    You shouldn't be doing any form of interaction from within the message listener.
     
  3. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    Yeah, I just got lazy haha, I'm currently coding proper support
     

Share This Page

Loading...