SRL Archive - SRL Suggestions

GetGEPrice


Footy

2012-11-28 15:33:42

Everyone says this used to exist, but I can't find it anywhere. What it would do is grab the GE price of an item based on its itemID from a website. Let me know if this exists, if it doesn't, I might make it.

BraK

2012-11-28 15:46:44

Srl/Misc/Online.simba

You probably need to include it.

CRASH_OVERRIDE

2014-07-11 04:38:32

With this function(getGEPrice),

function getGEPrice(itemString: string): integer;
var
wikiaPage, priceString: string;
begin
wikiaPage := getPage('http://runescape.wikia.com/wiki/Exchange:' + itemString);
priceString := between('GEPrice">', '</span>', wikiaPage);
result := strToIntDef(priceString, -1);
end;

This needs a fix, how would it react if the string had a comma? for example the price of an item such as a "Vial" http://runescape.wikia.com/wiki/Exchange:Vial is only "1" at the moment right? If you looked at say the price of a "Rune platebody" http://runescape.wikia.com/wiki/Exchange:Rune_platebody it is "38,107" at the moment, but the function will read this as nothing because of the "," in the String area. Anyone have an idea to get around this?

PS found function in one of "Mayor"'s Scripts.

-CRASH.