[RSBOT] [HELP] walkPathMM doesn't work right?

Discussion in 'RuneScape 3 Cheating' started by basfreak, Feb 18, 2009.

[RSBOT] [HELP] walkPathMM doesn't work right?
  1. Unread #1 - Feb 18, 2009 at 4:13 AM
  2. basfreak
    Joined:
    Apr 26, 2007
    Posts:
    14
    Referrals:
    0
    Sythe Gold:
    0

    basfreak Newcomer

    [RSBOT] [HELP] walkPathMM doesn't work right?

    Hi,

    I'm using:
    Code:
    RSTile[] toField = new RSTile[] {
    	new RSTile(3105, 3251), new RSTile(3118, 3258), 
    	new RSTile(3133, 3265),	new RSTile(3134, 3281), 
    	new RSTile(3145, 3292)
    };
    To declare my path.
    And:
    Code:
    public final RSTile[] toBank = reversePath(toField);
    To reverse it. It walks the path (toField) nicely but when he's done on the field and have to return this happens:
    [​IMG]
    The red dot is where RSBot clicks
    The black dot is my player
    The blue dot is a gate.
    This works but what if the gate is closed? It will just stay in the corner where I am now.
    While, new RSTile(3145, 3292) is right before the gate. (Last tile of toField)
    So why does it click there?
    Walk code:
    Code:
    				if(distanceTo(gateObj) < 5) {
    						walkTileMM(gateObj.getLocation());
    						int rotate = random(170, 190);
    						setCameraRotation(rotate);
    						atObject(gateObj, "Open");
                    }
    
    				walkPathMM(randomizePath(toBank, 2, 2), 20);
    
    				if(distanceTo(toBank[toBank.length - 1]) < 4) {
    					log("Bank detected!");
    					state = 0;
    					return random(1231,4332);
    				}
    
    				return random(0, 2000);
     
< RSbot FlaxSPinner, Help! | Need Help Scripting For RSBot >

Users viewing this thread
1 guest


 
 
Adblock breaks this site