SRL Archive - First Scripts

Insane's Auto-Teleporter


insanomano

2011-06-22 04:02:32

Insane's Auto-Teleporter V1.1


There was a request for one of these so I figured I would give it a go, I'm hoping too get out a more advanced script soon enough

Description: Repeatedly casts a teleport spell of your choice to gain magic experience in runescape.
**Currently only supports teleport spells for:
- Varrock
- Lumbridge
- Falador
- House

Features: *SMART
*Anti-Randoms/ every 5 casts
*Failsafes
*Progress report

** Please post all bugs and progress reports, Thanks, enjoy.

Alright Version 1.1 is here, improved quite a few things, Progress report is relatively accurate, lag gives it trouble(Example. It will say more casts then it has actually done due too getting lagged up)


As you can see from the progress report it should gain roughly 31k xp/hr doing Varrock teleports(remember my computer is extremely slow and laggy :(, Lumbridge and Falador yield more experience per cast also

chitin

2011-06-22 04:20:34

line 38 "too" should be "to" if you cared…otherwise neat.
not to mention some of the comments are off shuttles guide for beginners i believe. someones guide…if u wanted to remove those and make your own default script…

masterBB

2011-06-22 05:18:50

Nice job, you made the script pretty fast. Here's some feedback:

I see you checked for FindNormalRandoms every five casts, you could also use FindNonInventoryRandoms, this won't switch tab. Maybe this is closer to what you want.

Some functions seems a bit to big. You never set Result with a function. You always do it with True or False. But sometimes it can be a lot shorter. See this example:
if FindColorSpiralTolerance(x, y, 10193512, 229, 138, 273, 189, 3) then
begin
Result := True;
end else
Result := False;
Could be:
Result := FindColorSpiralTolerance(x, y, 10193512, 229, 138, 273, 189, 3);

Suggestion: When the script runs out of law runes, stop it. This can easily done by Amount.scar:
{*******************************************************************************
function ItemAmount(Area, ItemType: string; Item: Integer; Tol: TIntegerArray): Integer;
By: masquerader modified by ZephyrsFury
Description: Counts the number of items found with a color in a certain area. (Counts stacks)
Parameters:
Area - 'inv', 'shop', 'bank', 'trade', 'your trade'.
ItemType - 'dtm', 'bmp', 'color', 'bmpmask'.
Item - name/value of your dtm/bmp/color/bmpmask.
Tol - 'dtm' - [] (dtm's can't have tolerance).
'bmp' - [BMPTol].
'color' - [COLOUR Tol, Min Colour Count].
'bmpmask' - [BMPTol, ContourTol].
*******************************************************************************}

Rep+ for making a script on request!

mat_de_b

2011-06-22 09:50:31

Two things, perhaps you could find the law runes with a DTM? i don't know how accurate/ reliable your current setup is, but in general a DTM is more accurate and reliable.

I don't know if the spell casts needs to be as accurate as it is, but you put the randomY and randomX as 1,1(in the casting procedure) which means that it can only click 4 possible pixels, which could seem slightly 'un-human'

Other than that, it looks simple and well set out :D nice script

insanomano

2011-06-22 13:26:38

@ Chitin
line 38 "too" should be "to" if you cared…otherwise neat.


Thanks for catching me on a typo!

@ MasterBB

I see you checked for FindNormalRandoms every five casts, you could also use FindNonInventoryRandoms, this won't switch tab. Maybe this is closer to what you want.


Thanks!! I will implement this, I will probably set it up so it will check for NonInventory Randoms more frequently and FindNormalRandoms every 10 casts or so, I couldn't think of a way too make it check for randoms without switching the tabs,

Some functions seems a bit to big. You never set Result with a function. You always do it with True or False. But sometimes it can be a lot shorter. See this example:
Simba Code:

if FindColorSpiralTolerance(x, y, 10193512, 229, 138, 273, 189, 3) then
begin
Result := True;
end else
Result := False;

Could be:
Simba Code:

Result := FindColorSpiralTolerance(x, y, 10193512, 229, 138, 273, 189, 3);



This is a very good point, I will try and do this too make the script a bit neater

Suggestion: When the script runs out of law runes, stop it. This can easily done by Amount.scar:
Simba Code:

{*******************************************************************************
function ItemAmount(Area, ItemType: string; Item: Integer; Tol: TIntegerArray): Integer;
By: masquerader modified by ZephyrsFury
Description: Counts the number of items found with a color in a certain area. (Counts stacks)
Parameters:
Area - 'inv', 'shop', 'bank', 'trade', 'your trade'.
ItemType - 'dtm', 'bmp', 'color', 'bmpmask'.
Item - name/value of your dtm/bmp/color/bmpmask.
Tol - 'dtm' - [] (dtm's can't have tolerance).
'bmp' - [BMPTol].
'color' - [COLOUR Tol, Min Colour Count].
'bmpmask' - [BMPTol, ContourTol].
*******************************************************************************}



Definitely going too use this, Thanks for all the help!!


@Mat_de_b

Two things, perhaps you could find the law runes with a DTM? i don't know how accurate/ reliable your current setup is, but in general a DTM is more accurate and reliable.


I was just trying to keep it simple using color, and the blue on the Law rune is pretty distinguishable between most other runes(except maybe water, never thought about that :P), but thanks for the suggestion :), i will most likely be using DTMs in a future script I make

I don't know if the spell casts needs to be as accurate as it is, but you put the randomY and randomX as 1,1(in the casting procedure) which means that it can only click 4 possible pixels, which could seem slightly 'un-human'


This is very true and I will go add a bit more randomness too it, The spell itself doesnt have a large surface area too click on so I just wanted too prevent misclicks but i could probably change randomx, randomy too 3, 3 or possibly even 5, 5 instead of 1, 1,

either way. thanks a lot for the feedback everyone, I appreciate it! I was trying too keep this script simple enough and get it done quick, I was extremely over tired last night at 2 am when I finished this, so now I will go make a few changes, Hopefuly the next script I write is going too be a little more complex ! =D

-Insane