SRL Archive - Reflection Help

Reflection not working...?


Runescapian321

2009-08-11 21:16:02

EDIT: NEVERMIND, stupid mistake on my part :p

There was a system update a couple hours ago, but it seems the hooks didn't get outdated, so I proceeded to make a script. But now R_ChooseOption and IsValidInterface seem to not work. R_ChooseOption clicks the option then returns false, IsValidInterface doesn't find the interface, and that's all I've found thus far. I've tried restarting my computer and redownloaded reflection, and that didn't fix it. Other things like FindNPC, WalkToTile, etc. work.

Test:

program New;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
{.include srl\srl/reflection/reflection.scar}

Procedure DeclarePlayers;
begin
HowManyPlayers:= 1; // How many players are there arrays for?
CurrentPlayer:= 0; // Which player should we start with?
NumberOfPlayers(HowManyPlayers); // Do Not Change.

Players[0].Name := ''; // Username.
Players[0].Pass := ''; // Password.
Players[0].Nick := ''; //2-4 letters of your Username (that are not capital letters or spaces).
Players[0].Active := True;

end;

function Test : boolean;
begin
mouse(100+random(400),100+random(400), 50, 50, false);
R_WaitOption('anc', 5000);
result := R_ChooseOption('anc');
end;

begin
Smart_Members := false;
Smart_Signed := true;
Smart_Server := 30;
SetupSRL;
SetupReflection;
DeclarePlayers;
LoginPlayer;
if Test then
writeln('Success!')
else
writeln('Failed.');
end.

My result…

Successfully compiled (11472 ms)
SRL Compiled in 219 msec
SMART Initialized.
Loaded: Server 30, Members: False, Signed: True, Super Detail: False.
Creating the NickTPA.
Failed.
Successfully executed

masterBB

2009-08-11 22:08:37

R_ChooseOption didn't worked for me either, but I don't know if it's me or the hooks…

kyleisntwild

2009-08-11 22:22:45

R_ChooseOption is working fine for me. My thieving script uses it and its running perfectly right now.

Runescapian321

2009-08-11 22:24:24

From: kyleisntwild
R_ChooseOption is working fine for me. My thieving script uses it and its running perfectly right now.


Yeah it's weird… My MultiMiner for example works fine, and it uses R_ChooseOption in places like banking, handling objects, etc… I don't get it.

mormonman

2009-08-11 22:44:23

From: Runescapian aka Tad
Yeah it's weird… My MultiMiner for example works fine, and it uses R_ChooseOption in places like banking, handling objects, etc… I don't get it.


for some reason it doesn't work with Minotaurs inside the SoS… it is super annoying.

masterBB

2009-08-12 16:26:50

For some reason it doesn't works with using trout on fire… I right-clicks on the fire but can't find the option "use trout -> fire"

Runescapian321

2009-08-12 16:37:49

Well it's something else then (try changing it to look for only lowercase text?), because the reason I thought it was broken is because I didn't know R_WaitOption clicked the option as well :p