SRL Archive - First Scripts

Gnome Agility Course Runner


Azzon

2007-04-17 19:10:41

SCAR Version Made With: SCAR 2.03
SRL Version: 3.5

If you are viewing this, please go to:
http://www.villavu.com/forum/showthread.php?t=9153
That is the new 'home' for this script.

Hello,

This is my first completed, functioning script that I've made with SCAR, and I wanted to release it to the public, both to better my scripting abilities, and to work out any problems with the script. I welcome any constructive critism and comments.

The script has very basic Anti-Randoms(simply because I find it rare to get a random on the agility course, however it if Random's become a problem I can update the Anti-Random procedure to better compensate.) It has no anti-ban, mainly because the mouse is always moving anyways, however i do plan on including some Anti-Ban procedures, depending on the suggestions given.

Here's a progress report I just did with it (have been away from scripting for awhile so just quickly did this, 25/50 laps completed.)

() (============================
() (= Azzons Gnome Agility Course Runner
() (============================
() (== Laps Completed - 25
() (== Laps Left - 25
() (== Script Run Length - 40 Minutes, and 53 Seconds
() (============================
() (== Happy Running!
() (============================
Successfully executed

So, let me know how it goes, and how I could better improve the script.

Thanks
-Azzon

Smartzkid

2007-04-17 19:12:06

Attachment?

Azzon

2007-04-17 19:14:11

Yeah sorry about that, posted and forgot to attach the script, there it is now.

jibwin

2007-04-19 22:00:10

nice =P sounds good, ill try it!!

RudeBoiAlex

2007-04-21 06:12:43

im gna try now

Ogamy

2007-04-21 12:55:50

Failed when compiling
Line 26: [Error] (63:1): Duplicate identifier 'UpChars' in script C:\Program Files\SCAR 3.0\includes\srl\srl\core\Globals.scar

Azzon

2007-04-21 13:24:31

Does anyone else get the error that Ogamy just posted?

As I don't get that error myself, so if no one else is getting that error, maybe try another script and see if it does that as well? If it does, or even doesn't, might wanna try re-installing SRL. Oh and I did forget to say, this script was made in 2.03, so if your using 3.xx, that might play a factor in why its not working.

omega112

2007-04-22 15:13:15

Works fine! Nice job! Just one small problem..

Everytime one of the gnomes talks it thinks its a random and talks with it..

Azzon

2007-04-22 18:05:01

Thank you.

Well, I noticed that is you don't enter a nick in the player setup, or if your nick isn't complex enough, or if your nick consists of the same characters in a row, as what they are saying. That is not something I can fix, I can only suggest adjusting your nickname to another part or string of characters from your name.

Sp0rky

2007-04-24 07:21:13

I'll test this later, ty.

dch1x

2007-05-02 17:38:02

this is what i get, what do i do?

Include file C:\Program Files\SCAR 2.03\includes\SRL/SRL.scar does not exist.
Failed when compiling

steth1010

2007-05-02 17:59:32

omg dude dont even ask. haha read above it tells you about those errors and not to ask them!

IEatJ00erBaybees

2007-05-02 21:41:21

Looks pretty awesome for your first script :). You'll be a fantastic scripter and SRL Member in no-time. (I just skimmed this)

dark evil

2007-05-14 09:56:57

hi, thes is nice script but need some more works.
best wishes to done it.

Inf456

2007-05-29 23:12:52

Wow, for your first script, this is great. I would test if I had a member that I wouldn't care if it got banned ;) . I am currently starting scripting, hoping to be an SRL member sooner or later :).

runemastaod

2007-06-07 00:14:59

works fine until i get to the first climb up tree.. then it just stops

Pwnt by Pwnt

2007-06-16 17:58:53

:D really nice first script.. cant say much =\ lol nice work :D

Helloman374

2007-06-20 14:51:03

Nice this is one really good first script;)

Suad1234515

2007-09-03 11:37:21

VERY NICE!!! Hope i can use once im not a leecher

Camaro

2007-09-03 17:21:18

Suad, I don't think it works anymore, its for old srl and scar. Check the date next time, and read it please.

markel

2007-09-04 23:40:54

ill try it, i realy need my agility up to 30:P

gibsondude

2007-09-30 21:32:26

i keep getting this error and idk how to fix, line 113: [Error] (14794:38) comma (',') expected in script

ferrous

2007-09-30 21:55:46

Its for an older version of scar and SRL, so if your using the newest versions that could be the problem.

gibsondude

2007-09-30 22:02:57

so what do i do? i really need an agility thing and i have the slightest clue on how to use scar but i can probaly figure some stuff out. like are there any other agility scripts i can use somehow

ferrous

2007-09-30 22:18:08

Either wait until you become a SRL Junior Member, learn to script your own, or keep looking around for a free one. Search these forums or google it.

gibsondude

2007-09-30 22:24:08

how do i become junior member? and i dont wanna search google it might be a virus lol

ferrous

2007-10-01 05:46:48

Get 10 posts and stay here 7 days. Oh, and you can't get a virus from a .scar file.. Atleast I don't think you should be able to. Just don't google if your afraid too or you could scan everything with virustotal.com :P

rockhead

2007-10-01 22:56:08

wow any way to speed up the script?

alberts00

2007-10-02 08:30:38

pls make for srl 4.0

what i can get from tar and if there are anti ban ?

good work

omg :D and works too :D

thx for info

who dont know this :)

will now get 10 posts :)


to get the registry entires go start run and write regedit

thx :)

for 10 of theese u can acces to it from accesories

i installed subversion and all works


Attention Spammers and Leechers…

gibsondude

2007-10-02 19:23:49

yea i really need a gnome agility cuz my agilkity is 1 lol and i hate agility but i want it up high so i can do some of these quests =P

DillonSykes

2007-10-07 01:15:08

Ill try it out, Looks ok though.

Zeke1901

2007-10-07 19:22:14

Line 113: [Error] (14795:41): Unknown identifier 'ScriptTime2' in script C:\Program Files\SCAR 3.12\Scripts\downloaded\Gnome Agility Runner.scar

Does not work

2pac

2007-10-08 08:52:28

How come it stops half way?

Ilikepie1995

2007-10-08 12:40:45

It Looks Nice, Maybe Make It Count Exp?

99str bang

2007-10-10 15:24:37

darn i wish i was still a member lol

badman

2007-10-13 09:57:26

when i try this it says that this file doesnt excist


From: Azzon
SCAR Version Made With: SCAR 2.03
SRL Version: 3.5

If you are viewing this, please go to:
http://www.villavu.com/forum/showthread.php?t=9153
That is the new 'home' for this script.

Hello,

This is my first completed, functioning script that I've made with SCAR, and I wanted to release it to the public, both to better my scripting abilities, and to work out any problems with the script. I welcome any constructive critism and comments.

The script has very basic Anti-Randoms(simply because I find it rare to get a random on the agility course, however it if Random's become a problem I can update the Anti-Random procedure to better compensate.) It has no anti-ban, mainly because the mouse is always moving anyways, however i do plan on including some Anti-Ban procedures, depending on the suggestions given.

Here's a progress report I just did with it (have been away from scripting for awhile so just quickly did this, 25/50 laps completed.)

() (============================
() (= Azzons Gnome Agility Course Runner
() (============================
() (== Laps Completed - 25
() (== Laps Left - 25
() (== Script Run Length - 40 Minutes, and 53 Seconds
() (============================
() (== Happy Running!
() (============================
Successfully executed

So, let me know how it goes, and how I could better improve the script.

Thanks
-Azzon

Lord michie

2007-10-15 15:56:44

i tryed to use it but it says Line 113: [Error] (14794:41): Unknown identifier 'ScriptTime2' in script C:\Documents and Settings\Owner\Desktop\dounlods\Gnome Agility Runner.scar can you pleas help me? :)

pl0xmypl0x

2007-10-20 11:02:48

i want to try this :D

Hey321

2007-10-20 11:09:01

From: pl0xmypl0x
i want to try this :D


10-15-2007, 03:56 PM :f:

jimdave

2007-10-21 10:48:52

man i hope this works, i've had 40 agility for months now cause i hate it so much, this might just do the trick ^^

Skinners

2007-10-21 15:37:47

CAn you update it to the newest version of srl and scar?

patty

2007-10-21 23:08:39

thanks this is a neat script :D

Geebly

2007-10-22 21:12:55

This didnt work for me.


Line 141: [Error] (14822:13): Unknown identifier 'x' in script C:\Documents and Settings\Compaq_Owner\Local Settings\Temporary Internet Files\Content.IE5\89ABWTMB\Gnome%20Agility%20Runner[1].scar

Line 113: [Error] (14794:41): Unknown identifier 'ScriptTime2' in script C:\Documents and Settings\Compaq_Owner\Local Settings\Temporary Internet Files\Content.IE5\89ABWTMB\Gnome%20Agility%20Runner[1].scar

Line 144: [Error] (14825:15): Unknown identifier 'x' in script C:\Documents and Settings\Compaq_Owner\Local Settings\Temporary Internet Files\Content.IE5\89ABWTMB\Gnome%20Agility%20Runner[1].scar

blackknig

2007-10-27 12:59:42

can u pls update it…..

fert

2007-10-27 14:35:59

worked fine for me

ShowerThoughts

2007-10-27 14:58:08

FiXed(Compiling) Version!!!!
say if i need to delete…
//#########################################################
//#########################################################
//#### Azzon's Gnome Agility Runner ####
//#### Version: 1.0 ####
//#########################################################
//#########################################################
//#### ####
//#### Hello, and Welcome. I would like to start ####
//#### off by saying, thank you for using this ####
//#### script. If you have any questions, ####
//#### suggestions, or problems related to this ####
//#### script, then feel free to post on the ####
//#### thread, or send me a pm. ####
//#### ####
//#### You can find the player adjustable ####
//#### variables for the script between lines ####
//#### 30 and 37. ####
//#### ####
//#### You can setup the players using this ####
//#### script between lines, 63 and 75. Due note ####
//#### that the script is only designed for a ####
//#### single player, and the purpose of the ####
//#### player setup is for Anti-Randoms. ####
//#### ####
//#### Thank you for using this script. ####
//#### - Azzon ####
//#########################################################
//#########################################################

program GnomeAgilityRunner; //561 Lines, With Spacers And Procedure Headers
{.include SRL/SRL.scar}

var
LapsMade, tries, WaitOnPipe, LapsTillCheckRun, WaitOnFlagLoops : Integer;
FirstLap, s1_Complete, s2_Complete, s3_Complete, s4_Complete : Boolean;
s5_Complete, s6_Complete, NewLap, LapComplete, FoundPipe, WalkingToStart : Boolean;
X,y:integer;

//################################################################
//## Manual Player Setup ##
//################################################################

const
g_ColorTol = 16; //Game Screen Color Tolerance
mMSpeed = 15; //The Mouse Speed
UseBenMouse = true; //UseBenMouse, I Personally Recommend Leaving It 'True'
Laps = 50; //Number Of Laps You Want The Script To Run For
CheckRunLapDelay = 10; //Number Of Laps To Complete Before Calling CheckRun Again

NumberOfAccounts = 1; //Only Designed For One
FirstAccount = 0; //Basically Right Now, Don't Touch

//################################
//## Note: Unless You Experience##
//## Color Problems, It Is ##
//## Recommended To Leave The ##
//## Color's As-Is. ##
//################################

s_LogBalance_C = 606057; //Obstacle 1, Log Color
s_ObstacleNet_C = 5726328; //Obstacle 2 and Obstacle 6, Net Color
s_TreeBranch_C = 1660014; //Obstace 3, and Obstacle 5, Tree Color
s_BalancingRope_C = 5931680; //Obstacle 4, Rope Color
s_ObstaclePipe_C = 3685440; //Obstacle 7, Pipe Color
s_Mushroom_C = 2576031; //End Of Obstacle 7, Mushroom Color

//################################################################
//################################################################

//####################################
//## Player Setup Location ##
//####################################

procedure SetupPlayers;
begin
HowManyplayers := NumberOfAccounts;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := FirstAccount;

Players[0].Name := '';
Players[0].Pass := '' ;
Players[0].Nick := '';
Players[0].Active := True;

WriteLn(IntTostr(HowManyPlayers) + ' Players');
end;

//####################################
//## Greeting Procedure ##
//####################################

procedure A_Greeting;
begin
WriteLn('#################################')
WriteLn('## Welcome ##')
WriteLn('## You Are Using ##')
WriteLn('## A Script Created By Azzon ##')
WriteLn('## Enjoy ##')
WriteLn('#################################')
end;

//####################################
//## Player Report Procedure ##
//####################################

procedure PlayerReport;
begin
ClearDebug;
WriteLn('() (============================');
WriteLn('() (= Azzons Gnome Agility Course Runner');
WriteLn('() (============================');
WriteLn('() (== Laps Completed - ' + IntToStr(LapsMade));
WriteLn('() (== Laps Left - ' + IntToStr(Laps - LapsMade));
WriteLn('() (== Script Run Length - ' + TimeRunning+'');
WriteLn('() (============================');
WriteLn('() (== Happy Running! ');
WriteLn('() (============================');
SRLRandomsReport;
end;

//####################################
//## AntiRandom Procedure ##
//####################################

procedure AntiRandoms;
begin
FTWait(2);
FindNormalRandoms;
end;

//####################################
//## WaitOnFlag Procedure ##
//####################################

procedure WaitOnFlag;
begin
WaitOnFlagLoops := 0;
repeat
Wait(1000+random(500));
WaitOnFlagLoops := WaitOnFlagLoops + 1;
if WaitOnFlagLoops = 12 then
begin
Mouse(250, 210, 32, 32, true);
end;
if (not(LoggedIn)) then Exit;
until(FlagPresent = false);
end;

//####################################
//## CheckRun Procedure ##
//####################################

procedure CheckRun;
begin
GameTab(11);
Wait(500+random(250));
if FindText(x, y, '100', smallchars, 628, 411, 667, 450) then
begin
SetRun(true);
end;
Wait(500+random(250));
GameTab(4);
Wait(250+random(125));
end;

//####################################
//## CheckForLevel Procedure ##
//####################################

procedure CheckForLevel;
begin
repeat
if FindText(x, y, 'continue', npcchars, mcx1, mcy1, mcx2, mcy2) then
begin
FindText(x, y, 'lick', npcchars, mcx1, mcy1, mcx2, mcy2);
Mouse(x, y, 100, 12, true);
end;
Wait(500+random(500));
if (not(LoggedIn)) then Exit;
until(not FindText(x, y, 'continue', npcchars, mcx1, mcy1, mcx2, mcy2));
end;

//####################################
//## 1st Obstacle Procedure ##
//####################################

procedure s1_LogBalance;
begin
tries := 0;
repeat
if (tries = 4) then
begin
if FindSymbol(x, y, 'agility') then
begin
Mouse(x, y, 12, 12, true);
WaitOnFlag;
tries := 0;
end;
end;
AntiRandoms;
if FindObj(x, y, 'Log balance', s_LogBalance_C, g_ColorTol) then
begin
Mouse(x, y, 6, 6, true);
WaitOnFlag;
end;
tries := tries + 1;
Wait(500+random(250));
if (not(LoggedIn)) then Exit;
until(IsChatBlackTextAnyLine('carefully') or IsChatBlackTextAnyLine('safely') or IsChatBlackTextAnyLine('advanced'));
Wait(500+random(250));
CheckForLevel;
AntiRandoms;
repeat
Wait(500+random(250));
CheckForLevel;
AntiRandoms;
if IsChatBlackTextAnyLine('safely') or IsChatBlackTextAnyLine('advanced') then
begin
case random(3)+1 of
1: Mouse(200, 260, 32, 32, true);
2: Mouse(240, 250, 32, 32, true);
3: Mouse(300, 250, 32, 32, true);
end;
s1_Complete := true;
end;
if (not(LoggedIn)) then Exit;
until(s1_Complete = true);
end;

//####################################
//## 2nd Obstacle Procedure ##
//####################################

procedure s2_ObstacleNet;
begin
repeat
WaitOnFlag;
Wait(1000+random(500));
if FindObj(x, y, 'Obstacle net', s_ObstacleNet_C, g_ColorTol) then
begin
Mouse(x, y, 6, 6, true);
end;
Wait(750+random(250));
CheckForLevel;
AntiRandoms;
if (not(LoggedIn)) then Exit;
until(IsChatBlackTextAnyLine('netting') or IsChatBlackTextAnyLine('advanced'));
repeat
Wait(500+random(250));
CheckForLevel;
AntiRandoms;
if IsChatBlackTextAnyLine('netting') or IsChatBlackTextAnyLine('advanced') then
begin
s2_Complete := true;
end;
if (not(LoggedIn)) then Exit;
until(s2_Complete = true);
end;

//####################################
//## 3rd Obstacle Procedure ##
//####################################

procedure s3_TreeBranch;
begin
repeat
WaitOnFlag;
if FindObj(x, y, 'Tree branch', s_TreeBranch_C, g_ColorTol) then
begin
Mouse(x, y, 6, 6, true);
end;
Wait(750+random(250));
CheckForLevel;
AntiRandoms;
if (not(LoggedIn)) then Exit;
until (IsChatBlackTextAnyLine('tree.') or IsChatBlackTextAnyLine('platform') or IsChatBlackTextAnyLine('advanced'));
Wait(250+random(125));
repeat
CheckForLevel;
AntiRandoms;
Wait(500+random(250));
if IsChatBlackTextAnyLine('platform') or IsChatBlackTextAnyLine('advanced') then
begin
Mouse(340, 165, 32, 32, true);
Wait(500+random(500));
s3_Complete := true;
end;
if (not(LoggedIn)) then Exit;
until(s3_Complete = true);
end;

//####################################
//## 4th Obstacle Procedure ##
//####################################

procedure s4_BalancingRope;
begin
repeat
WaitOnFlag;
if FindObj(x, y, 'Balancing rope', s_BalancingRope_C, g_ColorTol) then
begin
Mouse(x, y, 2, 2, true);
end;
WaitOnFlag;
Wait(500+random(250));
CheckForLevel;
AntiRandoms;
if (not(LoggedIn)) then Exit;
until(IsChatBlackTextAnyLine('carefully') or IsChatBlackTextAnyLine('advanced'));
Wait(250+random(125));
repeat
CheckForLevel;
AntiRandoms;
Wait(500+random(250));
if IsChatBlackTextAnyLine('tightrope') or IsChatBlackTextAnyLine('advanced') then
begin
s4_Complete := true;
end;
if (not(LoggedIn)) then Exit;
until(s4_Complete = true);
end;

//####################################
//## 5th Obstacle Procedure ##
//####################################

procedure s5_TreeBranch;
begin
repeat
WaitOnFlag;
if FindObj(x, y, 'Tree branch', s_TreeBranch_C, g_ColorTol) then
begin
Mouse(x, y, 6, 6, true);
end;
Wait(750+random(250));
CheckForLevel;
AntiRandoms;
if (not(LoggedIn)) then Exit;
until(IsChatBlackTextAnyLine('tree.') or IsChatBlackTextAnyLine('ground') or IsChatBlackTextAnyLine('advanced'));
Wait(250+random(125));
repeat
CheckForLevel;
AntiRandoms;
Wait(500+random(250));
if IsChatBlackTextAnyLine('ground') or IsChatBlackTextAnyLine('advanced') then
begin
case random(3)+1 of
1: Mouse(240, 50, 32, 32, true);
2: Mouse(170, 75, 32, 32, true);
3: Mouse(110, 90, 32, 32, true);
end;
s5_Complete := true;
end;
if (not(LoggedIn)) then Exit;
until(s5_Complete = true);
end;

//####################################
//## 6th Obstacle Procedure ##
//####################################

procedure s6_ObstacleNet;
begin
repeat
WaitOnFlag;
if FindObj(x, y, 'Obstacle net', s_ObstacleNet_C, g_ColorTol) then
begin
Mouse(x, y, 6, 6, true);
end;
Wait(750+random(250));
CheckForLevel;
AntiRandoms;
if (not(LoggedIn)) then Exit;
until(IsChatBlackTextAnyLine('netting') or IsChatBlackTextAnyLine('advanced'));
Wait(250+random(125));
repeat
CheckForLevel;
AntiRandoms;
Wait(500+random(250));
if IsChatBlackTextAnyLine('netting') or IsChatBlackTextAnyLine('advanced') then
begin
s6_Complete := true;
end;
if (not(LoggedIn)) then Exit;
until(s6_Complete = true);
end;

//####################################
//## Pipe Finder Procedure ##
//####################################

procedure PipeFinding;
begin
repeat
WaitOnFlag;
Wait(500+random(500));
if FindObj(x, y, 'Obstacle pipe', s_ObstaclePipe_C, g_ColorTol) then
begin
Mouse(x, y, 6, 6, true);
WaitOnFlag;
Wait(500+random(500));
if IsChatBlackTextAnyLine('being') then
begin
FoundPipe := false;
end else
begin
FoundPipe := true;
WaitOnPipe := 0;
end;
end;
Wait(500+random(500));
AntiRandoms;
if (not(LoggedIn)) then Exit;
until(FoundPipe = true);
end;

//####################################
//## 7th Obstacle Procedure ##
//####################################

procedure s7_ObstaclePipe;
begin
PipeFinding;
Wait(250+random(125));
repeat
CheckForLevel;
AntiRandoms;
Wait(500+random(250));
if FindColorTolerance(x, y, s_Mushroom_C, msx1, msy1, msx2, msy2, g_ColorTol) then
begin
tries := 0;
repeat
if FindSymbol(x, y, 'agility') then
begin
Mouse(x, y, 12, 12, true);
WalkingToStart := true;
WaitOnFlag;
LapComplete := true;
end;
tries := tries + 1;
if (not(LoggedIn)) then Exit;
until((WalkingToStart = true) or (tries = 12));
if (tries = 12) then
begin
LogOut;
WriteLn('Couldnt find the agility symbol.');
end;
end else
begin
WaitOnPipe := WaitOnPipe + 1;
end;
if (WaitOnPipe = 5) then
begin
PipeFinding;
end;
until(LapComplete = true);
end;

//####################################
//## Global Script Setup ##
//####################################

procedure SetupAgilityRunner;
begin
SetupSRL;
ClearDebug;
MouseSpeed := mMSpeed;
A_Greeting;
Wait(250+random(125));
ActivateClient;
Wait(250+random(125));
FirstLap := true;
SetupPlayers;
CurrentPlayer := FirstAccount;
LoginPlayer;
NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, Upchars);
MakeCompass('N');
HighestAngle;
end;

//########################################################################
//########################################################################

//####################################
//## Main Loop ##
//####################################

begin
SetupAgilityRunner;
Wait(100+random(50));
SetChat('off', 1);
SetChat('off', 1);
repeat
if (not(LoggedIn)) then Exit;
if (FirstLap = true) then
begin
LapsTillCheckRun := CheckRunLapDelay;
CheckRun;
Wait(250+random(100));
FirstLap := false;
s1_LogBalance;
end;
if LapsTillCheckRun <= 0 then
begin
LapsTillCheckRun := CheckRunLapDelay;
CheckRun;
end;
if NewLap = true then
begin
NewLap := false;
LapsTillCheckRun := LapsTillCheckRun - 1;
s1_LogBalance;
end;
if s1_Complete = true then
begin
s1_Complete := false;
s2_ObstacleNet;
end;
if s2_Complete = true then
begin
s2_Complete := false;
s3_TreeBranch;
end;
if s3_Complete = true then
begin
s3_Complete := false;
s4_BalancingRope;
end;
if s4_Complete = true then
begin
s4_Complete := false;
s5_TreeBranch;
end;
if s5_Complete = true then
begin
s5_Complete := false;
s6_ObstacleNet;
end;
if s6_Complete = true then
begin
s6_Complete := false;
s7_ObstaclePipe;
end;
if LapComplete = true then
begin
LapComplete := false;
LapsMade := LapsMade + 1;
PlayerReport;
NewLap := true;
end;
until(LapsMade >= Laps);
if (LapsMade >= Laps) then
begin
LogOut;
WriteLn('Training Was A Success.');
end else
begin
WriteLn('A Problem Was Encountered During Training.');
end;
end.

//########################################################################
//########################################################################

krnpride

2007-10-30 19:10:05

nice script

is this really ur first??

Azzon

2007-10-31 03:08:39

Thank you hermpie, for posting a working version of the script to the public.

I am truly surprised no one has publicly released a new public agility script that was made from scratch for people to use; and equally surprised that people actually have been using / trying to use this script up until now. I would like to apologize for my absence and lack of updates with the script, and to thank all those to downloaded / used / fixed this script.

Happy Scaping Everyone,
- Azzon