Thread: Hyperion Animation

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Hyperion Animation 
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    ActionButton:
    Code:
    case 161:
                player.playAnimation(Animation.CRY);
                break;
            case 162:
                player.playAnimation(Animation.THINKING);
                break;
            case 163:
                player.playAnimation(Animation.WAVE);
                break;
            case 164:
                player.playAnimation(Animation.BOW);
                break;
            case 165:
                player.playAnimation(Animation.ANGRY);
                break;
            case 166:
                player.playAnimation(Animation.DANCE);
                break;
            case 167:
                player.playAnimation(Animation.BECKON);
                break;
            case 168:
                player.playAnimation(Animation.YES_EMOTE);
                break;
            case 169:
                player.playAnimation(Animation.NO_EMOTE);
                break;
            case 170:
                player.playAnimation(Animation.LAUGH);
                break;
            case 171:
                player.playAnimation(Animation.CHEER);
                break;
            case 172:
                player.playAnimation(Animation.CLAP);
                break;
            case 13362:
                player.playAnimation(Animation.PANIC);
                break;
            case 13363:
                player.playAnimation(Animation.JIG);
                break;
            case 13364:
                player.playAnimation(Animation.SPIN);
                break;
            case 13365:
                player.playAnimation(Animation.HEADBANG);
                break;
            case 13366:
                player.playAnimation(Animation.JOYJUMP);
                break;
            case 13367:
                player.playAnimation(Animation.RASPBERRY);
                break;
            case 13368:
                player.playAnimation(Animation.YAWN);
                break;
            case 13383:
                player.playAnimation(Animation.GOBLIN_BOW);
                break;
            case 13384:
                player.playAnimation(Animation.GOBLIN_DANCE);
                break;
            case 13369:
                player.playAnimation(Animation.SALUTE);
                break;
            case 13370:
                player.playAnimation(Animation.SHRUG);
                break;
            case 11100:
                player.playAnimation(Animation.BLOW_KISS);
                break;
            case 667:
                player.playAnimation(Animation.GLASS_BOX);
                break;
            case 6503:
                player.playAnimation(Animation.CLIMB_ROPE);
                break;
            case 6506:
                player.playAnimation(Animation.LEAN);
                break;
            case 666:
                player.playAnimation(Animation.GLASS_WALL);
                break;
    Animation:
    Code:
        public final static Animation YES_EMOTE = create(855);
        public final static Animation NO_EMOTE = create(856);
        public final static Animation THINKING = create(857);
        public final static Animation BOW = create(858);
        public final static Animation ANGRY = create(859);
        public final static Animation CRY = create(860);
        public final static Animation LAUGH = create(861);
        public final static Animation CHEER = create(862);
        public final static Animation WAVE = create(863);
        public final static Animation BECKON = create(864);
        public final static Animation CLAP = create(865);
        public final static Animation DANCE = create(866);
        
        public final static Animation PANIC = create(2105);
        public final static Animation JIG = create(2106);
        public final static Animation SPIN = create(2107);
        public final static Animation HEADBANG = create(2108);
        public final static Animation JOYJUMP = create(2109);
        public final static Animation RASPBERRY = create(2110);
        public final static Animation YAWN = create(2111);
        public final static Animation SALUTE = create(2112);
        public final static Animation SHRUG = create(2113);
        public final static Animation BLOW_KISS = create(1368);
        
        public final static Animation GLASS_WALL = create(1128);
        public final static Animation LEAN = create(1129);
        public final static Animation CLIMB_ROPE = create(1130);
        public final static Animation GLASS_BOX = create(1131);
        
        public final static Animation GOBLIN_BOW = create(2127);
        public final static Animation GOBLIN_DANCE = create(2128);
    Reply With Quote  
     

  2. #2  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    I don't really do private servers but whats the point of use create and making everything static when a simple
    private final int NAME = 1;

    will do the job just the same?
    Reply With Quote  
     

  3. #3  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    Because an animation object can also have a delay.

    Also, if he stored them as just ints, he'd have to create a new hyperion animation object each time someone presses the button.
    .
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Looks good, gj.
    and these should really be constants, so its good
    Reply With Quote  
     

  5. #5  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    biggest waste of space I've seen.
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Jun 2007
    Age
    29
    Posts
    3,003
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    I like the way that it's programmed.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    Easy to add and it works.
    Just remember to add

    import org.hyperion.rs2.model.Animation;

    to action button handler or else you'll get errors.

    Quote Originally Posted by Tyler View Post
    biggest waste of space I've seen.
    So is that server of yours that uses a shit load of ram.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Quote Originally Posted by Tyler View Post
    biggest waste of space I've seen.
    lold, tell me a correct and optimised way of doing it shorter?
    btw: don't come telling shit about using arrays
    Reply With Quote  
     

  9. #9  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    31
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    tbh it may be the good way, but c'mon, it looks ridiculous

    Reply With Quote  
     

  10. #10  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    Quote Originally Posted by Nathan View Post
    tbh it may be the good way, but c'mon, it looks ridiculous
    Got a better way?
    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
  •