I need one.
Post yours/a link to one that works please.
The simpler/cleaner the better!
I need one.
Post yours/a link to one that works please.
The simpler/cleaner the better!
Does the one in SRL not work?
Simba Code:function GetPrice(id : integer) : integer;
var
s : string;
i : integer;
begin
s := between('<td>', '</td>', GetPage('http://services.runescape.com/m=itemdb_rs/viewitem.ws?obj=' + IntToStr(id)));
if s = '' then exit;
result := Round(StrToFloat(copy(s, 1, length(s) - integer(ord(s[length(s)]) > 97))) * pow(10, (Integer(s[length(s)] = 'k') * 3) or (Integer(s[length(s)] = 'm') * 6) or (Integer(s[length(s)] = 'b') * 9) or 0));
end;
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
There are currently 1 users browsing this thread. (0 members and 1 guests)