SRL Archive - RS3 Outdated / Broken Scripts

Account Creator + Tut Runner


the nerd

2008-07-26 10:54:15

I am in the middle of creating a Tut runner and Account Creator Script. So far I have finished the Account Creator, and part of the tut runner. I NEED TESTERS.

if you want to know why I dont just release a finished version and get tester for that, it because my scrip is now ove 3000 lines long, 2000 of which are for the Tut runner. It would be very difficult to debug the completed script, so i need you help to debug it in smaller portions.

This script is for the new Tutorial.

The Account Creator works using the RS client so it works with SMART, and is not effected by changes in the URL that RS uses for account creation.

I need testers for the Account Creator so that I can identify bug and error that may turn up through long term use. I has a built in auto recover, which may not always work, and also take screen shots of problem pages.

The script contains both the Account Creator and first part of the Tut runner, which does not work due to problems with SRL's FindObjEx function. I am currently making a replacement for this script. Please post screen shots of problem pages, and tell me ho well you think it worked, and how capable it is of auto recovering.

I would like to thank Dusk412 for allowing me to use part of his Human Account Creator in my script.

There are no instruction in the script. It should not require you to do any thing except press start.


Progress:

Account Creator: Complete (just needs testing)

General procedures and functions: Complete (tweking just to ensure that they will always work)

Login and intergration between Acc Creator and Tut Runner: Testing.

Character Creation: Complete.

Part One (Sir Vant): Complete (Needs Testing)

Ranged: Complete (Needs Testing)

Note: There is currently a 70% garenty that the account will make it to this stage (acording to a short test consisting of 10 accounts. All errors where reported as related to equiping bow and arrow, however more tests are needed);

Part Two (Sir Vant): Complete(Needs lots of testing)

Fishing: Almost Complete

Part Three(Sir Vant): Not Started

Mining: Not Started

Part Fout(Sir Vant): Not Started

This report is how far I have reached in MY version. That may not be the same as the released version.



Known Bugs:
Equiping Bow and arrow - Somtimes it does not equip the arrows due to lag from equiping bow, this results in the script ending player and moving on.

If anyone had any ideas on how to solve the bugs then please tell me.



Latest Release:
Updated again. fixed the bug with logging in and out with the same account. FInish intergrating the Account Creator and Tut Runner. If Account Creator and Tut Runner are both set to true then it will create accounts and then take them througt the tut runner.

I updated the click continues procedure to make it more reliable, and finished adding fail safes to all procedures.

Add more procedures to run account until the end of the fishing and cooking tut, how ever the fishing and cooking tut requires testing a little bit more work.

I have also added a progess bar for each account to make it easier to figure out where it is with each account, the next stage will be a report, not just the final report. However that is a long way off at the moment.


How to use:

To use set up you option and press start.

If the tut runner is being used by itself then a SRLPlayersForm will apear, create and army for the Tut runner and start;

If the tut runner is being used with the account creator then it will create accounts and take them through the first part of the (untested).

If the Account Creator is being used by itself then just press start and leave the script. I will sort its self out.



NOTE: The tut runner is not compete. Is is only part so as that i can reseve feed back and remove bugs.




Importer: The importer will import account that have been saved into a txt/scar file by the Account Creator into the SRLPlayerForm INI file and will apear as the Army "Tut Runner Test" in the SRL Player Form


Posting Bugs:
If the bug is in the account creator then post the bitmap image that it creates of the page so that I can add the error page to the Account Creator;

If the bug is related to the Tut runner then tell me what just happened, what should of happend, the text in the status bar at the time, and the last 10 lines in the debug box if debug is set to true

Versions:

0.00.01: Account Creator only
0.00.02: Small amount of tut runner
0.00.09: Tut runner completed to end of Ranged
0.00.10: Complete intergration between the Tut runner and Account Creator
0.00.11: Tut runner completed to end of Fishing/Cooking tut
0.00.11a: Major bug fixes in above version
0.00.11b: Fixed bug that was caused by above bug fixes
0.00.12: Added instructions and credits (Current Release)

NOTE: File names do not show the letter release of each version.

ShowerThoughts

2008-07-26 11:01:36

if TimeFromMark(StartTime) > 5000 then Result := False;

5000 should be max 2500 and min 1000 i think 1500 will do it ;)

because if it is not there i takes only 1,5 sec max not 5 0.o

Laur€ns

2008-07-26 11:18:32

Line 1191: [Error] (16768:17): Invalid number of parameters in script C:\DOCUME~1\Eigenaar\LOCALS~1\Temp\Account Creator + Tut Runner.scar

the nerd

2008-07-26 11:26:31

Thanks Hermpie. But im still working on a replacement for FindObjEx. And i want to make sure that the arrow is not on screen. Not just a slow computer, or very bad luck.

ShowerThoughts

2008-07-26 11:28:37

tpa's? reflection?

in my leaving thread check my old tut runner with my 1k+ lines of the old tut island code you only have to adjust the colors :)

PvH

2008-07-26 11:41:13

From: Hermpie
tpa's? reflection?

in my leaving thread check my old tut runner with my 1k+ lines of the old tut island code you only have to adjust the colors :)


No… The tut island changed a lot;)
There is a whole new one:p

And why not check out my findobject function with tpa's?
Its one line code of use, its fast and really pwnage:p
You can find it in the public test corner.

PvH

the nerd

2008-07-26 11:42:19

Thanks PVH i will. Where can I find it???

ShowerThoughts

2008-07-26 12:41:43

From: PvH
No… The tut island changed a lot;)
There is a whole new one:p

And why not check out my findobject function with tpa's?
Its one line code of use, its fast and really pwnage:p
You can find it in the public test corner.

PvH


I Know where I AM talking about u can use my FindYellowMM Thing and FindRedMM thing , u can use them

the nerd

2008-07-26 12:46:58

acctualy they changed the red arrow to and new one that looks diffent. And also this is the seccond arrow thing i have created. You may have noticed my older tut runner that i left in the alpha stage cuz of exams

Also PVH i found you findobject function. Could you mod it so that it can use text and colour array to improve it chances of find what it wants

PvH

2008-07-26 13:24:49

Just pick a good color;)
That makes less lagg and less chance to fail.

PvH

ShowerThoughts

2008-07-26 14:01:40

It uses tpa's if you just pick the color from the yellow and the red and put it in it will count them and if they are next to each other it is found :)

the nerd

2008-07-26 15:55:52

dont care that much. I useing dtms. There fast enough, and garrete the right object on the minimap.

EDIT: Ok Hermpie you win. Im using your function to find the red arrow, BUT only the red arrow. Im using my ideas for every thing else. Thanks for the function. (I have no idea how it works, could you explane?? I think i have tryed to create somthing like this before but gave up after 10 secs cuz i had no idea how to go about it)

Shuttleu

2008-07-29 04:25:21

ok well i have tested it but it keeps getting stuck before it goes outside
it just stops clicking

then once it has loged out (due to inactivity) it logs that player back in and says
Wait for chat count timed out
Tut Runner failed at: Player did not start at charater creation
then logs the player out and logs the player in again then spits out that code in th debug box then logs out and it just keeps repeating

~shut

EDIT: i have just tested another one and it got to the bow and arrows part before it stopped and it equipped the bow but not the arrows then it said
Wait for chat count timed out
Tut Runner failed at: Equip Bow And Arrow
then it does the same as above where it keeps logging in and out

the nerd

2008-07-30 07:48:12

Script UPDATED. This time there are a lot of bug fixes and updates. Read first post for info. I have fixed the bug that Shuttleu has brought forward. And smoothed out the general perfomence. But I need more testers.

Shuttleu

2008-08-01 17:48:34

now testing :)

~shut

ShowerThoughts

2008-08-01 17:50:02

Sorry that i didn't reacted but pls post that function here and then send me a pm with this thread link thank you ;) then i will explain that Red MM arrow thingy ;)

Edit: i see u know how it works good ;)

Shuttleu

2008-08-01 18:09:03

i ran your new one and this is what it said in the debug box
Successfully compiled (6021 ms)
Line 310: [Hint] (5275:1): Variable 'T' never used in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar
Line 1568: [Hint] (19228:5): Variable 'ALENGTH' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 1568: [Hint] (19228:5): Variable 'I' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 1569: [Hint] (19229:5): Variable 'ERRORCODE' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 1694: [Hint] (19354:5): Variable 'TOTALAMOUNT' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2161: [Hint] (19821:1): Variable 'TEMPTPA' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2163: [Hint] (19823:1): Variable 'L' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2163: [Hint] (19823:1): Variable 'I' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2220: [Hint] (19880:5): Variable 'CL' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2249: [Hint] (19909:5): Variable 'COLORS' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2250: [Hint] (19910:5): Variable 'TEXTS' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2251: [Hint] (19911:5): Variable 'TMPX' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2251: [Hint] (19911:5): Variable 'TMPY' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2480: [Hint] (20140:5): Variable 'YES' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 2558: [Hint] (20218:5): Variable 'FS' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
Line 96: [Hint] (17756:1): Variable 'BREAK' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
File access error
File access error
SRL Compiled in 109 msec
Created by The Nerd
Verson: 0.00.12
Setting SMART for bitmap searching
| UserName: jithrue66 | Password: ****** |
C:\Program Files\SCAR 3.15\Chars.INI
File access error
[Runtime Error] : Exception: Access violation at address 0040439A in module 'scar.exe'. Read of address 00000010 in line 1313 in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12.scar
it made one account but then it stopped with that error
so i removed that line and it seems to be working so far
i will post how it goes a little later

~shut

EDIT: i ran it again and it stopped at the ranging tutor
Successfully compiled (8294 ms)
Line 310: [Hint] (5275:1): Variable 'T' never used in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar
Line 1567: [Hint] (19227:5): Variable 'ALENGTH' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 1567: [Hint] (19227:5): Variable 'I' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 1568: [Hint] (19228:5): Variable 'ERRORCODE' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 1693: [Hint] (19353:5): Variable 'TOTALAMOUNT' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2160: [Hint] (19820:1): Variable 'TEMPTPA' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2162: [Hint] (19822:1): Variable 'L' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2162: [Hint] (19822:1): Variable 'I' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2219: [Hint] (19879:5): Variable 'CL' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2248: [Hint] (19908:5): Variable 'COLORS' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2249: [Hint] (19909:5): Variable 'TEXTS' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2250: [Hint] (19910:5): Variable 'TMPX' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2250: [Hint] (19910:5): Variable 'TMPY' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2479: [Hint] (20139:5): Variable 'YES' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 2557: [Hint] (20217:5): Variable 'FS' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
Line 96: [Hint] (17756:1): Variable 'BREAK' never used in script C:\Users\Thomas\AppData\Local\Temp\Tut Runner + Account Creator v0.00.12-1.scar
SRL Compiled in 16 msec
Created by The Nerd
Verson: 0.00.12
Setting SMART for bitmap searching
Please post Error Bitmap on thread. I can be located in the script folder
Recovering
Page did not change, exiting for error control
Recovery Successful
| UserName: yeeble16 | Password: ****** |
C:\Program Files\SCAR 3.15\Chars.INI
File access error
HowManyPlayers: 1
CurrentPlayer: 0
PlayerArrayLength: 1
Yeeble16
Creating the NickTPA.
Nickname isn't set, taking the username instead..
Found Arrow
Clicked Sir Vant Arrow
Waiting for flag
Flag gone, Clicking Sir Vant
Finding Sir Vant
Found MS arrow!!
Finding Sir Vant took:749 ms!
Sir Vant UpText is Walk here
Sir Vant UpText Check returned False
Sir Vant found at 348,159
Clicked Sir Vant
Waiting for flag
Flag gone, waiting for text
Waiting for cutscene
Found Arrow
Yellow arrow close to MM center, not clicking it
Waiting for flag
Flag gone, Clicking Sir Vant
Finding Sir Vant
Found MS arrow!!
Finding Sir Vant took:827 ms!
Sir Vant UpText is Talk-to Sir Vant / 2 more options
Sir Vant UpText Check returned True
Sir Vant found at 306,162
Clicked Sir Vant
Waiting for flag
Flag gone, waiting for text
Wait for chat count timed out
Found Arrow
Yellow arrow close to MM center, not clicking it
Found MS arrow!!
Finding Goblin took:1185 ms!
Found MS arrow!!
Found MS arrow!!
Finding Coin took:2886 ms!
Found MS arrow!!
Finding Bones took:936 ms!
Found Arrow
Clicked Sir Vant Arrow
Waiting for flag
Flag gone, Clicking Sir Vant
Finding Sir Vant
Found MS arrow!!
Finding Sir Vant took:749 ms!
Sir Vant UpText is Walk here
Sir Vant UpText Check returned False
Sir Vant found at 343,163
Clicked Sir Vant
Waiting for flag
Flag gone, waiting for text
Opening Invent
Invent Open
Found Arrow
Yellow arrow close to MM center, not clicking it
Waiting for flag
Flag gone, Clicking Sir Vant
Finding Sir Vant
Found MS arrow!!
Finding Sir Vant took:983 ms!
Sir Vant UpText is Talk-to Sir Vant / 2 more options
Sir Vant UpText Check returned True
Sir Vant found at 304,159
Clicked Sir Vant
Waiting for flag
Flag gone, waiting for text
Found Arrow
Yellow arrow close to MM center, not clicking it
Waiting for flag
Flag gone, Clicking Sir Vant
Finding Sir Vant
Found MS arrow!!
Finding Sir Vant took:920 ms!
Sir Vant UpText is Talk-to Sir Vant / 2 more options
Sir Vant UpText Check returned True
Sir Vant found at 255,191
Clicked Sir Vant
Waiting for flag
Flag gone, waiting for text
Found Arrow
Yellow arrow close to MM center, not clicking it
Waiting for flag
Flag gone, Clicking Sir Vant
Finding Sir Vant
Found MS arrow!!
Finding Sir Vant took:390 ms!
Sir Vant UpText is Talk-tu Sir Vant / 2 more options
Sir Vant UpText Check returned True
Sir Vant found at 315,185
Clicked Sir Vant
Waiting for flag
Flag gone, waiting for text
Found Arrow
Clicked Arrow
Found MS arrow!!
Looking for Ladder
Took 718ms to find ladder
Completed SirVantOne running success test
Success!!
Ranged Started
Found Arrow
Clicked Arrow
Found MS arrow!!
We couldn't find the Tutor!
Found MS arrow!!
Found MS arrow!!
Finding Tutor took:8596 ms!
Wait for chat count timed out
Could Not find Arrows
Tut Runner failed at: Equip Bow And Arrow
Current Player: 1
How Many Players: 1
Tut Runner has finished cycle
Successful:

Unsuccessful:

Account yeeble16 did not complete the Tut runner successfuly
Error Report: Tut Runner failed at: Equip Bow And Arrow

----------------------------------------------------------------------------------------------------------------------------------------------------
Account Creator

Accounts Created: 1
----------------------------------------------------------------------------------------------------------------------------------------------------
Tut Runner

Accounts Taken Through Tut runner: 1
Accounts Completed Tut runner successfully: 0 More Info Above

Running Time: 9 Minutes and 4 Seconds
Finished
Successfully executed

the nerd

2008-08-01 19:35:09

Im not sure how to fix the first bug properly. but i think it is caused when somthing provents SCAR from creating the file. However i will make an update to prevent the runtime error

WithoutFear

2008-08-02 17:14:54

very very nice so far. Kinda blew up at the cooking tutor, got much farther than i expected. Didn't come up with any error just couldn't find it. Had trouble finding the red arrow. The multiplayer functions pretty much flawlessly (tested on 3), just when it couldn't find the cooking tutor it spent about a 30 seconds trying. Not sure if thats how long you want it to wait or not. Just thought i would let you know.

Very good script so far!