This script Lags like hell if you log into the likes of world one , varrock West Bank, And sometimes if you are logged in and all, it don't even work theres that must lag in the script.
Can Anyone Help? Lol?
This script Lags like hell if you log into the likes of world one , varrock West Bank, And sometimes if you are logged in and all, it don't even work theres that must lag in the script.
Can Anyone Help? Lol?
It probably has someting to do with this procedure:
SCAR Code:procedure ValidateForm;
begin
Status('Validateing Form Input');
if((MistakeChanceNum <> '0')and(MistakeChanceNum <> '1')and(MistakeChanceNum <> '2')and(MistakeChanceNum <> '3')and(MistakeChanceNum <> '4')and(MistakeChanceNum <> '5')and(MistakeChanceNum <> '6')and(MistakeChanceNum <> '7')and(MistakeChanceNum <> '8')and(MistakeChanceNum <> '9')and(MistakeChanceNum <> '10')) then
begin
Alert('Please enter an integer of 0-10 for Mistake Chance!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((CorrectMistakeChanceNum <> '0')and(CorrectMistakeChanceNum <> '1')and(CorrectMistakeChanceNum <> '2')and(CorrectMistakeChanceNum <> '3')and(CorrectMistakeChanceNum <> '4')and(CorrectMistakeChanceNum <> '5')and(CorrectMistakeChanceNum <> '6')and(CorrectMistakeChanceNum <> '7')and(CorrectMistakeChanceNum <> '8')and(CorrectMistakeChanceNum <> '9')and(CorrectMistakeChanceNum <> '10')) then
begin
Alert('Please enter an integer of 0-10 for Mistake Correction Chance!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontColorType1 <> 'none')and(FontColorType1 <> 'white')and(FontColorType1 <> 'green')and(FontColorType1 <> 'purple')and(FontColorType1 <> 'cyan')and(FontColorType1 <> 'glow1')and(FontColorType1 <> 'glow2')and(FontColorType1 <> 'glow3')and(FontColorType1 <> 'flash1')and(FontColorType1 <> 'flash2')and(FontColorType1 <> 'flash3')) then
begin
Alert('Invalid Input For Color In Row 1!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontColorType2 <> 'none')and(FontColorType2 <> 'white')and(FontColorType2 <> 'green')and(FontColorType2 <> 'purple')and(FontColorType2 <> 'cyan')and(FontColorType2 <> 'glow1')and(FontColorType2 <> 'glow2')and(FontColorType2 <> 'glow3')and(FontColorType2 <> 'flash1')and(FontColorType2 <> 'flash2')and(FontColorType2 <> 'flash3')) then
begin
Alert('Invalid Input For Color In Row 2!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontColorType3 <> 'none')and(FontColorType3 <> 'white')and(FontColorType3 <> 'green')and(FontColorType3 <> 'purple')and(FontColorType3 <> 'cyan')and(FontColorType3 <> 'glow1')and(FontColorType3 <> 'glow2')and(FontColorType3 <> 'glow3')and(FontColorType3 <> 'flash1')and(FontColorType3 <> 'flash2')and(FontColorType3 <> 'flash3')) then
begin
Alert('Invalid Input For Color In Row 3!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontColorType4 <> 'none')and(FontColorType4 <> 'white')and(FontColorType4 <> 'green')and(FontColorType4 <> 'purple')and(FontColorType4 <> 'cyan')and(FontColorType4 <> 'glow1')and(FontColorType4 <> 'glow2')and(FontColorType4 <> 'glow3')and(FontColorType4 <> 'flash1')and(FontColorType4 <> 'flash2')and(FontColorType4 <> 'flash3')) then
begin
Alert('Invalid Input For Color In Row 4!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontColorType5 <> 'none')and(FontColorType5 <> 'white')and(FontColorType5 <> 'green')and(FontColorType5 <> 'purple')and(FontColorType5 <> 'cyan')and(FontColorType5 <> 'glow1')and(FontColorType5 <> 'glow2')and(FontColorType5 <> 'glow3')and(FontColorType5 <> 'flash1')and(FontColorType5 <> 'flash2')and(FontColorType5 <> 'flash3')) then
begin
Alert('Invalid Input For Color In Row 5!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontColorType6 <> 'none')and(FontColorType6 <> 'white')and(FontColorType6 <> 'green')and(FontColorType6 <> 'purple')and(FontColorType6 <> 'cyan')and(FontColorType6 <> 'glow1')and(FontColorType6 <> 'glow2')and(FontColorType6 <> 'glow3')and(FontColorType6 <> 'flash1')and(FontColorType6 <> 'flash2')and(FontColorType6 <> 'flash3')) then
begin
Alert('Invalid Input For Color In Row 6!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontEffectType1 <> 'none')and(FontEffectType1 <> 'scroll')and(FontEffectType1 <> 'shake')and(FontEffectType1 <> 'slide')and(FontEffectType1 <> 'wave')and(FontEffectType1 <> 'wave2')) then
begin
Alert('Invalid Input For Effect In Row 1!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontEffectType2 <> 'none')and(FontEffectType2 <> 'scroll')and(FontEffectType2 <> 'shake')and(FontEffectType2 <> 'slide')and(FontEffectType2 <> 'wave')and(FontEffectType2 <> 'wave2')) then
begin
Alert('Invalid Input For Effect In Row 2!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontEffectType3 <> 'none')and(FontEffectType3 <> 'scroll')and(FontEffectType3 <> 'shake')and(FontEffectType3 <> 'slide')and(FontEffectType3 <> 'wave')and(FontEffectType3 <> 'wave2')) then
begin
Alert('Invalid Input For Effect In Row 3!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontEffectType4 <> 'none')and(FontEffectType4 <> 'scroll')and(FontEffectType4 <> 'shake')and(FontEffectType4 <> 'slide')and(FontEffectType4 <> 'wave')and(FontEffectType4 <> 'wave2')) then
begin
Alert('Invalid Input For Effect In Row 4!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontEffectType5 <> 'none')and(FontEffectType5 <> 'scroll')and(FontEffectType5 <> 'shake')and(FontEffectType5 <> 'slide')and(FontEffectType5 <> 'wave')and(FontEffectType5 <> 'wave2')) then
begin
Alert('Invalid Input For Effect In Row 5!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((FontEffectType6 <> 'none')and(FontEffectType6 <> 'scroll')and(FontEffectType6 <> 'shake')and(FontEffectType6 <> 'slide')and(FontEffectType6 <> 'wave')and(FontEffectType6 <> 'wave2')) then
begin
Alert('Invalid Input For Effect In Row 6!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((GetLetters(WaitingTextTime) <> '')and(GetOthers(WaitingTextTime) <> '')and(GetNumbers(WaitingTextTime) = '')) then
begin
Alert('Invalid Input In Default Waiting Time Field, It must be a integer!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((GetLetters(WaitingRandomTextTime) <> '')and(GetOthers(WaitingRandomTextTime) <> '')and(GetNumbers(WaitingRandomTextTime) = '')) then
begin
Alert('Invalid Input In Random Waiting Time Field, It must be a integer!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
if((SRLForumUser = '')) then
begin
Alert('You MUST enter YOUR SRL Forum Username or risk getting banned from using this Script!'+chr(13)+chr(13)+'Terminateing Script Please Restart...', 'Setup Error', 0);
TerminateScript;
end;
Status('...');
end;
Your best bet would probably be to add some Waits in there..
Thats only ran once as the form validateor Creates Null Lag.
When is the form validator run though? When you are logged in or the second the form is closed?
Use lots of waits; to reduce the amount of lag. Work in the flow of runescape. I always use FTWait; waits 1/4 sec and performs 1 FindTalk;
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
And put a god damn array in there and put a for loop with about 125 ms wait in the beginning, should do.
And for your "mistake-talking", use SendText2
There are currently 1 users browsing this thread. (0 members and 1 guests)