Thread: Animation command not working - PI

Results 1 to 2 of 2
  1. #1 Animation command not working - PI 
    Registered Member Sura's Avatar
    Join Date
    Dec 2012
    Posts
    81
    Thanks given
    0
    Thanks received
    7
    Rep Power
    11
    Hello, I am having an issue with this entity based animation system. I'm pretty new to this. This Source uses a flag system. Here's the issue when I try to do any kind of animation nothing happens, it has nothing to do with the client because i've used other sources on it and they worked perfect. I will rep++ here are snippet of code, please ask if you require anything else. I've literally spent five + hours trying to fix this and I can't. I've tried everything.... this is the game with my GFX command. I'm hoping someone has already encountered this issue when they tried using an entity based animation system. Thanks guys!

    http://www.rune-server.org/runescape...wing-more.html

    Server\src\org\rs2\network\packets\impl\Commands.j ava

    Code:
    } else if (playerCommand.startsWith("anim")) {
    				String[] args = playerCommand.split(" ");
    				c.startAnimation(Integer.parseInt(args[1]));
    				PlayerAssistant.requestUpdates(c);
    			}
    Server\src\org\rs2\entity\player\Player.java

    Code:
    	/**
    	 *Animations
    	 **/
    	public void startAnimation(int animId) {
    		//if (wearing2h() && animId == 829)
    		//return;
    		if((isDead() || playerLevel[3] <= 0) && animId != 0x900) {
    			return;
    		}
    		animationRequest = animId;
    		animationWaitCycles = 0;
    		updateRequired = true;
    	}
    
    	public void startAnimation(int animId, int time) {
    		animationRequest = animId;
    		animationWaitCycles = time;
    		updateRequired = true;
    	}
    
    	public void appendAnimationRequest(Stream str) {
    		synchronized(this) {
    			str.writeWordBigEndian((animationRequest==-1) ? 65535 : animationRequest);
    			str.writeByteC(animationWaitCycles);
    		}
    	}
    Server\src\org\rs2\entity\player\PlayerAssistant.j ava

    Code:
    	/**
    	 * Request updates
    	 */
    	public static void requestUpdates(Player p) {
    		p.updateRequired = true;
    		p.getUpdateFlag().flag(Flag.APPEARANCE);
    	}
    Side note, I just can't understand how this even calls the animation. Please explain it to me, what i see is information just getting set to variables how does any kind of function get called to tell the character to do a animation.

    public void startAnimation(int animId) {
    //if (wearing2h() && animId == 829)
    //return;
    if((isDead() || playerLevel[3] <= 0) && animId != 0x900) {
    return;
    }
    animationRequest = animId;
    animationWaitCycles = 0;
    updateRequired = true;
    }
    Reply With Quote  
     

  2. #2  
    Banned Animation command not working - PI Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    can you post your update blocks please
    Reply With Quote  
     


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. ::master command not working (pi)
    By lmfaojasonn in forum Help
    Replies: 5
    Last Post: 06-30-2014, 10:34 PM
  2. Commands not working? PI
    By sonscape in forum Help
    Replies: 14
    Last Post: 11-26-2012, 09:11 PM
  3. [PI] Set Level Command not working..
    By Matt in forum Help
    Replies: 1
    Last Post: 04-20-2011, 01:27 AM
  4. [pi]balmung anims not working[pi]
    By Phoebe in forum Help
    Replies: 3
    Last Post: 04-06-2011, 06:34 AM
  5. [PI] Commands Not Working
    By Q Destiny Q in forum Help
    Replies: 1
    Last Post: 08-27-2010, 07:21 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •