Thread: Making Anims not loop continiously!

Results 1 to 6 of 6
  1. #1 Making Anims not loop continiously! 
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Description: This was mainly made because I started on a blank source and I didnt know the code to make animations not continuously loop, so I made my own, Note Leave your flaming outside this topic!!!!

    Difficulty: 1/10
    Assumed Knowledge: Where to find boolean/void process, you have emotes looping emotes on your server

    Tested Server: RuneFusion (will work on any server with looping emotes)

    Files/Classes Modified: client.java

    Procedure
    Step 1: Add/Replace this void

    Code:
    public void animation(int i)
    	{
    	if(emoteTimer <= 0) {
    	pEmote = i;
    	emoteTimer = 8;
    	}
    	}
    Step 2: Add/Replace this code
    Code:
    	public void resetAnimation() {
    		pEmote = playerSE;
    		updateRequired = true;
    		appearanceUpdateRequired = true;
    	}
    Step 3: FInallly add this is boolean/void process
    Code:
    	emoteTimer -= 0.5;
    
    	if(emoteTimer <= 0) {
    	resetAnimation();
    	}

    Step 4 Declare this int

    Code:
    public int emoteTimer = 0;
    Wasn't that simple??

    Credits: 100% Me
     

  2. #2  
    Professional Upsetter


    Join Date
    Jul 2006
    Posts
    5,392
    Thanks given
    163
    Thanks received
    447
    Rep Power
    2040
    Looks like inverse of what i did to try fix Animations on RuneJava, so i made a tutorial to undo them.. Hahaha.

    Forgot to Declare:

    public int emoteTimer = 0;

    Note: This has no effect what so ever on my server.
    Ex-super moderator of Rune-Server.org and RSBot.org
     

  3. #3  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    Wow, if you actually new the correct update mask of player updating you could do it once, I have nothing like that under my process :\

    [Only registered and activated users can see links. ]



     

  4. #4  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Quote Originally Posted by Scu11 View Post
    Wow, if you actually new the correct update mask of player updating you could do it once, I have nothing like that under my process :\
    true mts
    [Only registered and activated users can see links. ]
     

  5. #5  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Well... am a noobish coder so i wouldnt know about the update masks, i still dont know what they are =S could someone explain please? Anyway you dont have to use my way, but i like my way its easy and i got the emote time perfect now =P and also i have never worked off a blank source and the reason i started blank source is: as well as it being totally mine from scratch (muahhahahah) i cant also learn stuff as i go along
     

  6. #6  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    27
    Posts
    1,358
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    good 'n' easy tut but when you got more stuff ur server will lagg of unwanted code but learn how to do update masks 'n' stuff to too it the propper way open player.java it handles all the update masks for players. 'n' npc.java for the npc update masks
    Visit Rune Miracle [Only registered and activated users can see links. ]
     


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
  •