Why would you want to check 07 item prices while you're on EoC?
Why would you want to check 07 item prices while you're on EoC?
but can u make it i would love you forever
program Pricechecker;
{$DEFINE SMART}
{$I SRL-OSR/SRL.Simba}
var
LastT : string;
function GetPrice(Item: String) : Integer; // Made by Shatterhand, you're awesome!
var
str : String;
begin
str := Between('"average":"','"',GetPage('http://forums.zybez.net/runescape-2007-prices/api/' + Item));
if (str = '') then exit;
Result := Round(StrToFloat(str));
end;
procedure Start;
var
I: integer;
T : string;
Expl : TStringArray;
begin
repeat
T := lowercase(GetChatBoxText(8, 128));
Expl := explode(' ', T)
for I:=0 to high(Expl) do
begin
if (Expl[I] = '!pc') then
begin
T := replace(T, '!pc ', '');
T := replace(T, ' ', '+');
if not (T = LastT) then
begin
LastT := T;
writeLn(T)
TypeSend('/Pricechecked at ' + IntTostr(GetPrice(T)) + ' GP')
end;
end;
end;
until false;
end;
begin
SetUpsrl;
Start;
end.
its not eoc i just need it to work on eoc :/
I don't know how you could do this but, maybe to make the prices more accurate use the Inter quartile range (middle 50%). So it grabs all the prices then ignores the highest/lowest 25%.
Just an idea.
Works great, thank you!
Removing outliers you say?
Standard deviations? hello? statistics 101 here
sweet
Is there a way to altar this to work with http://www.grandexchangecentral.com/ ...?
Because GEC is updated every few hours and is very accurate..
My Outdated ScriptsEdgeville Log Cutter | Edgeville AIO Jewelry | AIO Pickpocketer | Urn Activator | Slayer Tower | Slaying KuradalMy Working Scripts: Tutorials:Function Pointers and Why You Should Care! | Forms and Saving Settings | The Magic Behind Programming Tutorial | Recursive Recursion
ok so i need this to somehow say the highest price lowest price avrage and alch value
cant you just read the average buy/ sell price that the page already gives you?
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
Hey I'm trying to use you script for pcing in my cc but it won't work as it just says Pricechecked at 0 Gp I did change a bit of the script u had because it won't work on my simba ( I'm very new at this ) would love if you could take a look and see the issue.
program Pricechecker;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
var
LastT : string;
function GetPrice(Item: String) : Integer; // Made by Shatterhand, you're awesome!
var
str : String;
begin
str := Between('"average":"','"',GetPage('http://forums.zybez.net/runescape-2007-prices/api/' + Item));
if (str = '') then exit;
Result := Round(StrToFloat(str));
end;
procedure Start;
var
I: integer;
T : string;
Expl : TStringArray;
begin
repeat
T := lowercase(GetChatBoxText(8, 128));
Expl := explode(' ', T)
for I:=0 to high(Expl) do
begin
if (Expl[I] = '!pc') then
begin
T := replace(T, '!pc ', '');
T := replace(T, ' ', '+');
if not (T = LastT) then
begin
LastT := T;
writeLn(T)
TypeSend('/Pricechecked at ' + IntTostr(GetPrice(T)) + ' GP')
end;
end;
end;
until false;
end;
begin
SetUpsrl;
ActivateClient;
Start;
end.
can you please help me?
1.- great job with the price checker
2.- i want to ask you a favour... would you change the script so the bot says [<items name>] pricechecked at: instead of just pricechecked at
3.- Thank you so much
Please i really need this script
Oo really nice snippet :P
But what you do for some items, like 4 dose potions? http://forums.zybez.net/runescape-20...nergy-potion-4
Api not found: http://forums.zybez.net/runescape-20...nergy_potion_4
ROCK IS NOT A DEVILS WORK, ITS MAGICAL AND RAD!
Use this instead:
http://forums.zybez.net/runescape-20...rgy_potion_(4)
The dosage, in this case '4', should be in parenthesis, exactly as the in-game item is.
Current projects:
[ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]
"I won't fall in your gravity. Open your eyes,
you're the Earth and I'm the sky..."
Hmm doesn't work anymore, something has changed in API?
ROCK IS NOT A DEVILS WORK, ITS MAGICAL AND RAD!
There are currently 1 users browsing this thread. (0 members and 1 guests)