Bug Client not chopping tree after update

Discussion in 'Client & Site Support' started by madting, Oct 16, 2016.

  1. madting

    Joined:
    Apr 18, 2016
    Messages:
    6
    Likes Received:
    0
    seems like interact isnt working no more was working fine before this update

    GameObject tree = GameObjects.newQuery().names("Yew").within(yewCord).results().nearest()

    if (tree.interact("Chop down")) {
    Execution.delayUntil(() -> Players.getLocal().getAnimationId() != -1, 5000);

    }
     
  2. auxi

    Joined:
    May 24, 2016
    Messages:
    484
    Likes Received:
    156
    Isn't it supposed to be 'Yew tree'?

    Also check if the object is null.
     
  3. madting

    Joined:
    Apr 18, 2016
    Messages:
    6
    Likes Received:
    0
    Osrs and it was working fine b4 update
     
  4. auxi

    Joined:
    May 24, 2016
    Messages:
    484
    Likes Received:
    156
    Try removing .within(yewCord) and see if anything changes?
     
  5. madting

    Joined:
    Apr 18, 2016
    Messages:
    6
    Likes Received:
    0
    Found a fix thx
     
  6. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,951
    Likes Received:
    861
    What was the fix?
     
    madting likes this.
  7. madting

    Joined:
    Apr 18, 2016
    Messages:
    6
    Likes Received:
    0
    Well actually not really a fix but i tried
    GameObjects.getLoaded("Yew").nearest()

    and it worked. So that means i gatta find a new way to do this in the yewcord any sugges?
     
  8. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    2,757
    Likes Received:
    1,216
    Create an area and search for trees within that area. Though I'm not sure why it would need to be on a specific coordinate?
     
  9. madting

    Joined:
    Apr 18, 2016
    Messages:
    6
    Likes Received:
    0
    Lol because i dont know any better just starting writing scripts bots first day
    --- Double Post Merged, Oct 16, 2016, Original Post Date: Oct 16, 2016 ---
    would love your help
     
  10. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    2,757
    Likes Received:
    1,216
    Join the development channel on Slack. Slack
     

Share This Page

Loading...