Thread: [508] animations and gfx commands

Results 1 to 5 of 5
  1. #1 [508] animations and gfx commands 
    tor0en
    Guest
    Description: This is a TuT on how to add commands to look through all the gfx's and animation's. and put them together as one.
    This is my first tutorial, and i have learn from just looking in java files =)

    Difficulty: 1/10

    Assumed Knowledge: Copy and Paste (like i did to find this out)

    Tested Server: palidino's server

    Files/Classes Modified:
    src/paladino76/rs2/io/packets/Command.java


    Step 1: Go into Command.java and open it
    Step 2: find
    Code:
                if (p.rights >= 2) {
    Step 3: Paste this between a ELSE and a IF

    Code:
    if (cmd[0].equals("anim")) {
                        int anim = Integer.parseInt(cmd[1]);
                         p.requestAnim(anim, 0); 
                    } else if (cmd[0].equals("angx")) {
                        int anim = Integer.parseInt(cmd[1]);
                        int gfx = Integer.parseInt(cmd[2]);
                         p.requestAnim(anim, 0); 
                         p.requestGFX(gfx, 0);
                    } else if (cmd[0].equals("gfx")) {
                        int gfx = Integer.parseInt(cmd[1]);
                         p.requestGFX(gfx, 0); 
                    } else
    like this:
    Code:
    } else <paste here> if (..........
    Then this code should fit right in.

    step 4: now save and compile

    How to use:
    ok Now that u got it work, the commands are

    ::anim <id>(put any number here and then the animation should start)
    ::gfx <id>(put any number here aswell and the gfx should start)
    ::angx <animid> <gfxid> (if you found a anim and a gfx that could fit together, you can put both ids here, and then they should run together)

    that was all folks... this might not be a good tutorial but i tryed my best to explain this for new people cause im one of em...

    Credits: most of it to palidino76, cause it was his server i looked through to learn this =) tyvm
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Aug 2008
    Posts
    1,171
    Thanks given
    21
    Thanks received
    44
    Rep Power
    0
    Im pretty sure the single GFX & anim command where already in there, the combined one isnt hard to figure out but nice for the noobs i guess =P
    Reply With Quote  
     

  3. #3  
    tor0en
    Guest
    i only had showinterface command =\
    Reply With Quote  
     

  4. #4  
    Renown Programmer and Respected Member
    Maxi's Avatar
    Join Date
    Jun 2008
    Posts
    3,197
    Thanks given
    281
    Thanks received
    1,095
    Rep Power
    1366
    Thanks alot, learned me something to better look trough the packages.
    Found player rights already, so nvm .

    I won't show me anything, and I changed my player rights as well..
    Reply With Quote  
     

  5. #5  
    tor0en
    Guest
    Quote Originally Posted by Maxi View Post
    Thanks alot, learned me something to better look trough the packages.
    Found player rights already, so nvm .

    I won't show me anything, and I changed my player rights as well..
    dont you know how to change your player right back? u can add urself to admin you know... in login.java i think

    Code:
                if (p.username.equals("tor0en")) {
                    p.rights = 3;
    		}
    add this in ur login.java
    search after something like that in login.java
    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

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