SRL Archive - OSR Help

Price from grand exchange?


Era Xz

2012-04-18 15:57:40

Hey everybody! Im Era Xz, joined this forum last week and started learning/scripting :). It was really awesome finding such a place like this full of tutorials and helpfull people. Hope I can contribute soon enough ;)

Making my first script right now and I was wondering how you are able to get a price of the grand exchange website?

I Saw it in a script somwhere but can't manage to find it again :D

Thx

Markus

2012-04-18 16:05:58

Kicked to scripting help.

zluo

2012-04-18 16:51:15

this script gets the grand exchange price for iron ore, just go down to the procedure GetPriceGE; and change it to your needs.

http://villavu.com/forum/showthread.php?t=72857

Sex

2012-04-18 17:10:59

Include SRL/Misc/Online.simba and use its various subroutines.

Era Xz

2012-04-19 03:04:06

Ok thanks, il look into this.

Era Xz

2012-04-19 16:39:33

[Error] C:\Simba\Includes\SRL/srl/Misc/Online.simba(113:16): Unknown identifier 'CashStrToInt' at line 112
Compiling failed.


{ We didn't find any items, OH NOES }
if (rsr.rc = -1) then
begin
WriteLn('No item found.');
if (rsr.e <> '') then
WriteLn('GE Database encountered: ' + rsr.e); <--- line 112
Exit;
end;


Any idea how I can work arround this?

ps : how do u put simba tags arround code? :)

Gala

2012-04-19 17:05:53

You have to go to the advanced posting mode.