SRL Archive - Bugs

R_GetUpText


Bad Boy JH

2010-06-14 00:00:03

It doesn't work, and cause my script to stop working, as if it was in an infinite loop or something.

bbri06

2010-06-14 00:07:38

It's working fine for me. Also, I don't see how it could cause an infinite loop if it doesn't loop anything. Or maybe I misunderstood what you meant by that.

Edit: Could you post the part of your script using it?

Bad Boy JH

2010-06-14 01:08:30


Function CookOnFire(ID: Integer):boolean;
var
Marker: Integer;
ThePoint: TPoint;
Item: TInvItem;
begin
if R_ItemIDExists(Item, ID) then
begin
ThePoint := TileToMS(Tile(3075, 3429), 40);
R_ClickItemID(ID, True, '');
MMouse(ThePoint.x, ThePoint.y, 5, 5);
GetMousePos(ThePoint.x, ThePoint.y);
Wait(1500);
if R_IsUpText('ire') then
begin
Writeln('UpText Found, Left Clicking Mouse');
Mouse(ThePoint.x, Thepoint.y, 0, 0, True)
end else
begin
Writeln('UpText Not Fount, Right Clicking Mouse');
Mouse(ThePoint.x, Thepoint.y, 0, 0, False);
R_ChooseOption('ire');
end;
MarkTime(Marker);
while R_ItemIDExists(Item, ID) do
begin
Wait(500);
if TimeFromMark(Marker) > 35000 then
Exit;
end;
end;
Result := True;
end;

mormonman

2010-06-14 01:15:19

Test what the Uptext(its not really the uptext, its just the first menu option) is. R_GetUptext.

Bad Boy JH

2010-06-14 01:36:19

Sorry, I should have elaborated, it didn't say whether it was true or false, simba just sat there doing sod all…

mormonman

2010-06-14 01:43:21

put the mouse over the fire somehow, and then all r_getuptext and see what it prints out with a writeln.

Bad Boy JH

2010-06-14 05:37:28

I DID, It just got stuck in something simmilar to an infinite loop! RAWG!

Naike

2010-06-14 05:39:49

Put some nice writeln's into r_IsUpText then and check where it breaks..

masterBB

2010-06-15 19:08:02

I guess it would be an error in r_getMenuText… There is a repeat loop… But shouldn't it be a "for(count := GetMenuCount downto 0) do" loop anyway?