SRL Archive - SRL Archives

Grand Exchange.scar bugg!


Timer

2010-04-06 23:28:26

{*******************************************************************************
function GESetPrice(value: string): boolean;
By: Rasta Magician
Description: Sets the price of an item.
'0', 'min' - Minimum Value
'1', 'med' - Market Value
'2', 'max' - Max value
Other - Exact value
*******************************************************************************}
function GESetPrice(Value: Variant): boolean;
begin

if not InGE then exit;
if not GESellMenu then
if not GEBuyMenu then
exit;

if value = 'min' then value := 0;
if value = 'med' then value := 1;
if value = 'max' then value := 2;

wait(100+Random(50));

case value of
1: MouseBox(269, 208, 304, 232, 1); // min price
2: begin end; // market price
3: MouseBox(376, 210, 408, 233, 1); // max price
else begin
MouseBox(429, 209, 462, 234, 1);
wait(100+Random(100));
TypeSend(IntToStr(value));
wait(200+Random(100));
if IsChatBoxTextAnyLine('price range', clblack) then
begin
writeln('wrong price! Out of Price Range!');
GEMenuExit;
end;
end;
end;

Result := true;
end;

change it to this pl0x.
{*******************************************************************************
function GESetPrice(value: string): boolean;
By: Rasta Magician
Description: Sets the price of an item.
'0', 'min' - Minimum Value
'1', 'med' - Market Value
'2', 'max' - Max value
Other - Exact value
*******************************************************************************}
function GESetPrice(Value: Variant): boolean;
begin

if not InGE then exit;
if not GESellMenu then
if not GEBuyMenu then
exit;

if value = 'min' then value := 0;
if value = 'med' then value := 1;
if value = 'max' then value := 2;

wait(100+Random(50));

case value of
0: MouseBox(269, 208, 304, 232, 1); // min price
1: begin end;
2: MouseBox(376, 210, 408, 233, 1); // max price
else begin
MouseBox(429, 209, 462, 234, 1);
wait(100+Random(100));
TypeSend(IntToStr(value));
wait(200+Random(100));
if IsChatBoxTextAnyLine('price range', clblack) then
begin
writeln('wrong price! Out of Price Range!');
GEMenuExit;
end;
end;
end;

Result := true;
end;

Infantry001

2010-04-07 00:05:39

You still need to keep this in though:

1: begin end;

Or else SCAR will type in '1'.

Timer

2010-04-07 00:19:44

Woops. :(

Gu3st...

2010-04-07 08:44:20

A lot of GE.scar's (or any one the .scar files in misc/..) functions are outdated, check my topic "Zyt3x's fixes" for a working version