SRL Archive - S.M.A.R.T. Questions and Answers.

The SMART FPS slider...


Roflme

2012-05-13 21:56:17

Is there any way to have the slider set to a specific setting? Whenever I open a new bot I always have to readjust the FPS settings. Is there any way to edit the default FPS slider setting?

YoHoJo

2012-05-13 22:03:55

Searched: 'smart slider function'
http://villavu.com/forum/showthread.php?t=17807&highlight=smart+function+slider

The function you want is SmartGetRefresh(X:Integer);

100 is max 0 is min.

E:
Or maybe SmartSetRefresh(X:Integer)?

Roflme

2012-05-13 22:07:26

"Roflme, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

:(

YoHoJo

2012-05-13 22:14:56

lol wierd, I think it's a very OLD thread from when SMART was SSRL member only.
But I answered your question for you though.

Use that function I said above ^ (probably before your lines that make smart pop up, but maybe right after?) and that should do it.

Roflme

2012-05-13 22:26:48

Alright, I just placed it in a few places and it worked. Thank you! :D

05sti

2012-05-14 06:30:44

roflme you mind giving a little information as to where you put it exactly, weather it was in the script or somewhere else

thanks

YoHoJo

2012-05-14 06:32:13

Just sprinkle them around if you are not 100% sure.
If you see lines like

Smart_Server := 10;
Smart_Members := True;
Smart_Signed := True;

I'd put it before and after those lines.
And maybe after the SetupSRL line too.

05sti

2012-05-14 06:35:10

I am guessing in the includes part is where i should be looking for the terms listed above?

YoHoJo

2012-05-14 06:37:12

Basically, just open the script you wish to run.

Then paste this line

SmartSetRefresh(75); //Adjust to desired refresh rate

where I explained in my previous post.

05sti

2012-05-14 07:40:23

Guess i am just not good with this yet :/ Came up with compile error and said change to = did that but still remains slow I put this procedure under the setup instructions.

thanks for the help

Roflme

2012-05-14 15:54:06

From: 05sti
roflme you mind giving a little information as to where you put it exactly, weather it was in the script or somewhere else

thanks


Here's an example with the script "SKJ", Seil's Karamja Fisher.

begin
ClearDebug;
SmartSetRefresh(10);
SetUpSrl;
SmartSetRefresh(10);
ActivateClient;
SmartSetRefresh(10);
DeclarePlayers;
SmartSetRefresh(10);
LoginPlayerToLob;
OpenWorldScreen;
SelectWorld(81);
LoginPlayer;
SetupSRLStats(721, SRLStats_User, SRLStats_Password);
SetAngle(0);
SetRun(True);
MouseSpeed := RandomRange(15, 25);
repeat
Mainloop;
until(false)
end.

Just throw a few SmartSetRefresh(); in there like I did, or if you can find a single spot where it will work do that. I CBA to find it at the moment so I just threw it in a few times :)

Just look towards the end of the script and add it in.