Thread: [Devo 2.6] Help

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 [Devo 2.6] Help 
    Emmure
    Guest
    I need help with a couple things. First off is the NPC drops, I can't get the ones i add to work, and im pretty sure i used the right format. Second. i still can't fix the walking. I do not know how to convert walking to process() or whatever you call it. Go ahead and flame away, but help is appreciated. Thanks.

    NPC Drops
    Code:
    //man
     {1, 995, 1200+ misc.random(1300), 91},
    Is this the thing causing the walking delays?
    Code:
    	public void WalkTo(int x, int y) {
    		if(EntangleDelay > 0)
    		return;
    		newWalkCmdSteps = (Math.abs((x+y)));
    		if(newWalkCmdSteps % 2 != 0)
    		newWalkCmdSteps /= 2;
    		if(++newWalkCmdSteps > walkingQueueSize) {
    			//println("Warning: WalkTo("+packetType+") command contains too many steps ("+newWalkCmdSteps+").");
    			newWalkCmdSteps = 0;
    		}
    		int firstStepX = absX;
    		int tmpFSX = firstStepX;
    		firstStepX -= mapRegionX*8;
    		for(i = 1; i < newWalkCmdSteps; i++) {
    			newWalkCmdX[i] = x;
    			newWalkCmdY[i] = y;
    			tmpNWCX[i] = newWalkCmdX[i];
    			tmpNWCY[i] = newWalkCmdY[i];
    		}
    		newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0;
    		int firstStepY = absY;
    		int tmpFSY = firstStepY;
    		firstStepY -= mapRegionY*8;
    		newWalkCmdIsRunning = ((inStream.readSignedByteC() == 1));
    		for(i = 0; i < newWalkCmdSteps; i++) {
    			newWalkCmdX[i] += firstStepX;
    			newWalkCmdY[i] += firstStepY;
    		}
    	}
    Reply With Quote  
     

  2. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Look into another source that has walking in process and then add it and convert.
    Reply With Quote  
     

  3. #3  
    Emmure
    Guest
    i dont understand what this "Process" and "converting" is though. That's my whole problem xD
    Reply With Quote  
     

  4. #4  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Then google converting.

    Process is either a boolean method or a void method, in other words; a method.
    Everything in the method runs every 500ms.
    Reply With Quote  
     

  5. #5  
    Emmure
    Guest
    Would this happen to be it?
    Code:
    	public void WalkTo(int x, int y) {
    		if(EntangleDelay > 0)
    		return;
    		newWalkCmdSteps = (Math.abs((x+y)));
    		if(newWalkCmdSteps % 2 != 0)
    		newWalkCmdSteps /= 2;
    		if(++newWalkCmdSteps > walkingQueueSize) {
    			//println("Warning: WalkTo("+packetType+") command contains too many steps ("+newWalkCmdSteps+").");
    			newWalkCmdSteps = 0;
    		}
    		int firstStepX = absX;
    		int tmpFSX = firstStepX;
    		firstStepX -= mapRegionX*8;
    		for(i = 1; i < newWalkCmdSteps; i++) {
    			newWalkCmdX[i] = x;
    			newWalkCmdY[i] = y;
    			tmpNWCX[i] = newWalkCmdX[i];
    			tmpNWCY[i] = newWalkCmdY[i];
    		}
    		newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0;
    		int firstStepY = absY;
    		int tmpFSY = firstStepY;
    		firstStepY -= mapRegionY*8;
    		newWalkCmdIsRunning = ((inStream.readSignedByteC() == 1));
    		for(i = 0; i < newWalkCmdSteps; i++) {
    			newWalkCmdX[i] += firstStepX;
    			newWalkCmdY[i] += firstStepY;
    		}
    	}
    Reply With Quote  
     

  6. #6  
    Member [Devo 2.6] Help Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by L M A O View Post
    Then google converting.

    Process is either a boolean method or a void method, in other words; a method.
    Everything in the method runs every 500ms.
    void = method...
    boolean = statement...

    no such thing as a boolean method. a boolean is a statement as it returns true or false.

    the process is a void/method.
    ILY Stewie.
    Reply With Quote  
     

  7. #7  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by \-Deemed-/ View Post
    void = method...
    boolean = statement...

    no such thing as a boolean method. a boolean is a statement as it returns true or false.

    the process is a void/method.
    Code:
    	public int youFail = 0;
    	public boolean aBooleanMethodWDF() {
    		if((youFail == 0)) {
    			youFail++;
    		} else if ((youFail > 0)) {
    			return true;
    		}
    		return false;
    	}
    Code:
    	if((!youFail)) {
    		youFail = true;
    	}
    Code:
    	public boolean whoFails() {
    		return Cory;
    	}
    Just examples, calm down.



    Good job on reading Java Tutorials, sadly you missed out abit.
    Reply With Quote  
     

  8. #8  
    Emmure
    Guest
    so what would i do to convert that void walking? (at top of post)
    Reply With Quote  
     

  9. #9  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Nothing wrong with the method mate, it's in event instead of process. Add it to process...
    Reply With Quote  
     

  10. #10  
    Member [Devo 2.6] Help Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by L M A O View Post
    public boolean amg() {

    }

    public boolean amg = false;

    Good job on reading Java Tutorials, sadly you missed out abit.
    i dont read java turorials...
    public boolean amg(){
    }

    is still a statement as the statement will be returned true or false in the statement...
    ILY Stewie.
    Reply With Quote  
     

Page 1 of 2 12 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
  •