Results 1 to 19 of 19

Thread: Abu's Air Krafter

  1. #1
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default Abu's Air Krafter

    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.
    Last edited by Abu; 03-21-2012 at 09:04 PM.

  2. #2
    Join Date
    Nov 2011
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

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

  3. #3
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

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

  4. #4
    Join Date
    Aug 2006
    Location
    USA
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  5. #5
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Thanks man, I appreciate the feedback.

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

  6. #6
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    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!

  7. #7
    Join Date
    Aug 2006
    Posts
    338
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  8. #8
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    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

  9. #9
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by bolshak25 View Post
    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

  10. #10
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Very clean script, especially for a first one. Keep up the good work!
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  11. #11
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    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:

    Simba Code:
    // -- 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:

    Simba Code:
    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.

  12. #12
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Wow thanks man! Will definitely be cleaning up my script in the next update...

  13. #13
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    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

  14. #14
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    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?
    Last edited by Abu; 03-19-2012 at 07:02 PM.

  15. #15
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by abu_jwka View Post
    For example? Repeat each ObjDTM until true?
    and use a timer that stops trying after x seconds/minutes

  16. #16
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    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


    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.
    Last edited by Abu; 03-19-2012 at 10:58 PM.

  17. #17
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    --BUMPITY BUMP--

    Version 1 Update 2 is out!

    Check first thread for all updates.

  18. #18
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do you get the exception out of range if the ODTM path completely fails? I got that when I made my own
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  19. #19
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    No, but it shouldn't fail now anyway

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •