boscolamhk
2014-12-29 06:19:22
What is the script for getting the GE price of certain item? The following script is extracted from iOak v1.1 from @KeepBotting;
Is there a tutorial telling me what is happening in the above script? (I dunno what it is doing….)
And another silly question…how to tag an user here?
[ATTACH=CONFIG]24691[/ATTACH]
function getPrice(theItem:string):integer;
var
thePage, thePrice:string;
t:TTimeMarker;
begin
t.start();
thePage := getPage('http://runescape.wikia.com/wiki/Exchange:' + theItem);
thePrice := between('GEPrice">', '</span>', thePage);
thePrice := replace(thePrice, ',', '', [rfReplaceAll]);
result := strToIntDef(thePrice, 0);
t.pause();
theItem := replace(theItem, '_', ' ', [rfReplaceAll]);
writeDebug('Grabbed the price of ' + theItem + ' (' + thePrice + ') in ' + toStr(t.getTime()) + ' ms.');
end;Is there a tutorial telling me what is happening in the above script? (I dunno what it is doing….)
And another silly question…how to tag an user here?
[ATTACH=CONFIG]24691[/ATTACH]