Thread: Perfect Wildy Ditch Jumping.

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1 Perfect Wildy Ditch Jumping. 
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    Ok find in your ObjectOption1 the case for wildy jumping if you dont have it just add this beneath the switch, if you do, replace it:

    Code:
             case 23271:
                p.jumpDelay = 5;
                if (p.absY > p.clickY) {
    				p.jumpUpdateReq = true;
                    p.reqWalkQueueBack(p.absX, p.clickY - 1);
                }
                if (p.absY < p.clickY) {
    				p.jumpUpdateReq = false;
                    p.reqWalkQueue(p.absX, p.clickY + 2);
                }
                break;
    Then open Player.java and add this to your process:

    Code:
    	    if (jumpDelay > 0) {
                jumpDelay--;
                jumpUpdateReq = true;
            }
    		
            if (jumpUpdateReq) {
                if (jumpDelay >= 1) {
                    runEmote = walkEmote = 2750;
                    updateReq = appearanceUpdateReq = true;
                }		
                if (jumpDelay <= 0) {
                    playerWeapon.setWeapon();
                    jumpDelay = 0;
                    updateReq = appearanceUpdateReq = true;
                }
                jumpUpdateReq = false;
            }
    Then add these 2 voids:

    Code:
        public void reqWalkQueue(int x, int y) {
            int firstX = x - (mapRegionX - 6) * 8;
            int firstY = y - (mapRegionY - 6) * 8;
            Engine.playerMovement.resetWalkingQueue(this);
            Engine.playerMovement.addStepToWalkingQueue(firstX, firstY, this);
    		Engine.playerMovement.addStepToWalkingQueue(firstX, firstY+1, this);
    		Engine.playerMovement.addStepToWalkingQueue(firstX, firstY+2, this);
        }	
    	
        public void reqWalkQueueBack(int x, int y) {
            int firstX = x - (mapRegionX - 6) * 8;
            int firstY = y - (mapRegionY - 6) * 8;
            Engine.playerMovement.resetWalkingQueue(this);
            Engine.playerMovement.addStepToWalkingQueue(firstX, firstY, this);
    		Engine.playerMovement.addStepToWalkingQueue(firstX, firstY-1, this);
    		Engine.playerMovement.addStepToWalkingQueue(firstX, firstY-2, this);
        }
    Also if you do or do not have these replace/add them:

    Code:
        /**
         * Wilderness ditch jump data.
         */
        public int jumpDelay = 0;
        public boolean jumpUpdateReq = false;
    The problem with the persons code was that the process was halting the walking when it updated the player so I fixed that by calling each step one at a time.

    Credits 90% to the person that made the base, 10% to me for fixing it.

    Edit: It may not look correct on the first go but all other times it does, dont ask me why.

    Edit: Edit: Heres the fix for not jumping back:

    Code:
            case 23271:
                return 2;
    Add that beneath the switch beneath the private int objectSize
     

  2. #2  
    Registered Member
    Xxl33tk1ll3r28x's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    586
    Thanks given
    0
    Thanks received
    1
    Rep Power
    139
    good job, Rep. I'm going to add.

    edit:got this 1 error.

    Code:
       .\palidino76\rs2\io\packets\ObjectOption1.java:58: cannot find symbol
    symbol  : method reqWalkQueueBack(int,int)
    location: class palidino76.rs2.players.Player
                    p.reqWalkQueueBack(p.absX, p.clickY - 1);
                     ^
    1 error
    Last edited by Xxl33tk1ll3r28x; 09-19-2008 at 03:11 PM. Reason: Double posting is not allowed!


    My Gamertag is Xxl33tk1ll3r28x
     

  3. #3  
    Registered Member

    Join Date
    Jul 2006
    Age
    30
    Posts
    1,247
    Thanks given
    0
    Thanks received
    5
    Rep Power
    190
    thanks my one was little bit shitty rep++
    just yoricka...
     

  4. #4  
    Registered Member
    Join Date
    Jun 2008
    Posts
    66
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    idk wat the prob is but when i added he jumps perfect but when i run after he jumps he does the emote again
     

  5. #5  
    Member
    Join Date
    Sep 2008
    Age
    30
    Posts
    437
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    guys here's the real emote for wild ditch ID 6132. Hope you like it!

    NVM! i dont quit
     

  6. #6  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    Quote Originally Posted by Gamepapa View Post
    guys here's the real emote for wild ditch ID 6132. Hope you like it!
    That was the old version, I think 474.

    That error you didnt add it all man at top.

    And when running he is supposed to stop i'll post a re do later.
     

  7. #7  
    Donator

    Plox's Avatar
    Join Date
    Sep 2008
    Age
    30
    Posts
    234
    Thanks given
    1
    Thanks received
    2
    Rep Power
    205
    ty mine was n00b
    [мя. вιт¢н] fвι; fємαlє вσdу ιиѕρє¢тσя
    My smexy Sig ; roses r red some condums r blue stds r contagius so watch who u screw
     

  8. #8  
    Donator


    Join Date
    Sep 2007
    Age
    27
    Posts
    2,426
    Thanks given
    125
    Thanks received
    505
    Rep Power
    386
    omg u r MY SAVIOR!
    Attached image
     

  9. #9  
    Member
    Join Date
    Sep 2008
    Age
    30
    Posts
    437
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by getBytes View Post
    That was the old version, I think 474.

    That error you didnt add it all man at top.

    And when running he is supposed to stop i'll post a re do later.
    hm its for the 508 servers i made it on my server and it works fine for me..
    with jumpdelay=5...

    NVM! i dont quit
     

  10. #10  
    Human

    Only's Avatar
    Join Date
    Aug 2008
    Posts
    1,108
    Thanks given
    1
    Thanks received
    18
    Rep Power
    116
    Hey, i got 1 error, its pretty weird tho as i should of added them in the right places, if i havent misplaced one of em :O anyways, heres error. Help would be nice, and also nice tut

    Code:
    .\palidino76\rs2\io\packets\itemOnPlayers.java:35: cannot find symbol
    symbol : variable maxPlayers
    location: class palidino76.rs2.Engine
                                        if(usedItem == 962 && usedOn <= Engine.maxPlayers)
    1 error
    Thanks again. (i must have added in wrong process or void.
     

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

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