HexMurder Posted November 12, 2018 Share Posted November 12, 2018 (edited) Trying to get the price per item of the item I am currently looking at in the GE. i.e. the bot looks up a law rune and the value is "367" by default, so i want to retrieve the "367". I tried using the getOfferPrice method but it always returns 0. my code is below. Thanks in advance. grandExchange563,"Law rune", grandExchange.getOfferPrice(), 1; also tried grandExchange563,"Law rune", getGrandExchange.getOfferPrice(), 1; Edited November 12, 2018 by HexMurder Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted November 12, 2018 Share Posted November 12, 2018 getOfferPrice() only returns the value of a pending / complete GE offer. It doesn't work if you just preview an item, ie. select an item but don't confirm the offer. You can use widgets to read the price that is loaded on the interface when you lookup an item. 1 Quote Link to comment Share on other sites More sharing options...
HexMurder Posted November 12, 2018 Author Share Posted November 12, 2018 11 minutes ago, LoudPacks said: getOfferPrice() only returns the value of a pending / complete GE offer. It doesn't work if you just preview an item, ie. select an item but don't confirm the offer. You can use widgets to read the price that is loaded on the interface when you lookup an item. I see.. Thanks. Is there a way to look up items in the api already? i'm currently using the grandExchange.buyItem method, which always results in the item being bought, and I just want to search it, and then query the price. Quote Link to comment Share on other sites More sharing options...
Medusa Posted November 12, 2018 Share Posted November 12, 2018 (edited) 1 hour ago, HexMurder said: I see.. Thanks. Is there a way to look up items in the api already? i'm currently using the grandExchange.buyItem method, which always results in the item being bought, and I just want to search it, and then query the price. There's a class snippet on here which could help you get the price of different items. https://osbot.org/forum/topic/68912-grand-exchange-price-api/ Not sure if it's outdated, but you should 100% try it out. Edited November 12, 2018 by Medusaa Quote Link to comment Share on other sites More sharing options...