Thread: [PI]Animation help[REP]

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI]Animation help[REP] 
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Okay so I'm trying to add the animation for d claws because right now it's ****ed up. So heres the code I got for the anim..
    Code:
    if(j == 6000){
    					int file = 1919;
    					if(FrameStart[file] < 1)
    						Class36.methodCustomAnimations(false, file);
    					int[] frames = {75,75,62,62,93,93,93,82,82,57,57,71,71,66,66,66,61,92,73,73,65,65,89,89,70,70,81,81,67,67,67,84,59,63,63,99,99,78,69,69,96,96,74,74,74,79,90,90,94,94,58,0};
    					anims[j].anInt352 = frames.length-1;
    					anims[j].anIntArray353 = new int[frames.length-1];
    					anims[j].anIntArray354 = new int[frames.length-1];
    					anims[j].anIntArray355 = new int[frames.length-1];
    						for(int i2 = 0; i2 < frames.length-1; i2++){
    							anims[j].anIntArray353[i2] = frames[i2]+FrameStart[file];
    							anims[j].anIntArray354[i2] = -1;
    							anims[j].anIntArray355[i2] = 2;
    						}
    				}
    But I don't know where to add it. I think it's animation.java, but where at in animation.java? I'll post my animation code because it's short so If anyone could tell me where to add it i'd rep and thank. Also I'll probably get cannot find symbol errors so if anyone could tell me what to add to avoid those yeah.. um.. yeah.
    Code:
    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) 
    
    public final class Animation {
    
        public static void unpackConfig(NamedArchive archive)
        {
            Stream stream = new Stream(archive.getDataForName("seq.dat"));
            int length = stream.readUnsignedWord();
            if(anims == null)
                anims = new Animation[length];
            for(int j = 0; j < length; j++)
            {
                if(anims[j] == null)
                    anims[j] = new Animation();
                anims[j].readValues(stream);
            }
        }
    
        public int method258(int i)
        {
            int j = anIntArray355[i];
            if(j == 0)
            {
                Class36 class36 = Class36.method531(anIntArray353[i]);
                if(class36 != null)
                    j = anIntArray355[i] = class36.anInt636;
            }
            if(j == 0)
                j = 1;
            return j;
        }
    
        private void readValues(Stream stream)
        {
            do
            {
                int i = stream.readUnsignedByte();
                if(i == 0)
                    break;
                if(i == 1)
                {
                    anInt352 = stream.readUnsignedWord();
                    anIntArray353 = new int[anInt352];
                    anIntArray354 = new int[anInt352];
                    anIntArray355 = new int[anInt352];
                    for(int j = 0; j < anInt352; j++)
                    {
    		    anIntArray355[j] = stream.readUnsignedWord();
    		    anIntArray354[j] = -1;
    		}
    		for (int j = 0; j < anInt352; j++)
    			anIntArray353[j] = stream.readUnsignedWord();
    		for (int i1 = 0; i1 < anInt352; i1++)
    		{
    			anIntArray353[i1] = (stream.readUnsignedWord() << 16) + anIntArray353[i1];
                    }
                } else
                if(i == 2)
                    anInt356 = stream.readUnsignedWord();
                else
                if(i == 3)
                {
                    int k = stream.readUnsignedByte();
                    anIntArray357 = new int[k + 1];
                    for(int l = 0; l < k; l++)
                        anIntArray357[l] = stream.readUnsignedByte();
    
                    anIntArray357[k] = 0x98967f;
                } else
                if(i == 4)
                    aBoolean358 = true;
                else
                if(i == 5)
                    anInt359 = stream.readUnsignedByte();
                else
                if(i == 6)
                    anInt360 = stream.readUnsignedWord();
                else
                if(i == 7)
                    anInt361 = stream.readUnsignedWord();
                else
                if(i == 8)
                    anInt362 = stream.readUnsignedByte();
                else
                if(i == 9)
                    anInt363 = stream.readUnsignedByte();
                else
                if(i == 10)
                    anInt364 = stream.readUnsignedByte();
                else
                if(i == 11)
                    anInt365 = stream.readUnsignedByte();
                else
                if(i == 12)
                    stream.readDWord();
                else
                    System.out.println("Error unrecognised seq config code: " + i);
            } while(true);
            if(anInt352 == 0)
            {
                anInt352 = 1;
                anIntArray353 = new int[1];
                anIntArray353[0] = -1;
                anIntArray354 = new int[1];
                anIntArray354[0] = -1;
                anIntArray355 = new int[1];
                anIntArray355[0] = -1;
            }
            if(anInt363 == -1)
                if(anIntArray357 != null)
                    anInt363 = 2;
                else
                    anInt363 = 0;
            if(anInt364 == -1)
            {
                if(anIntArray357 != null)
                {
                    anInt364 = 2;
                    return;
                }
                anInt364 = 0;
            }
        }
    
        private Animation()
        {
            anInt356 = -1;
            aBoolean358 = false;
            anInt359 = 5;
            anInt360 = -1;
            anInt361 = -1;
            anInt362 = 99;
            anInt363 = -1;
            anInt364 = -1;
            anInt365 = 2;
        }
    
        public static Animation anims[];
        public int anInt352;
        public int anIntArray353[];
        public int anIntArray354[];
        private int[] anIntArray355;
        public int anInt356;
        public int anIntArray357[];
        public boolean aBoolean358;
        public int anInt359;
        public int anInt360;
        public int anInt361;
        public int anInt362;
        public int anInt363;
        public int anInt364;
        public int anInt365;
        public static int anInt367;
    }
    Reply With Quote  
     

  2. #2  
    Registered

    Izumi's Avatar
    Join Date
    Jun 2010
    Posts
    2,458
    Thanks given
    240
    Thanks received
    597
    Rep Power
    2463
    This is clientsided..?



    Reply With Quote  
     

  3. #3  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    There is a tutorial released on this try the search or google.


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Quote Originally Posted by Izumi View Post
    This is clientsided..?
    Okay, I posted it in the wrong section.
    /get over it





    still looking for solutions
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Been looking on google still can't find how to add this exactly and where. Someone who knows just reply please i'll give you a rep and thank.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    :\ :\
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    honetsly i've had this posted for like 30 hours and no one has replied. wtf.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Someone please fucking reply.

    /rage god damn.
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    is this a joke? WTF somebody I need a solution i'm going to thank+rep ...arrrrghhhhhhh
    Reply With Quote  
     

  10. #10  
    Extreme Donator

    woof woof bish's Avatar
    Join Date
    May 2011
    Age
    26
    Posts
    2,444
    Thanks given
    2,212
    Thanks received
    1,019
    Rep Power
    5000
    so how many times are you gonna bump and post stupid things

    yes its a joke GeT OVeR it
    you should post diz in the client section so someones probably gonna help you
    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

Similar Threads

  1. Replies: 4
    Last Post: 12-12-2010, 07:01 AM
  2. [PI] Need Animation/GFX ID - REP++ [PI]
    By Kickyamom in forum Help
    Replies: 0
    Last Post: 12-12-2010, 05:31 AM
  3. How to add a Animation? will rep++
    By Inenting in forum Help
    Replies: 2
    Last Post: 06-19-2010, 09:58 AM
  4. Skillcape animation help, REP++
    By dark4448 in forum Help
    Replies: 1
    Last Post: 05-22-2010, 09:18 PM
  5. Animation help +rep
    By Chickenpope in forum Help
    Replies: 0
    Last Post: 09-15-2009, 03:26 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
  •