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

Resolved A few bugs...

Discussion in 'Client & Site Support' started by Savior, Nov 27, 2014.

  1. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    1) When an item is added, the InventoryListener calls the item added method twice, sometimes 3 times (I am pretty sure I don't do anything wrong)

    2) Grandexchange price checker does not work well, for example Wine of Zamorak, which is like 3k gp, is 5k gp when I grab the price over the API

    3)

    Traversal.getDefaultWeb().getPathBuilder().buildTo(TEMPLE).step(true);

    Throws a NullPointerException at some points, even if there is no blockage on the way to the spot.
     
    #1 Savior, Nov 27, 2014
    Last edited: Nov 27, 2014
  2. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    3. The web isn't perfect so even though there may not have been any obstacles, some positions won't be able to generate a path.
    What you should be doing is storing the path before performing step on it so that you can null check the path. If the path is null you can then use the same logic with regionpath or bresenhampath to build a path and traverse it.

    @Cloud
     
  3. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    okay good idea, I will try it :)

    Edit:
    @Aidden I am now doing this, but now it takes the character ages to move each step.
     
    #3 Savior, Nov 27, 2014
    Last edited: Nov 27, 2014
  4. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Then there is something wrong with your script bot that is preventing it from stepping quickly.
    1. I'll investigate although I think it is unlikely. The events will be called again however if you logout and log back in, however item removed events will also have been called when you logged out.
    2. We rely on a 3rd party service for getting item prices, so unfortunately that's out of our control for the near future.
     
  5. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Iirc defeat3d had the same issue with the inventory listener a week or two ago
     
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Yeah I realized that although it's rare that it should happen, it's still possible.
     
  7. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Okay I will askhim then :)
    And recheck my code for walking
     
  8. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    616
    Likes Received:
    246
    @Cloud
    I also have the InventoryListener problem, it's detecting 3 logs added when I chop down a normal tree which only gives 1.
     
  9. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    It'll be fixed in an update later tonight.
     
  10. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    616
    Likes Received:
    246
    Sorry to nag you again, but the ChatboxListener is also experiencing the same problem. When I receive a message, the bot seems to receive the message 2-3 times.
     
  11. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Its all caused by the same issue.
     
  12. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    The update that fixes this has been released, can you please verify it has been resolved.
     
  13. Baddest Man on Earth

    Joined:
    Nov 26, 2014
    Messages:
    616
    Likes Received:
    246
    Let me make an account and test since all my accounts are getting banned :p

    Edit: Seems to be working fine. Good work.
     
    #13 Baddest Man on Earth, Nov 29, 2014
    Last edited: Nov 30, 2014

Share This Page

Loading...