Results 1 to 10 of 10

Thread: Air Runner Project Map

  1. #1
    Join Date
    Oct 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Air Runner Project Map

    Hello. I decided rather than to start hacking away with coding right away, I would make a map of how the script will work and post it here to receive criticisms and suggestions, so without further adu, here it is.

    Purpose of this script:
    convert rune essence in the first page of the bank box to air runes by using an air tiara and explorer's ring to get to the air altar, listening to the musician on the way.

    Limitations of this script:
    Talisman usage, no explorer's ring, multiple accounts, alternate routes.
    Code:
    Air runner
    	Start
    		Start... only once
    			wait 2000 + random (3000)
    			Check equip for tiara/exp ring3
    				hit equipment tab
    				search for bitmap or colors or item tiara
    				search for bitmap or colors or item ring3
    				if either false, logout and end script
    			wait 1000 + random(1000)
    		Bank
    			Open bankbox to withdraw rune essence
    				anti-random1 = random(3)
    				if anti-random1 <=2
    					find object bank booth by color array
    					mouse x,y
    					wait random (250)
    					select option use-quickly
    					find bitmap or object rune essence
    						if false logout and end script
    					mouse x,y
    					wait random (250)
    					select option withdraw all
    				if anti-random1 >2
    					find object banker by color array
    					mouse x,y
    					wait random (250)
    					select option bank
    					find bitmap or object rune essence
    						if false logout and end script
    					mouse x,y
    					wait random (250)
    					select option withdraw all
    			use equipped explorer ring
    				wait 1000 + random (1000)
    				hit equipment tab
    				find obj explorer ring
    				mouse x,y
    				wait random (250)
    				select option operate
    				wait 500 + random (250)
    				find text eleport
    				mouse x,y click
    			wait 250 + random (250)
    			fix map to point directly North
    		to alter
    			find bitmap 1
    			mouse x,y click
    			check for flag
    			wait random (250)
    			if no flag, open gate
    			find bitmap 2
    			mouse x,y click
    			find object musician
    			mouse x,y
    			select option (need confirmation)
    			find bitmap 3
    			mouse x,y click
    			... etc until air alter
    			find object air alter by color array
    			mouse x,y
    			select option (need to confirm)
    		craft runes
    			find object air alter by color array
    			mouse x,y
    			wait random (250)
    			select option (need to confirm)
    			find object (need to confirm) by color
    			mouse x,y
    			wait random (250)
    			select option (need to confirm)
    		from alter
    			find bitmap 1
    			mouse x,y click
    			find bitmal 2
    			mouse x,y click
    			... etc
    			find minimap icon bank
    			mouse x,y click
    The more comments the better I can make the script so please comment!!

    The script will continue indefinately unless your bank box has no rune essence in the first page of the bank or you have no explorer rune 3 or air tiara in the equipment page.

    I will also need help with random detection techniques if those are to be supported.

    Oh, and one more thing... if bitmap finding with maps are not good, tell me other methods of how to walk using the minimap.
    Last edited by Hairy Pomegranate; 09-12-2009 at 11:48 AM.

  2. #2
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Well to really learn, you must "hack" away. The outline looks fine... you will just need to failsafe all of it.

  3. #3
    Join Date
    Oct 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can you explain some failisafing methods to me?

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hairy Pomegranate View Post
    can you explain some failisafing methods to me?
    Making sure to not have any infinite loops is one of the most important. Don't do things like

    SCAR Code:
    repeat
      Mouse(x,y,0,0,true);
    until(BankScreen);

    Because what if the bank screen never comes up? A MarkTime is one of the most key fail safes:

    SCAR Code:
    var t: Integer;

    MarkTime(T);
    repeat
      Mouse(x,y,0,0,true);
    until(BankScreen) or (TimeFromMark(T) > 10000+random(5000));

    Things like that. Also a lot of if nots"

    SCAR Code:
    if(not(RadialWalk(...etc.)))then
      if(not(Use a DDTM to walk instead)))then Exit;



    Another important one is
    SCAR Code:
    if not LoggedIn then Exit;
    Very important I should say.



    Just try to predict possible things to go wrong. Don't be naive and assume everything is going to go according to plan in a script, because it never does.




    There are also some great tutorials on fail safes in the tutorial island section. Do a little searching there if you are still interested

    If you have any more questions, feel free to ask. You can also add me on msn if you like: runescapemacro@hotmail.com

    ~JAD

  5. #5
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    And don't use bitmaps for map walking. The colors does change a lot on the minimap

  6. #6
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why not use the Tiara? It would be alot easier and 1 more slot to use.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  7. #7
    Join Date
    Oct 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it IS tiara only

    also, if i don't use a bitmap for walking what should i use? and... what's the problem with an endless loop?
    Last edited by Hairy Pomegranate; 09-13-2009 at 02:47 PM.

  8. #8
    Join Date
    Sep 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hairy Pomegranate View Post
    it IS tiara only

    also, if i don't use a bitmap for walking what should i use? and... what's the problem with an endless loop?
    "Limitations of this script:
    Talisman usage"

    Umm..? Do you mean it does or doesn't use them? :] I think you just had a typo.

    And you can use a DDTM. TRiLeZ has a tutorial, and an endless loop is bad because it's.. endless.. if it were like.. a check for something using the mouse, it would continually check, and then get a random and either sit there or solve it and then keep doing the mouse check. :/

    Good luck! ^^

  9. #9
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Hairy Pomegranate View Post
    if i don't use a bitmap for walking what should i use? and... what's the problem with an endless loop?
    1. http://www.villavu.com/forum/showthread.php?t=19162
    2. The problem with endless loops is that it may cause the character to click in the same spot for hours and hours and hours... that would cause the character to be banned.

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

    Default

    Going to use that technique for my scripts tho.

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
  •