Resolved OSRS Client freezing on SpriteItem interaction.

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

  1. 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. You shouldn't be doing any form of interaction from within the message listener.
  3. Yeah, I just got lazy haha, I'm currently coding proper support

Share This Page