SRL Archive - RS3 Outdated / Broken Scripts

DannyRS AirRunner - Air Runes


DannyRS

2012-11-28 16:56:31



About

crafts air runes, Updated to 2.0 as it got a decent amount of looks / interest

SetUp

Start with essence in inventory, and with an air tiara on, standing at bottom of west var bank,

essence in top right of bank and ability bar minimized! RS zoomed out to max


Required Graphics Setup Pic :

Found Here


Known Bugs

[LIST]
None
[/LIST]


Versions

V1.0 - Never intended for release leaving for reference (use 2.0+)
V2.0 - Initial Re-Write Release
V2.1 - TPA System added (version untested thoroughly, try 2.0 if issues)
V2.2 - Much more advanced logic, should be more or less flawless

Proggies

Me - Testing (didnt have much essence)

=========DannyRS-AirRunner==============
=========Version: V2.0==================
* Time Running: 41 Minutes and 46 Seconds
* Experience Earned: 3780
* Experience/Hour: 5429
* Essence Used: 756 (1086/PH)
===================================


[B]InHoltz:[/B]

=========DannyRS-AirRunner=============
=========Version: 2.2==================
* Time Running: 6 Hours, 28 Minutes and 59 Seconds
* Experience Earned: 29120
* Experience/Hour: 4492
* Essence Used: 5880 (906/PH)
===================================

Suggestions To Add

None
if you want to make a suggestion you can post it and I'll add it when i can


Ian

2012-11-28 17:13:05

Nice :). I tried making one a while ago but gave up after several unsuccessful sps attempts. I could have it walk to the altar but when I went back to the surface the map had changed and sps got lost :p, nice release, and well credited too :)

DannyRS

2012-11-28 17:48:58

From: BMWxi
Nice :). I tried making one a while ago but gave up after several unsuccessful sps attempts. I could have it walk to the altar but when I went back to the surface the map had changed and sps got lost :p, nice release, and well credited too :)


Weird, i used very simple sps for this and it worked fine, maybe something changed, anyway thanks for taking a look and support as usual bmw :)

Silentcore

2012-11-28 18:31:16

A suggestion will be: keep the good work up.

The_Dude

2012-11-29 00:02:51

// ***If the SPS Maps aren't found, Download them and save them automatically At line 10

Error: SPS Maps Do Not Exist OR They Are Named Incorrectly! at line 503

Where can I get these maps?

P1ng

2012-11-29 00:44:46

if(Debug)then begin Writeln('Banking All'); end;

could be simplified to:
if Debug then
WriteLn('Banking All');

As long as you only want to execute the next line as a result of the if..then statement then you do not need a begin..end;

        xpos:= RandomRange(355,382);
ypos := RandomRange(299,315);
HumanMMouse(xpos,ypos,0,0);

could be shortened to:
HumanMMouse(RandomRange(355,382), RandomRange(299,315), 0, 0); 

Only other thing is probably check out breaking your walking and what-not into their own procedures/functions and check out using TPAs for finding things like banks and so forth, they are more efficient and accurate than DTMs when objects move/change alot.

But overall nice release :)

The_Dude

2012-11-29 01:08:54

So the script does work, I just didn't find the anti-leech?

I fixed the map thing I think but I don't know how to fix all the 'unused variables' in the main loop. Can anyone help me?

DannyRS

2012-11-29 04:00:49

From: The_Dude
So the script does work, I just didn't find the anti-leech?

I fixed the map thing I think but I don't know how to fix all the 'unused variables' in the main loop. Can anyone help me?


Unused? Think i removed them all?, i used my other scripts as a template,

There is no anti leech in this script, can you give any more information on your error? Or post a debug log?

Thanks for the tips p1ng, the xpos ypos thing is only for the banking as far as i know because i used that before i knew about the choseoption in includes, and was just to lazy to re-write the function,

Its messy coz i didnt plan to release this and was just using it to quickly boost my own RC :)

If its not working for you try to update your S.M.A.R.T to 8.0, because thats what i use to write my stuff now, i cant see what your problem is with so little info tho :(

The_Dude

2012-11-29 17:08:28

Okay so I installed Simba 0.99 http://nala.villavu.com/downloads/master/902397653ce75df9d6b726824196b4fdeba892c5/SimbaInstaller.i386-win32.exe and then moved the SMART V8 files https://github.com/downloads/BenLand100/SMART/SMARTv8.0.zip into the plugins folder and now when I try to run this script the error I'm getting is SMART related.

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(275:145): Invalid number of parameters at line 274

Now I'm not even sure where I messed up lol.

DannyRS

2012-11-30 03:58:31

You need to edit line 285 of SmartParams when using smart 8

Or just open it with simba, ctrl+a and replace with this, save exit restart simba, should be good to go

Alternatively, try change {$DEFINE SMART} at the top of scripts to {$DEFINE SMART8}

No idea if that is working at the moment tho but one way should work

{$DEFINE SRL_SMART}
{$DEFINE SMART}
{$loadlib libsmartremote}

(*
GetSmartParams
~~~~~~~~~~~~~~

.. code-block:: pascal

Function GetSmartParams: TStringArray;

Grabs The Correct Parameters For passing to the SmartClient.

.. note::

By: Brandon.
Modified By: Mormanman, Benland100.

Example:

.. code-block:: pascal

*)
Function GetSmartParams: TStringArray;
var
Params: TStringArray;
Page: String;
begin
//Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?beta=true&j=1'));
Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?j=1'));
Params := Explode(',', Page);
Result := Params;
end;

(*
FixSmartSpeed
~~~~~~~~~~~~~~

.. code-block:: pascal

Procedure FixSmartSpeed;

Fixes Smart's Loading Speed.
Moves the Mouse & Adjusting the Canvas Refresh rate.

.. note::

By: Brandon.

Example:

.. code-block:: pascal

*)
Procedure FixSmartSpeed;
var
T: Integer;
begin
T:= GetSystemTime + 2000;
While (Not SmartEnabled) Do
begin
if (GetSystemTime >= T) Then
Break;
Wait(500);
end;

While (GetColor(382, 252) = 0) Do
begin
If RSReady then
Break;
SmartSetRefresh(SmartGetRefresh + 1);
MMouse(4, 4, 0, 0);
SmartSetRefresh(SmartGetRefresh - 1);
if (GetSystemTime >= T) Then
Break;
Wait(500);
end;
end;

(*
SmartGetClientIDs
~~~~~~~~~~~~~~

.. code-block:: pascal

Function SmartGetClientIDs: TIntegerArray;

Grabs All Client ID's of the current remote.

.. note::

By: Mormanman.

Example:

.. code-block:: pascal

*)
Function SmartGetClientIDs: TIntegerArray;
var
I, Count: Integer;
begin
Count := SmartGetClients(True);
SetLength(Result, Count);
If (Count > 0) then
For I:= 0 to (Count - 1) do
Result[I] := SmartClientID(I);
end;

(*
SmartKillClients
~~~~~~~~~~~~~~

.. code-block:: pascal

procedure SmartKillClients;

Kills All Smart Clients.

.. note::

By: Mormanman.

Example:

.. code-block:: pascal

*)
procedure SmartKillClients;
var
IDs: TIntegerArray;
I: Integer;
begin
IDs := SmartGetClientIDs;
For I := High(IDs) DownTo 0 Do
If SmartKillClient(IDs[I]) Then
Writeln('Killed Client: ' + ToStr(IDs[I]))
else
Writeln('Failed To Kill Client: ' + ToStr(IDs[I]));
end;

(*
SixHourFix
~~~~~~~~~~~~~~

.. code-block:: pascal

Procedure SixHourFix;

Kills The Current Smart Client and Restarts it.
Fixes the 6 hour login.

.. note::

By: Brandon.

Example:

.. code-block:: pascal

*)
Procedure FreeSRL; Forward;
Procedure SetupSRL; Forward;
Procedure SixHourFix;
var
Trash: TVariantArray;
Refresh: Integer;
begin
FreeSRL;
Refresh := SmartGetRefresh;
SmartKillClient(SmartCurrentClient);
SetupSRL;

try
CallProc('SMART_FreeDebug', Trash);
CallProc('SMART_SetupDebug', Trash);
except
end;

SmartSetRefresh(Refresh);

try
if (not LoginPlayer) then
srl_Warn('SixHourFix', 'Could not log in player', warn_Terminate);
except
srl_Warn('SixHourFix', 'Players not declared', warn_Terminate);
end;
end;


(*
PairSmart
~~~~~~~~~~~~~~

.. code-block:: pascal

Function PairSmart(ID: Integer): Boolean;

Pairs A Client To The Current Controller.

.. note::

By: Benland100, Brandon.

Example:

.. code-block:: pascal

*)
Function PairSmart(ID: Integer): Boolean;
var
I, Count: Integer;
IDs: TIntegerArray;
begin
IDs := SmartGetClientIDs;
Count := Length(IDs);
If (Count > 0) then
For I:= 0 To (Count - 1) Do
If (IDs[I] = ID) and SmartPairClient(ID) then
begin
SetEIOSTarget('libsmartremote', ToStr(ID));
Writeln('Paired with SMART[' + ToStr(ID) + ']');
Result := True;
Exit;
end;
Writeln('** Failed To Pair Client: ' + ToStr(ID) + '; Client Does Not exist **');
end;

(*
InitSmart
~~~~~~~~~~~~~~

.. code-block:: pascal

Function InitSmart(ForceNew: Boolean): Integer;

Initializes A Smart Remote Client.
Terminates the current script upon failure.
Terminates all clients of the current remote upon failure.
ForceNew Creates a new client.

.. note::

By: Benland100, Mormanman, Brandon.

Example:

.. code-block:: pascal

*)
Function InitSmart(ForceNew: Boolean): Integer;
var
I, Count: Integer;
IDs: TIntegerArray;
Params: TStringArray;
begin
If (Not ForceNew) then
begin
Ids := SmartGetClientIDs;
Count := Length(IDs);
If (Count > 0) then
For I:= 0 To (Count - 1) Do
begin
If SmartPairClient(IDs[I]) then
begin
Result := IDs[I];
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Paired with SMART[' + ToStr(Result) + ']');
Exit;
end;
end;
end;

Params := GetSmartParams;
If (Length(Params) > 2) then
begin
Writeln('** Failed To Grab Smart Parameters **');
TerminateScript;
Exit;
end;

{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result:= SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '')
{$ENDIF}

If (Result > 0) Then
begin
try
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Loading SMART: ' + Params[0] + Params[1]);
except
WriteLn('** Fatal Error: Pairing Clients; Terminating Script **');
TerminateScript;
end;
end else
begin
Writeln('** Smart Cannot Spawn Clients **');
TerminateScript;
end;
end;

(*
SetupSmart
~~~~~~~~~~~~~~

.. code-block:: pascal

Procedure SetupSmart(ForceNewClient: Boolean);

Sets Up a new Smart Client and waits until it's on screen.
Terminates The current script upon failure.

.. note::

By: Mormanman.
Modified By: Brandon.

Example:

.. code-block:: pascal

*)
Procedure SetupSmart(ForceNewClient: Boolean);
var
T: Integer;
begin
T:= GetSystemTime + 120000;
Smart_CurrentClient:= InitSmart(ForceNewClient);
if (Smart_CurrentClient <= 0) then
begin
writeln('*** Smart Failed To Load ***');
TerminateScript;
end;

if (SRL_SixHourFix) then
SRL_Procs[SRL_OnRSUpdate]:= @SixHourFix;

While (GetColor(382, 252) <> 0) Do
begin
if RSReady then
break;

Wait(100);
if (GetTimeRunning >= 120000) then
begin
Writeln('*** Failed To Detect Clients ***');
TerminateScript;
end;
end;
end;





{* Functions Below Here are From the Original Smart.Simba *}


{*
By: Unknown Author.
Finds a Windows by partial title and Sets it as the target.
*}
function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
var
T : TSysProcArr;
I : Integer;
begin
T := GetProcesses;
for I := High(T) downto 0 do
if Pos(TitlePrefix, T[I].Title) <> 0 then
begin
Result := True;
if SetAsTarget then SetTarget(T[I]);
Exit;
end;
end;

{*
By: Unknown Author.
Gets the position of the actual mouse (Not Smart's Mouse).
*}
procedure GetRealMousePos(var X, Y : Integer);
var
KMTarget, ITarget: Integer;
begin
{$IFDEF LAPE}
writeln('GetRealMousePos not implemented yet in SRL-5 Lape!');
TerminateScript;
{$ELSE}
KMTarget := GetKeyMouseTarget;
ITarget := GetImageTarget;
FindAndSetTarget('SMART', True);
GetTClient.IOManager.GetMousePos(X, Y);
FreeTarget(GetImageTarget);
SetKeyMouseTarget(KMTarget);
SetImageTarget(ITarget);

// These are not universial offsets, but works somewhat for some Windows themes.
X := X - 8;
Y := Y - 25;
{$ENDIF}
end;

{*
By: Unknown Author.
Returns if the "Real Mouse" (Not Smart's Mouse) Is Within a given Box.
*}
function IsRealMouseInBox(B : TBox): Boolean;
var
P : TPoint;
begin
GetRealMousePos(P.X, P.Y);
Result := PointInBox(P, B);
end;

The_Dude

2012-11-30 15:37:16

So I have 0.99 and V8 up and running now, thanks for the help with smart params. When I run the script I am still getting the same error as before:


[Hint] C:\Simba\Scripts\AirCrafter.simba(336:3): Variable 'X' never used at line 335
[Hint] C:\Simba\Scripts\AirCrafter.simba(336:3): Variable 'Y' never used at line 335
[Hint] C:\Simba\Scripts\AirCrafter.simba(337:3): Variable 'ATTEMPTS' never used at line 336
[Hint] C:\Simba\Scripts\AirCrafter.simba(338:3): Variable 'DONE' never used at line 337
[Hint] C:\Simba\Scripts\AirCrafter.simba(359:3): Variable 'RUNESPH' never used at line 358
[Hint] C:\Simba\Scripts\AirCrafter.simba(360:3): Variable 'XPPH' never used at line 359
[Hint] C:\Simba\Scripts\AirCrafter.simba(360:3): Variable 'GPPH' never used at line 359
[Hint] C:\Simba\Scripts\AirCrafter.simba(367:7): Variable 'XPOS' never used at line 366
[Hint] C:\Simba\Scripts\AirCrafter.simba(367:7): Variable 'YPOS' never used at line 366
Compiled successfully in 1531 ms.

Error: SPS Maps Do Not Exist OR They Are Named Incorrectly! at line 503
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap]

DannyRS

2012-11-30 16:15:42

From: The_Dude
So I have 0.99 and V8 up and running now, thanks for the help with smart params. When I run the script I am still getting the same error as before:


AH, i didnt rename stuff correctly, can you try the new uploaded version

The_Dude

2012-11-30 22:51:52

Saved the thumbnail to C:\Simba\Includes\SPS\img\runescape_surface and tried to run the updated script and got another error

WalkPath toalter
Error: Exception: Access violation at line 311

DannyRS

2012-12-01 01:10:27

From: The_Dude
Saved the thumbnail to C:\Simba\Includes\SPS\img\runescape_surface and tried to run the updated script and got another error


Think its runescape_other i default sps stuff into, not surface, try there,

Not sure why that error happens,

Try run simba as an administrator if on windows, or install simba to somewhere other than program files

The_Dude

2012-12-02 16:08:57

Moving it to other fixed my problem. The script runs a few loads mint, but it regularly gets stuck in the wrong corner of the altar, trying to go through the portal to bank. Where it should be in the southeast corner, I find my player stuck in the southwest corner every few inventories or so.

So the script does work, just that one issue with it. Anyway thanks again for the help with updating simba and smart, hope you can figure out what's causing the problem.

DannyRS

2012-12-02 19:14:57

Yea its because theres no failsafes atm, i will add some when i get the time, Glad i was able to help you get 8.0 up and running :)

DannyRS

2012-12-09 18:22:06

Updated to 2.0 as it got a decent amount of looks / interest

Should run almost flawless :)

No Anti-Leech, Leech away ! (would be lovely if you posted a Proggy)

hopefully this is somewhat close to what SRL are looking for in Member Applications :)

Ubuntu

2012-12-09 21:27:44

I'll proggie for you tommorow :) . It's time you got one for this fine script.

DannyRS

2012-12-09 21:46:14

From: Ubuntu
I'll proggie for you tommorow :) . It's time you got one for this fine script.


It was crap before i spent today re writing it for real use, sometimes i need something for RS, like a few levels on a low account to do X quest, then i would write a basic Script to do that task for me, then upload it for the community, however i obviously only used it for a very short time, so i never bothered to add real failsafes,

And quite a few people / leechers actually looked at this, so i decided it was worth actually making it somewhat AFKable and reliable, hopefully i have now done that,

Also i havent updated my SRL includes in a while, because i couldent be bothered to change the smartparams thing for smart 8, so if it doesent compile for you because of something include related, let me know so i can update my scripts :) I'll probably update my includes tomorrow to avoid anything like this happening,

But if anyone gives it a go, its appreciated :) I'm really seriously looking at improving my scripting to try and apply for members sometime now, so any and all feedback is appreciated!

Ubuntu

2012-12-10 16:52:01

Weird. My bot just sits there and does nothing :| . And yes, I do have it set up correctly.

garyman

2012-12-10 21:42:51

Weird. My bot just sits there and does nothing :| . And yes, I do have it set up correctly.



I start the script then disable SMART, log in and stop the script. Then i walk around just a little bit, then go back to the start spot, re-enable SMART, and hit the play button and it goes.

Danny- The script runs great until it enters the inner altar. It does not detect the altar to create the runes.

Ubuntu

2012-12-10 22:26:35

From: garyman
I start the script then disable SMART, log in and stop the script. Then i walk around just a little bit, then go back to the start spot, re-enable SMART, and hit the play button and it goes.

Danny- The script runs great until it enters the inner altar. It does not detect the altar to create the runes.


;) ill try that tomorrow.

DannyRS

2012-12-11 01:27:57

From: garyman
I start the script then disable SMART, log in and stop the script. Then i walk around just a little bit, then go back to the start spot, re-enable SMART, and hit the play button and it goes.

Danny- The script runs great until it enters the inner altar. It does not detect the altar to create the runes.


hmm , are you zoomed out max and brightness up, safe mode?, i'll double check it tomorrow, maybe needs a up to date DTM, if you know how, add a new dtm and see if it works

Slashed

2012-12-12 19:59:47

Yes, the max time this script ran for me was 30 minutes than it shut down, it didn't find the inner altar.

On the debug it said it found the altar DTM but the script doesn't click on it. Still, out of 35k essence, in 1 hour and half ( restarting when it stop) this script did 1.3k essence. Not bad

DannyRS

2012-12-12 20:04:34

From: Slashed
Yes, the max time this script ran for me was 30 minutes than it shut down, it didn't find the inner altar.

On the debug it said it found the altar DTM but the script doesn't click on it. Still, out of 35k essence, in 1 hour and half ( restarting when it stop) this script did 1.3k essence. Not bad


No idea if it found it and the debug message was called, why it wouldent click on it, hmm,

Not sure, does sound like the inner alter is having some problems though, i'll look at it!

Slashed

2012-12-12 20:18:33

From: DannyRS
No idea if it found it and the debug message was called, why it wouldent click on it, hmm,

Not sure, does sound like the inner alter is having some problems though, i'll look at it!


Thank you! The walking is flawless tho!

mounty

2012-12-16 19:00:17

This script is great.

I did have a similar problem as mentioned before. It stopped running after about 30 mins. When i logged back in i was inside the alter with an empty inv.

Dont know if that helps. I'm running again so will inform you if the error repeats itself.

DannyRS

2012-12-16 19:03:55

From: mounty
This script is great.

I did have a similar problem as mentioned before. It stopped running after about 30 mins. When i logged back in i was inside the alter with an empty inv.

Dont know if that helps. I'm running again so will inform you if the error repeats itself.


If its not detecting some things, if you know how, grab new dtms's and insert them,

I'm going to update this soon and replace the dtms with ATPA's as i now understand them,

Was the inv completely empty? No essence or runes?

mounty

2012-12-16 19:40:02

From: DannyRS
If its not detecting some things, if you know how, grab new dtms's and insert them,

I'm going to update this soon and replace the dtms with ATPA's as i now understand them,

Was the inv completely empty? No essence or runes?


Thanks for the reply.

I understand what you mean about DTMs. I used to think they were amazing (and can be for the right script) but lately theyve been causing so many issues for me. I'm also making a move away from DTMs in my script and replacing them with ATPAs. Just cant find the time to sit down and do it currently.

Inv was completely empty when i logged back in, so must not have withdrawn anything from the bank. Dont know if you have a failsafe to check if the essence was withdrawn before the walking starts. Maybe insert a countitem to check that there is essence in the inv before walking tot he alter?

After looking through the code it might have got stuck in an infinite loop at 580 (where its looping until the runedtm is found). Cant remember now if i had to stop the script manually, if so then i imagine this is the cause of the bug. Perhaps add a counter and exit after so many seconds.

Hope some of that helps fix the issue and cant wait to see this script progress.

DannyRS

2012-12-16 19:44:30

Yea i'll add all new failsafes when i update it to ATPA's :)

Slashed

2012-12-16 20:06:45

From: DannyRS
Yea i'll add all new failsafes when i update it to ATPA's :)


Good to see this change of approach. This script has a lot of potential for low level runecrafting. ATPA are super-beast, if you do them right, the detection will be flawless! :biggrin:

Firestar2293

2012-12-17 12:37:42

One thing I noticed. It doesn't stop to refill run mode. it also has a hard time finding the bank booth for some reason. It'll be in the bank, sit for like 20-30 seconds and then finally click the bank booth. It ran for an hour last night and did 1k essence though.

mounty

2012-12-20 17:13:27

I tried it again today and its not managing to find the inner alter. Perhaps instead of DTM just use a TPA for the colour of the air sign on the alter (it appears to be slightly different form all the other stone colours so should work).

DannyRS

2012-12-20 23:57:29

From: mounty
I tried it again today and its not managing to find the inner alter. Perhaps instead of DTM just use a TPA for the colour of the air sign on the alter (it appears to be slightly different form all the other stone colours so should work).


Yea i'm going to get to replacing all DTM's with TPA's sometime this weekend, if you update the inner alter dtm with the editor in simba, should work for a quick fix

DannyRS

2012-12-21 22:49:53

UPDATED V2.1

Added some TPAs to replace DTM's for detection issues some people had

P1ng

2012-12-22 01:06:50

Nice work on updating the script with TPAs :)
just flicking through and noticed something

Procedure ClickCurrent(ToDo: Boolean);
var Y1NOBanner, Y2NOBanner: Integer;//what are these for?
Begin
Wait(9+Random(37));

if ToDo = True then
begin FastClick(True); end
else if ToDo = False then
begin FastClick(False); end;

Wait(224+Random(193));
End;

Could be drastically shortened to:
Procedure ClickCurrent(ToDo: Boolean);
Begin
Wait(9+Random(37));
FastClick(ToDo);
Wait(224+Random(193));
End;

DannyRS

2012-12-22 01:16:47

From: P1ng

//what are these for?



Coppied the function above and forgot, nothing lol :redface:

will shorten in the future, thanks for the tip ;)

Sjoe

2012-12-23 15:28:53

Troubles finding the altar after few runs (found myself in barb village clicking mines)
The rest of the script works perfectly though

DannyRS

2012-12-23 15:32:07

From: Inholtz
Troubles finding the altar after few runs (found myself in barb village clicking mines)
The rest of the script works perfectly though


those damn alters, which ones the issue, the outer one?

Sjoe

2012-12-23 16:28:28

From: DannyRS
those damn alters, which ones the issue, the outer one?


Yes the outer, cilcks the inner one perfectly.

DannyRS

2012-12-23 16:41:14

From: Inholtz
Yes the outer, cilcks the inner one perfectly.


I'll change the detection when i get a chance ;)

grad

2012-12-25 14:22:26

For me, the newer version seems to have more problems than the previous one. The script cannot do one run without getting stuck somewhere. Some examples are the top right inside the air alter and a new one I found, was at the bottom of barb village clicking on clay, but not mining since it was full of essence.

DannyRS

2012-12-25 14:35:30

From: grad
For me, the newer version seems to have more problems than the previous one. The script cannot do one run without getting stuck somewhere. Some examples are the top right inside the air alter and a new one I found, was at the bottom of barb village clicking on clay, but not mining since it was full of essence.


hmm, try an older 1, when i get time I'll re-write

elmostreet

2012-12-27 19:21:12

Can you add the use of pouches pls…

DannyRS

2012-12-27 19:52:13

From: elmostreet
Can you add the use of pouches pls…


they degrade tho :(

Sin

2012-12-27 19:59:48


procedure RefreshPouches;
begin
MouseItem(8,0);
WaitOption('5',4000);
MouseBankSlot(2,1);
MouseBankSlot(3,mouse_move);
ClickMouse2(true);
wait(randomrange(400,600));
ClickMouse2(true);
MouseBankSlot(4,1);
CloseBank;
GameTab(tab_Magic);
MouseBox(692,224,698,231,1);
if WaitColor(486,130,3911923,2,7000) then
begin
MouseBox(483,245,492,290,1);
wait(RandomRange(400,900));
MouseBox(412,112,447,159,1);
begin
repeat
wait(100);
until(FindNPCChatText('ello',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('break',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('agic',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('byss',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('needed',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('hat',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('pouches',ClickLeft));
repeat
wait(100);
until(FindNPCChatText('grading',Nothing));
MouseBox(233,463,288,471,1);
wait(1500);
if FindNPCChatText('leave',Nothing) then
begin
GameTab(tab_Inv);
OpenBankChestEdge(SRL_BANK_CW);
repeat
wait(100);
until(BankScreen);
end;
end;
end;
end;


procedure CheckForDecayed;
var
x,y,GiantDecayed,LargeDecayed:Integer;
begin
GiantDecayed := DTMFromString('mbQAAAHicY2VgYFjGyMAwC4gXA/E2IF4OxMJALAvETEAsCsQKQGxlZgRUzYSCWRkwASMWDAYAitoEaw==');
LargeDecayed := DTMFromString('mlwAAAHicY2dgYPBnYmDwAmIXIA4G4mggDgNiDyAOYGRgiABiPyTaGYgdgdjMWB+omwkrZmXADRjxYCgAAFHaBRY=');

if FindDTM(GiantDecayed,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
writeLn('SRL Naturecrafter PRO: Found decayed pouch. [G]');
RefreshPouches;
end;
if FindDTM(LargeDecayed,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
writeLn('SRL Naturecrafter PRO: Found decayed pouch [L].');
RefreshPouches;
end;

FreeDTM(GiantDecayed);
FreeDTM(LargeDecayed);
end;

Tweak it.

elmostreet

2012-12-27 20:12:37

From: DannyRS
they degrade tho :(


Maybe you can add Rune pouch repair spell or teleport to the Runecrafting Guild via the Wickedhood for free repairs.

DannyRS

2012-12-27 20:15:32

From: Shay

Tweak it.


wow sweet thanks Shay,

this script needs some updating first tho ;)

From: elmostreet
Maybe you can add Rune pouch repair spell or teleport to the Runecrafting Guild via the Wickedhood for free repairs.


maybe

elmostreet

2012-12-27 20:48:49

and please also try adding 'resting' at the musician when out of energy or use energy pots.

the merr

2012-12-28 10:44:50

after crafting, its walks to the right of the altar area and just doesn't move/clicks down the hill into the forest of the altar area.

simba log
Inv Not Full Re-Banking
Inv Not Full Re-Banking
Inv Not Full Re-Banking

DannyRS

2012-12-28 12:16:23

From: the merr
after crafting, its walks to the right of the altar area and just doesn't move/clicks down the hill into the forest of the altar area.

simba log
Inv Not Full Re-Banking
Inv Not Full Re-Banking
Inv Not Full Re-Banking


seems a lot is broke atm, need to re-write, will do soon, are ure graphics setup right?

Rush87

2012-12-30 19:36:11

Any update yet?

DannyRS

2012-12-30 19:40:03

From: Rush87
Any update yet?


Been working on it, should be finished soon, but the old one works fine for me, can you check your graphics are set up correctly?

DannyRS

2012-12-31 17:17:12

UPDATED to 2.2, try it out now

Still needs a few failsafes in places but should be better than ever? ;)

Vital you use my graphics settings and max zoom

Sjoe

2012-12-31 20:47:13

Flawless script, doing 3k at the moment. Nice coding!

DannyRS

2012-12-31 21:00:01

From: Inholtz
Flawless script, doing 3k at the moment. Nice coding!


Hopefully should be much more reliable than ever now, i like using SPS to make a decision on what to do next, as it means if you mess up somewhere then it will hopefully recover because of the continuous loop ;) and it is how a human would think

All my scripts will hopefully improve as i improve and learn new things :p

Let me know if your craft goes Ok

Sjoe

2012-12-31 21:04:44

From: DannyRS
Hopefully should be much more reliable than ever now, i like using SPS to make a decision on what to do next, as it means if you mess up somewhere then it will hopefully recover because of the continuous loop ;) and it is how a human would think

All my scripts will hopefully improve as i improve and learn new things :p

Let me know if your craft goes Ok


Banking is great, and finding the alters are going perfectly. always found it.
I'll have a proggy in few hours.

=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 2 Hours, 14 Minutes and 55 Seconds
* Experience Earned: 10490
* Experience/Hour: 4665
* Essence Used: 1988 (884/PH)
========================================
Player Idle For Too Long, Terminating ( Cause I was logged in for 6 hours already apparently)

DannyRS

2013-01-01 05:52:11

From: Inholtz

=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 2 Hours, 14 Minutes and 55 Seconds
* Experience Earned: 10490
* Experience/Hour: 4665
* Essence Used: 1988 (884/PH)
========================================
Player Idle For Too Long, Terminating ( Cause I was logged in for 6 hours already apparently)



Aww :( I think i added login support to 2.2, but forgot bank pin support, I'll have to add that,

Glad everything else seems to be ok now tho, I'll add your prog to OP ;) thanks for all the feedback aswell

Sjoe

2013-01-01 13:29:28

Thank you for your script ;)

IzzyDiddy

2013-01-02 21:40:57

Probably been posted, I think i need to zoom out. Only did 1 run when i have 90k essence in bank. And tookforever to locate the altar (i think i can fix that by zooming out all the way)

=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 3 Minutes and 52 Seconds
* Experience Earned: 140
* Experience/Hour: 2165
* Essence Used: 28 (433/PH)
========================================
Successfully executed.


EDIT: found altar very smoothly this time, now it can't find the exit portal…

DannyRS

2013-01-02 21:59:27

Can you put it in the bank and restart simba, Please read the graphics setup, it blind clicks the exit portal so please set it up right!!

IzzyDiddy

2013-01-02 23:11:08

From: DannyRS
Can you put it in the bank and restart simba, Please read the graphics setup, it blind clicks the exit portal so please set it up right!!


sorry I am new here, i have the same graphic settings but i am running SMARTv7.2… I know there is an 8.0 floating around but unsure of where to get it, i'll check the smart folder and see if i find it.

DannyRS

2013-01-02 23:34:14

From: IzzyDiddy
sorry I am new here, i have the same graphic settings but i am running SMARTv7.2… I know there is an 8.0 floating around but unsure of where to get it, i'll check the smart folder and see if i find it.


http://villavu.com/forum/showthread.php?t=87801

You have to manually update currently, check that link, but you will need basic computer skills to do it

Rush87

2013-01-03 00:32:49

Hello Danny, Have been running this since you fixed it, thank you man. Been working flawlessly, anyway to add in Pin support for banking either us or you?

thanks
-Rush

DannyRS

2013-01-03 00:47:04

From: Rush87
Hello Danny, Have been running this since you fixed it, thank you man. Been working flawlessly, anyway to add in Pin support for banking either us or you?

thanks
-Rush


I'll add Pin support soon ;) this was just a quick thing i wrote for myself originally, you can add it with two lines if you know what your doing

Rush87

2013-01-03 16:27:29

Thanks for quick reply, I added bank pin support in just now.

Lundaz

2013-01-03 19:02:07

It seems to work very well, but I have one suggestion to make.

Whenever another "pane" is opened (say, from leveling up), the script just seems to walk to the altar and return, without entering the altar. Perhaps add a check to ensure that the inventory pane is open?

Otherwise, seems very reliable. Thanks!

DannyRS

2013-01-03 19:22:52

From: Lundaz
It seems to work very well, but I have one suggestion to make.

Whenever another "pane" is opened (say, from leveling up), the script just seems to walk to the altar and return, without entering the altar. Perhaps add a check to ensure that the inventory pane is open?

Otherwise, seems very reliable. Thanks!


Will do next release, but I'm pretty sure only achievements swap tabs?

Lundaz

2013-01-03 21:32:41

From: DannyRS
Will do next release, but I'm pretty sure only achievements swap tabs?


I did notice an achievement flash by. Had no idea that was responsible though. It's been SO long since I've last played RS.

On the side note, the maximum I've been able to get your script to run was around thirty minutes. After that, the script just logs out at the outer altar after crafting the runes. I did notice, after reading through, that you've been having trouble with that area. It could be just my laggy computer, though.

DannyRS

2013-01-03 21:43:46

From: Lundaz
I did notice an achievement flash by. Had no idea that was responsible though. It's been SO long since I've last played RS.

On the side note, the maximum I've been able to get your script to run was around thirty minutes. After that, the script just logs out at the outer altar after crafting the runes. I did notice, after reading through, that you've been having trouble with that area. It could be just my laggy computer, though.


Newest version should have no issues, but if you are inactive for 3 minuites i think it logs out, does it AFK outside till logout or just randomly go out and logout?

If you can find the main loop and remove the player idletime check, see if that helps

Lundaz

2013-01-03 22:26:25

From: DannyRS
Newest version should have no issues, but if you are inactive for 3 minuites i think it logs out, does it AFK outside till logout or just randomly go out and logout?

If you can find the main loop and remove the player idletime check, see if that helps


I was just watching SMART a minute ago, and as soon as the character got out of the altar, the script logged out and terminated.

EDIT: I will try to run it again after deleting the player idletime check.

DannyRS

2013-01-03 22:31:44

From: Lundaz
I was just watching SMART a minute ago, and as soon as the character got out of the altar, the script logged out and terminated.

EDIT: I will try to run it again after deleting the player idletime check.


Turn debug to true aswell ;)

Will help me figure out whats causing it

Lundaz

2013-01-03 23:12:40

Found Portal
We Are Inside The Inner Alter
Runes In Inv, Or We Have No Ess, Leaving
Didnt Find Portal, Terminating
Successfully executed.

It seems to think it's still in the inner altar when, in actuality, it is out of the altar. The script logs out straight away after that.

Since the script seems to be able to detect its location, I took out that section entirely.

DannyRS

2013-01-03 23:45:28

From: Lundaz

It seems to think it's still in the inner altar when, in actuality, it is out of the altar. The script logs out straight away after that.

Since the script seems to be able to detect its location, I took out that section entirely.


Is it trying to calculate its position before its actually left the altar? Maybe the wait is slightly too short when you have no run energy left

Sjoe

2013-01-04 07:37:07

=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 6 Hours, 28 Minutes and 59 Seconds
* Experience Earned: 29120
* Experience/Hour: 4492
* Air Essence Made: 35280
* Air Essence/Hour: 35280 (906/PH)
* Essence Used: 5880 (906/PH)
========================================

There we go :),
Didn't have more essence :(

DannyRS

2013-01-04 13:10:33

From: Inholtz
=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 6 Hours, 28 Minutes and 59 Seconds
* Experience Earned: 29120
* Experience/Hour: 4492
* Air Essence Made: 35280
* Air Essence/Hour: 35280 (906/PH)
* Essence Used: 5880 (906/PH)
========================================

There we go :),
Didn't have more essence :(


Sweet :p added to OP, thanks for all your feedback :D really helped me fix it up

Sjoe

2013-01-11 02:47:20

=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 2 Hours, 20 Minutes and 47 Seconds
* Experience Earned: 9205
* Experience/Hour: 3924
* Air Essence Made: 10584
* Air Essence/Hour: 10584 (751/PH)
* Essence Used: 1764 (751/PH)
========================================

Small proggy :p

DannyRS

2013-01-11 09:57:39

From: Sjoekeloe
=========DannyRS-AirRunner==============
=========Version: 2.2==================
* Time Running: 2 Hours, 20 Minutes and 47 Seconds
* Experience Earned: 9205
* Experience/Hour: 3924
* Air Essence Made: 10584
* Air Essence/Hour: 10584 (751/PH)
* Essence Used: 1764 (751/PH)
========================================

Small proggy :p


Awesome ;)

You like making airs huh :p you must be ready for runespan by now? :D

Sjoe

2013-01-11 15:20:19

From: DannyRS
Awesome ;)

You like making airs huh :p you must be ready for runespan by now? :D


I had some rune essence left :)
Yeah runespan should be quicker lol. Air runes doesn't give that much xp :(

sydd131

2013-01-14 21:28:08

hey mate, Great job on the script!! i just thought i'd let you know about one little bug i've found so far, i'm trying to fix it myself but it's proving to be difficult >.> my other portal finders wont seem to work -.-. however, woke up this morning, checked my computer to find that the script had stopped, started it again to see what had happened and it was standing just to the left of the altar, determined i had runes and tried to leave the altar, however i was standing JUST out of view of the portal (i could see the edge under the eoc bar) so i tried to change the compass to e and add a find for the portal, but as of yet i've had no luck. the obvious solution, would be to start the script again, but i'm worried this may happen again so i'd personally rather fix it before i start :) but yeah i'm not nit picking, i just thought i'd let you know just incase :) great job again mate, cheers! :)

DannyRS

2013-01-14 22:50:25

Yeh portal exit is static atm because of not being able to use ACA to spot it, but i will fix it soon :p

Ian

2013-01-14 22:57:16

From: DannyRS
Yeh portal exit is static atm because of not being able to use ACA to spot it, but i will fix it soon :p


You should take a look at this, I'm curious as to how well it would work for finding the portal :)

DannyRS

2013-01-14 23:23:20

From: BMWxi
You should take a look at this, I'm curious as to how well it would work for finding the portal :)


Would work perfect until someone else came in the alter then its a crapstorm, I know how to do it now :p just a matter of taking the time to actually get to it :D

Ian

2013-01-14 23:54:11

From: DannyRS
Would work perfect until someone else came in the alter then its a crapstorm, I know how to do it now :p just a matter of taking the time to actually get to it :D


Yeah, it would be pretty hit-and-miss unless you could specify which color movement to look for. A more advanced version would make hunter scripts much easier.

DannyRS

2013-01-15 00:04:37

From: BMWxi
Yeah, it would be pretty hit-and-miss unless you could specify which color movement to look for. A more advanced version would make hunter scripts much easier.


I was considering a perfect chin catcher again but didnt know if it was worth it, make a box around the traps, check the box for what percent of the pixels in the box are the trap color, pretty sure that would give a accurate reading of the traps current state, Not to go to Off-Topic in my own thread tho :p

The Nexus

2013-03-03 05:37:04

danny please make 07 air runer

xtrapsp

2013-03-15 05:54:05

as my main acc got stolen I'm running this on my newb acc

* Time Running: 51 Seconds
* Experience Earned: 140
* Experience/Hour: 9725
* Essence Used: 28 (1945/PH)

best proggy ever

DannyRS

2013-03-15 08:45:03

From: xtrapsp
as my main acc got stolen I'm running this on my newb acc

* Time Running: 51 Seconds
* Experience Earned: 140
* Experience/Hour: 9725
* Essence Used: 28 (1945/PH)

best proggy ever


Aww no chance to get it back? Think this script has dust and cobwebs on it if I'm honest :p

etharl

2013-03-24 13:46:36

Hey. The script works fine but I have one problem. I don't know if it's my bot or the script but it logs me out every 30-37 minutes and says "Successfully executed." If I hit Play on the Smart RS screen and start the Simba bot it'll work again fine, but then it'll stop at that mark. Any suggestions?

DannyRS

2013-03-24 14:39:54

From: etharl
Hey. The script works fine but I have one problem. I don't know if it's my bot or the script but it logs me out every 30-37 minutes and says "Successfully executed." If I hit Play on the Smart RS screen and start the Simba bot it'll work again fine, but then it'll stop at that mark. Any suggestions?


Turn debug to true and see why

etharl

2013-03-24 18:00:38

From: DannyRS
Turn debug to true and see why


This is the last few messages I get:

"We Are Inside The Inner Alter
Runes In Inv, Or We Have No Ess, Leaving
Didnt Find Portal, Terminating
Successfully executed."

Happens every time from 20-35 minutes. Any fix?

DannyRS

2013-03-24 18:03:56

From: etharl
This is the last few messages I get:

"We Are Inside The Inner Alter
Runes In Inv, Or We Have No Ess, Leaving
Didnt Find Portal, Terminating
Successfully executed."

Happens every time from 20-35 minutes. Any fix?


Write your own personal alter exit code, I don't have time atm :/

Itankbots

2013-03-26 11:15:02

From: etharl
This is the last few messages I get:

"We Are Inside The Inner Alter
Runes In Inv, Or We Have No Ess, Leaving
Didnt Find Portal, Terminating
Successfully executed."

Happens every time from 20-35 minutes. Any fix?


From: DannyRS
Write your own personal alter exit code, I don't have time atm :/


I can Probably Fix it for him tomorrow if you want me to Danny. I got some time. Shouldn't be too much work.

Etharl, if you haven't been able to fix it, shoot me a PM to remind me, and i can fix it if its ok with danny.

Laimonas171

2013-05-24 04:13:45

From: DannyRS
Write your own personal alter exit code, I don't have time atm :/


You have write down that, just didn't put to right spot idk why though :D


If FindDTM(InvRunesDTM, x, y, MIX1, MIY1, MIX2, MIY2) Or (Not FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2)) Then
Begin
DeBugMessage('Runes In Inv, Or We Have No Ess, Leaving');
RightClickSpot(188, 355, 196, 366);
If (ChooseOptionMulti(['nter','orta','tal'])) Then
Begin
DeBugMessage('Found Portal');
MarkTime(IdlePlayerTimer);
Wait(2945+Random(357));
End Else
Begin
DeBugMessage('Didnt Find Portal, Terminating');
LogOutGame;
TerminateScript;
End;
Continue;
End

//And replace with this
If FindDTM(InvRunesDTM, x, y, MIX1, MIY1, MIX2, MIY2) Or (Not FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2)) Then
Begin
DeBugMessage('Runes In Inv, Or We Have No Ess, Leaving');
ClickExitPortal;
{ RightClickSpot(188, 355, 196, 366);
If (ChooseOptionMulti(['nter','orta','tal'])) Then
Begin
DeBugMessage('Found Portal');
MarkTime(IdlePlayerTimer);
Wait(2945+Random(357));
End Else
Begin
DeBugMessage('Didnt Find Portal, Terminating');
LogOutGame;
TerminateScript;
End; }
Continue;
End