SRL Archive - OSR Help

Invalid Opcode Parameter


RISK

2011-11-19 22:57:35

"Error: Invalid Opcode Parameter at line 162"
Line 162 is:
MarkTime(T);

The error happens every so often. It does not do this every time MarkTime(T); is used, which might indicate something.

Thanks in advance for any help on this error, I really appreciate it!

KingKong

2011-11-19 23:42:43

Posting a bit more of the script might help, since that alone does not tell anything.

mormonman

2011-11-19 23:44:13

Thats odd.
An alternative is:

Timeout := GetSystemTime + WaitLength;
while (GetSystemTime < Timeout) do
begin
stuff;
end;

RISK

2011-11-19 23:45:34

This is the only segment of my script that uses it. If more is needed, just say so.

if (DidRedClick) then
begin
MarkTime(T);

repeat
Wait(RandomRange(531, 780));
FindNormalRandoms;
Antiban;
newExp := GetXPBarTotal;
FromMark := TimeFromMark(T);
until((FromMark >= RandomRange(10522, 13677)) or (InvFull) or
(newExp > expAmount) or (not(LoggedIn)));

Result := True;
end;

From: KingKong
Posting a bit more of the script might help, since that alone does not tell anything.


@ Mormonman :
Thanks, I'll try it. I appreciate the alternative.