Thread: Cleaning things out of process[PI]

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39
  1. #1 Cleaning things out of process[PI] 
    Registered Member

    Join Date
    Mar 2011
    Posts
    1,227
    Thanks given
    245
    Thanks received
    475
    Rep Power
    294
    Client.java

    First copy these:
    Code:
    	if(inWild()) {
    		int modY = absY > 6400 ?  absY - 6400 : absY;
    		wildLevel = (((modY - 3520) / 8) + 1);
    		getPA().walkableInterface(197);
    		if(Config.SINGLE_AND_MULTI_ZONES) {
    			if(inMulti()) {
    				getPA().sendFrame126("@[email protected]: "+wildLevel, 199);
    			} else {
    				getPA().sendFrame126("@[email protected]: "+wildLevel, 199);
    			} etc..
    from the process and create a new void named:
    Code:
    updateWalkEntities()
    Paste the code you copied in it.
    Then remove the code from the process.

    Player.java

    Add this:
    Code:
    public abstract void updateWalkEntities();
    But try not to add it inside another method
    Find these:
    Code:
    		currentX += Misc.directionDeltaX[dir];
    		currentY += Misc.directionDeltaY[dir];
    		absX += Misc.directionDeltaX[dir];
    		absY += Misc.directionDeltaY[dir];
    Add this under it:
    Code:
    		updateWalkEntities();
    Find this:
    Code:
    			currentX = teleportToX - 8*mapRegionX;
    				currentY = teleportToY - 8*mapRegionY;
    				absX = teleportToX;
    				absY = teleportToY;
    				resetWalkingQueue();
    				
    				teleportToX = teleportToY = -1;
    				didTeleport = true;
    Add this under it:
    Code:
    updateWalkEntities();
    PlayerAssitant.java
    in
    Code:
    requestUpdates()
    add on the last line:
    Code:
    c.updateWalkEntities();
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


  2. #2  
    Donator


    Join Date
    Mar 2011
    Posts
    2,362
    Thanks given
    1,193
    Thanks received
    824
    Rep Power
    856
    That's one of various things you have to do.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,535
    Thanks given
    1,072
    Thanks received
    3,534
    Rep Power
    4752
    you only need to send the message once per walk and abstraction is hardly needed
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member I'mAGeek's Avatar
    Join Date
    Jan 2012
    Age
    26
    Posts
    504
    Thanks given
    146
    Thanks received
    44
    Rep Power
    16
    can't you just call the method in walking class?

    Goodjob too
    Reply With Quote  
     

  7. #5  
    Registered Member

    Join Date
    Mar 2011
    Posts
    1,227
    Thanks given
    245
    Thanks received
    475
    Rep Power
    294
    Quote Originally Posted by Harlan View Post
    you only need to send the message once per walk and abstraction is hardly needed
    I sent it on teleporting, and walking. I know it isn't needed, but you do need to send it once per walk.

    And no it cannot be in Walking.java
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Registered Member
    Join Date
    Feb 2012
    Posts
    103
    Thanks given
    8
    Thanks received
    3
    Rep Power
    6
    Good job, Thanks for this.
    Reply With Quote  
     

  10. #7  
    Always 1 step In front Of the Rest!

    lol ftw lol's Avatar
    Join Date
    Nov 2008
    Age
    30
    Posts
    597
    Thanks given
    68
    Thanks received
    35
    Rep Power
    91
    good job thank for this
    I Always do my best to make us progress
    Dont Ask Yes I'm French That Why I'm Not The Best In English!
    RuneScape is copyright © Jagex Ltd 1999-2014. RuneScape and Jagex are registered trademarks of Jagex Ltd.
    Orion is not affiliated with Jagex Ltd in any way and exists solely for educational purposes.

    Reply With Quote  
     

  11. #8  
    Registered Member
    Join Date
    Jun 2012
    Posts
    103
    Thanks given
    17
    Thanks received
    28
    Rep Power
    17
    I'll try this out! Thanks
    Reply With Quote  
     

  12. #9  
    Registered Member

    Join Date
    Mar 2011
    Posts
    1,227
    Thanks given
    245
    Thanks received
    475
    Rep Power
    294
    No problem guys.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  13. #10  
    Banned

    Join Date
    Jul 2011
    Age
    27
    Posts
    748
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    this is such a fresh way of getting people to do there snips might steal this idea, gj dude
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 56
    Last Post: 09-18-2016, 07:19 AM
  2. Cleaning out process()
    By odd17 in forum Help
    Replies: 7
    Last Post: 08-04-2010, 08:50 PM
  3. Cleaning out Process
    By Enjoi in forum Help
    Replies: 14
    Last Post: 05-19-2009, 08:35 AM
  4. Replies: 7
    Last Post: 05-05-2009, 11:01 PM
  5. STOP PUTTING THINGS UNDER boolean process()
    By Jazz in forum Tutorials
    Replies: 10
    Last Post: 10-01-2007, 03:26 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •