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

Bug Interacting with GroundItem

Discussion in 'Developer Support' started by Aaron Priest, May 31, 2017.

  1. Aaron Priest

    Joined:
    Jan 31, 2017
    Messages:
    121
    Likes Received:
    30
    A lot of times my bot tries to pick up a small tile from the ground using
    Code (Text):
    1. groundItem.interact("Take", groundItem.getDefinition().getName());
    and the bot does not manage to do anything within 60 calls. I've observed, that it sometimes hovers the item for a split second.

    To get a better understanding of the situation:
    Imgur: The most awesome images on the Internet

    As you can see, the tile located just south of the player is very small. I've found
    Code (Text):
    1. if(groundItem.hover()){ groundItem.interact(...) }
    to be improving, but I've been told that it is redundant because
    Code (Text):
    1. .interact()
    already handles movement.

    Any help is greatly appreciated :)
     
  2. Guru

    Joined:
    Dec 31, 2015
    Messages:
    602
    Likes Received:
    175
    Firstly just pass in "Take" and don't bother passing the name of the object in.

    Secondly, Marks of grace are a good example here, you want to make sure your camera is very high pitch in order to interact better, additionally, by increasing camera height it means misclicks will only result on you moving to the same tile instead of wandering half the map away :p
     
  3. Aaron Priest

    Joined:
    Jan 31, 2017
    Messages:
    121
    Likes Received:
    30
    Firstly, thanks, wasn't sure about that :)

    Secondly, the pitch in this situation is always 1.0. Missclicks wound't be a big deal, but the problem is there aren't any clicks at all :rolleyes:
     

Share This Page

Loading...