SRL Archive - First Scripts

Abu's Air Krafter


Abu

2012-03-18 15:10:39

This Page will not be updated.
Version 2 can be found here: http://villavu.com/forum/showthread.php?t=78041
It is a different script altogether with more features and it's bigger, badder and faster than ever!






Requirements
- Required Graphics Settings
- ObjDTM
- Rune Essence in First Bank Slot
- Air Tiara already worn


Starting Locations
- Varrock West Bank [Preferred]
- Mysterious Ruins
- Air Altar


Features
- Simple Powerful Antiban
- Fast and Reliable
- Accurate Walking
- Rests at Bank after every load


Upcoming Features for Version 2
- Adding Proggies
- Adding Multiplayer



Version 1.2
- Cleaner Script (for me) - Thanks to footballjds
- More Accurate Walking
- Added Minibreak - a procedure which takes small breaks ranging from 15 seconds to over 1 minute approx every 10 cycles, very human-like


Version 1.1
- Revised Antiban
- Better at finding Ruins
- Larger Altar Area
- More accurate Bank Area


Tips
- Using Rune Crafting Gloves won't affect script
- Babysit the script for the first few loads
- Try to obtain Maximum FPS for smooth running of the script



As this is my first script all help and feedback is greatly appreciated.

krasniy

2012-03-18 18:56:55

Tested this a couple runs…no bugs popped up during that time… Gratz on your first script attempt…

Abu

2012-03-18 19:24:30

Phew! Thats a relief because my SMART is really laggy so I can't even test my own script properly lol

rice

2012-03-18 20:25:06

nice first script man. I tried it for a little bit nothing wrong with it while i used it. Keep it up

Abu

2012-03-19 03:55:21

Thanks man, I appreciate the feedback.

Could any SRL members take a look at my script and see how I could integrate a proggy?

John

2012-03-19 05:59:58

From: abu_jwka
Thanks man, I appreciate the feedback.

Could any SRL members take a look at my script and see how I could integrate a proggy?

It looks next to a perfect script..
Well Done!

zamserv

2012-03-19 06:34:20

thanks, gonna try it now.

bolshak25

2012-03-19 08:25:14

From: abu_jwka
Thanks man, I appreciate the feedback.

Could any SRL members take a look at my script and see how I could integrate a proggy?


well if you look at my runecrafter you could see how i do it, and do something similar.

otherwise ill look at this script when im home later

Abu

2012-03-19 12:22:43

From: bolshak25
well if you look at my runecrafter you could see how i do it, and do something similar.

otherwise ill look at this script when im home later


I couldv'e done that but I want to actually learn how to make a proggy and I don't understand some of the functions you've used….

Maybe you could write up a tutorial? There are none in the forums… I'd rep you three times over :garfield:

Kyle Undefined

2012-03-19 12:30:21

Very clean script, especially for a first one. Keep up the good work!

footballjds

2012-03-19 12:32:53

abu, quick look through, noticed one thing. in your walking there is no need to use ObjDTM_Find and then ObjDTM_Walk. ObjDTM_Walk will ONLY walk after it checks if it's found. So basically you're telling it this:
"if find DTM then if find DTM then WalkToDTM"

So what am i saying?
changing this:

// -- Walking to Ruins and Walking to Bank --\\

procedure WalkToRuins;
var
cx, cy: Integer;
begin
Antiban;
if ObjDTM_Find('57:112:6:10:7:39:75:10:7:39:66:10:7:39:57:10:7:88:53:10:7:88:44:10:7:39:97:4:40:104:42:119:95:118:95:104', cx, cy, True) then
begin
ObjDTM_Walk('57:112:6:10:7:39:75:10:7:39:66:10:7:39:57:10:7:88:53:10:7:88:44:10:7:39:97:4:40:104:42:119:95:118:95:104', 0, 100, 80, True);
end;
if ObjDTM_Find('37:95:5:10:7:54:70:10:7:54:58:1:7:34:76:10:7:98:32:10:7:99:24:5:43:78:11:78:15:105:56:104:66:80', cx, cy, True) then
begin
ObjDTM_Walk('37:95:5:10:7:54:70:10:7:54:58:1:7:34:76:10:7:98:32:10:7:99:24:5:43:78:11:78:15:105:56:104:66:80', 0, 100, 80, True);
end;
if ObjDTM_Find('34:103:5:1:7:78:63:1:7:47:102:10:7:97:59:10:7:97:47:10:7:97:40:4:18:90:23:124:57:108:57:78', cx, cy, True) then
begin
ObjDTM_Walk('34:103:5:1:7:78:63:1:7:47:102:10:7:97:59:10:7:97:47:10:7:97:40:4:18:90:23:124:57:108:57:78', 0, 100, 80, True);
end;
if ObjDTM_Find('26:107:4:1:7:70:99:1:7:94:82:1:7:58:111:1:7:106:103:5:13:91:19:122:47:122:54:106:43:80', cx, cy, True) then
begin
ObjDTM_Walk('26:107:4:1:7:70:99:1:7:94:82:1:7:58:111:1:7:106:103:5:13:91:19:122:47:122:54:106:43:80', 0, 100, 80, True);
end;
if ObjDTM_Find('40:116:5:1:7:66:63:1:7:46:67:1:7:42:99:1:7:114:83:5:7:57:46:5:24:100:27:132:56:132:64:99:50:81', cx, cy, True) then
begin
ObjDTM_Walk('40:116:5:1:7:66:63:1:7:46:67:1:7:42:99:1:7:114:83:5:7:57:46:5:24:100:27:132:56:132:64:99:50:81', 0, 100, 80, True);
end;
repeat
if ObjDTM_Find('80:80:2:1:7:91:103:3:7:101:83:4:74:77:73:98:92:97:91:77', cx, cy, True) then
begin
ObjDTM_Walk('80:80:2:1:7:91:103:3:7:101:83:4:74:77:73:98:92:97:91:77', 0, 100, 80, True);
end;
until IsAtRuins;
end;
to this:

procedure WalkToRuins;
begin
Antiban;
ObjDTM_Walk('57:112:6:10:7:39:75:10:7:39:66:10:7:39:57:10:7:88:53:10:7:88:44:10:7:39:97:4:40:104:42:119:95:118:95:104', 0, 100, 80, True);
ObjDTM_Walk('37:95:5:10:7:54:70:10:7:54:58:1:7:34:76:10:7:98:32:10:7:99:24:5:43:78:11:78:15:105:56:104:66:80', 0, 100, 80, True);
ObjDTM_Walk('34:103:5:1:7:78:63:1:7:47:102:10:7:97:59:10:7:97:47:10:7:97:40:4:18:90:23:124:57:108:57:78', 0, 100, 80, True);
ObjDTM_Walk('26:107:4:1:7:70:99:1:7:94:82:1:7:58:111:1:7:106:103:5:13:91:19:122:47:122:54:106:43:80', 0, 100, 80, True);
ObjDTM_Walk('40:116:5:1:7:66:63:1:7:46:67:1:7:42:99:1:7:114:83:5:7:57:46:5:24:100:27:132:56:132:64:99:50:81', 0, 100, 80, True);
repeat
ObjDTM_Walk('80:80:2:1:7:91:103:3:7:101:83:4:74:77:73:98:92:97:91:77', 0, 100, 80, True);
until IsAtRuins;
end;

Would be the EXACT SAME.

Abu

2012-03-19 12:56:46

Wow thanks man! Will definitely be cleaning up my script in the next update… :)

footballjds

2012-03-19 14:19:16

From: abu_jwka
Wow thanks man! Will definitely be cleaning up my script in the next update… :)


i would failsafe the walking as well though, because if it fails at a certain objDTM you'll never know which. :P

Abu

2012-03-19 14:49:27

From: footballjds
i would failsafe the walking as well though, because if it fails at a certain objDTM you'll never know which. :P


For example? Repeat each ObjDTM until true?

footballjds

2012-03-19 15:16:47

From: abu_jwka
For example? Repeat each ObjDTM until true?


and use a timer that stops trying after x seconds/minutes

Abu

2012-03-19 15:21:02

From: footballjds
and use a timer that stops trying after x seconds/minutes


and then what? Goes back to the previous ObjDTM and start over?

Please bear in mind this is still my first script so I'm no expert :redface:


EDIT: Nevermind, I added half a second gaps between each path so the OnjDTM's are extremely accurate now as they don't rush to find the next path. No need for fail-safes.

Abu

2012-03-19 19:27:51

–BUMPITY BUMP–

Version 1 Update 2 is out!

Check first thread for all updates. :)

Er1k

2012-03-19 21:10:34

Do you get the exception out of range if the ODTM path completely fails? I got that when I made my own ;)

Abu

2012-03-20 03:12:49

No, but it shouldn't fail now anyway