SRL Archive - OSR Help

How can i speed up a script?


dragonwith

2012-05-19 13:19:04

i wanna change the speed of this http://villavu.com/forum/showthread.php?t=47111

Script,Someone tell me how.

Jokester

2012-05-19 13:22:29

Anytime you see "wait" then a number, just decrease the number a little bit.
Also add this MouseSpeed:=30; to the mainloop.

dragonwith

2012-05-19 13:23:51

From: Jokester
Anytime you see "wait" then a number, just decrease the number a little bit.
Also add this MouseSpeed:=30; to the mainloop.


Could you please explain what the mainloop means?

Jokester

2012-05-19 13:28:40

From: dragonwith
Could you please explain what the mainloop means?


The very bottom of the script where everything is put together.

Should look something like this.

begin
MakeForm;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
Disguise('Herblore PRO');
ItemDTMs;
MouseSpeed:=30;
WhatBank;
Failsafe:= 0;
count:= 0;
ActivateClient;
if (not(LoggedIn)) then
LogInPlayer;
Wait(1000 + Random(500));
Gametab(tab_Inv);
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('n');
repeat
if (not(Bank)) then
begin
Inc(Failsafe);
Bank;
end;
if MakePotions then
Inc(count);
UpdateReport;
until not(LoggedIn) or (count >= Make);
EndScript;
end.

dragonwith

2012-05-19 13:43:59

So many codes,Cant you do it for me xD?

litoris

2012-05-19 13:53:32

From: dragonwith
So many codes,Cant you do it for me xD?


Nobody will do it for you, this is a learning community. Try to understand what was explained. It literally takes 30 seconds to change the mouse speed.

Jokester

2012-05-19 13:53:36

From: dragonwith
So many codes,Cant you do it for me xD?


No… it really isn't that hard…

dragonwith

2012-05-19 13:57:02

can you do it on teamvieuwer,So you show me and next time i'll do it myself .

dragonwith

2012-05-19 14:03:59

procedure Setup_MainLoop;
var
totalLogs, i: Integer;
begin
Setup_Script;

repeat
Setup_Player;
MouseSpeed:=20; I putted it here xD
repeat
if (Lowercase(Players[CurrentPlayer].Strings[P_TREE]) = 'willow') then
Walk_ToLoc(WALK_TREES_WILLOWS)
else
Walk_ToLoc(WALK_TREES_OAKS);

while (not InvFull) and (LoggedIn) do
Chop_Trees;

if (InvFull) then
begin
if (Lowercase(Players[CurrentPlayer].Strings[P_TREE]) = 'willow') then
Walk_ToLoc(WALK_BANK_WILLOWS)
else
Walk_ToLoc(WALK_BANK_OAKS);

if (Bank_Logs) then

dragonwith

2012-05-19 14:07:08

OMFG i cant just stand that The script just keeps stopping for like 3 seconds and then it goes to a willow tree,It annoyes me,Cause then people will think i bot.

Is this the bot or the script?

CephaXz

2012-05-19 14:08:15

Mainloop is the part of script that Jokester posted. Mousespeed should be set after setupsrl. And there are more than enough tutorials on this forum that can teach you up to a level where you can make your own script in a few days of learning.

dragonwith

2012-05-19 14:10:38

From: CephaXz
Mainloop is the part of script that Jokester posted. Mousespeed should be set after setupsrl. And there are more than enough tutorials on this forum that can teach you up to a level where you can make your own script in a few days of learning.


Damn i wanna create me own script!

CephaXz

2012-05-19 14:14:01

From: dragonwith
Damn i wanna create me own script!


I created my own script in 3 days of learning, with just tutorials in this forum. I had no knowledge about scripting before. It's a very "user-friendly" language I guess, not that hard to make your first script.

Hope that encouraged you.

Jokester

2012-05-19 14:14:31

From: dragonwith
Damn i wanna create me own script!


Well then go to the tutorial forum and watch a video or 2 and read a couple tutorials.

btw please don't use inappropriate language.

Joe

2012-05-19 14:32:11

From: dragonwith
OMFG i cant just stand that The script just keeps stopping for like 3 seconds and then it goes to a willow tree,It annoyes me,Cause then people will think i bot.

Is this the bot or the script?


Oh my…
People will think you bot? What are you doing… botting. You mean people will KNOW you bot. And scripts can't just nonstop cut willows one after the other- people legiting don't even do that! You can't assume we are all IT majors… I assume you are "botting" in the draynor village vicinity? If so, you don't even need to worry about people thinking you bot, garuntee 75%+ of the players are using the same script you are.
And about it being the script or the bot?
It could be your computer… "botting" takes a lot of CPU- even on good systems.
These are "bots" are called scripts. There are no bots on villavu. And the script was made to suit the desires of the scripter, not you. I make my scripts to suit the fluidity of my computer.
Like other people are saying, you should learn to script, nobody will do anything for you around here. Mostly so you will learn for yourself.

And one more thing. You can't complain about the script taking an extra 3 seconds. This means you are babysitting the script and may as well be legitting if its too slow for you. Are you on LSD? Just let the script run and go do something else.

begin
if Rant = Finished then
exit;
end;

CephaXz

2012-05-19 14:52:29

From: JOEbot
Oh my…
People will think you bot? What are you doing… botting. You mean people will KNOW you bot. And scripts can't just nonstop cut willows one after the other- people legiting don't even do that! You can't assume we are all IT majors… I assume you are "botting" in the draynor village vicinity? If so, you don't even need to worry about people thinking you bot, garuntee 75%+ of the players are using the same script you are.
And about it being the script or the bot?
It could be your computer… "botting" takes a lot of CPU- even on good systems.
These are "bots" are called scripts. There are no bots on villavu. And the script was made to suit the desires of the scripter, not you. I make my scripts to suit the fluidity of my computer.
Like other people are saying, you should learn to script, nobody will do anything for you around here. Mostly so you will learn for yourself.

And one more thing. You can't complain about the script taking an extra 3 seconds. This means you are babysitting the script and may as well be legitting if its too slow for you. Are you on LSD? Just let the script run and go do something else.

begin
if Rant = Finished then
exit;
end;


+rep-ed.

[S]paz

2012-05-22 05:55:55

I understand how it can be daunting but as it has been said. Take a couple of days, go to the beginners section and have a look. I've come back after about 3 years of not touching or following SCAR/Simba. A lot has changed and I am now back in a position like you.

Start very simply and it will all fall into place.

Chry

2012-05-29 09:43:00

When SMART loads, try moving the FPS Slider