SRL Archive - SRL Suggestions

@Benland; Extend SMART functionality.


mastaraymond

2010-02-06 11:52:00

It would be nice if SMART had some kind of function that would return if SMART is open, and if so, what world it loaded..

^ Would help SRL to not restart Smart every time you call setupsrl;

Wanted

2010-02-06 11:58:38

From: mastaraymond


^ Would help SRL to not restart Smart every time you call setupsrl;


It won't do that if you set its input


  Smart_Server := 38; //not the actual world it loads though =/
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetUpSRL;

But I agree… SMART needs more functionality.

Sir R. M8gic1an

2010-02-06 12:08:17

I think there is a IsSmartActive var somewhere…

~RM

senrath

2010-02-06 12:09:28

Well, SMART is open source now, so it doesn't have to be Ben that adds this (if it doesn't already exist).

mastaraymond

2010-02-06 12:23:46

From: Rasta Magician
I think there is a IsSmartActive var somewhere…

~RM

Yes, but that doesn't return what world it is on.. I mean, in a rare case, it is possible you have a Members-SMART loaded, while your current script requires a F2P-Smart.. Then you would have to restart SMART, all the other cases it should use SMART as it is.

Sir R. M8gic1an

2010-02-06 13:10:22

From: mastaraymond
Yes, but that doesn't return what world it is on.. I mean, in a rare case, it is possible you have a Members-SMART loaded, while your current script requires a F2P-Smart.. Then you would have to restart SMART, all the other cases it should use SMART as it is.


hummm…


if Smart_Members then //now that I'm thinking, there's no CloseSmart proc is there?
begin
Smart_Members := false;
//CloseSmart;
Smart_Active := false;
end;

SetupSRL;

That should be enough to overcome the problem, as it'd reload smart.

~RM

Nava2

2010-02-06 15:08:07

I suggested this a long time ago.. :<

I agree though.

Gu3st...

2010-02-07 13:58:44

And in the LoginPlayer procedure, if RuneScape has been updated then SMART could restart instead of terminating.. That way we can have our scripts running for longer periods :)

mastaraymond

2010-02-07 13:59:25

From: Zyt3x
And in the LoginPlayer procedure, if RuneScape has been updated then SMART could restart instead of terminating.. That way we can have our scripts running for longer periods :)

^ might be unsafe, as you never know what changed in an update ;).

BenLand100

2010-02-10 00:52:43

Erm, if SMART needs to reload based on the input you give it, then it reloads. Why should SMART remember what input you gave it for you? Seems sorta silly.

mastaraymond

2010-02-10 01:54:45

From: BenLand100
Erm, if SMART needs to reload based on the input you give it, then it reloads. Why should SMART remember what input you gave it for you? Seems sorta silly.

Because SCAR can't remember it :p