Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum Emote {
- YES(2, 855, -1, 3),
- NO(3, 856, -1, 2),
- BOW(4, 858, -1, 2),
- ANGRY(5, 859, -1, 3),
- THINK(6, 857, -1, 3),
- WAVE(7, 863, -1, 3),
- SHRUG(8, 2113, -1, 2),
- CHEER(9, 862, -1, 3),
- BECKON(10, 864, -1, 3),
- LAUGH(12, 861, -1, 3),
- JUMPFORJOY(11, 2109, -1, 1),
- YAWN(13, 2111, -1, 4),
- DANCE(14, 866, -1, 7),
- JIG(15, 2106, -1, 6),
- TWIRL(16, 2107, -1, 1),
- HEADBANG(17, 2108, -1, 5),
- CRY(18, 860, -1, 3),
- BLOWKISS(19, 1374, 1702, 3),
- PANIC(20, 2105, -1, 2),
- RASPBERRY(21, 2110, -1, 3),
- CLAP(22, 865, -1, 3),
- SALUTE(23, 2112, -1, 1),
- GOBLIN_BOW(24, 0X84F, -1, 2),
- GOLBIN_SALUTE(25, 0X850, -1, 3),
- GLASS_BOX(26, 1131, -1, 3),
- ROPE(27, 1130, -1, 5),
- LEAN(28, 1129, -1, 5),
- GLASS_WALL(29, 1128, -1, 6),
- IDEA(33, 4276, 712, 3),
- STOMP(31, 4278, 713, 1),
- FLAP(32, 4280, -1, 2),
- SLAP_HEAD(30, 4275, -1, 1),
- ZOMBIE_WALK(34, 3544, -1, 8),
- ZOMBIE_DANCE(35, 3543, -1, 6),
- ZOMBIE_HAND(36, 7272, 1244, 3),
- SCARED(37, 2836, -1, 4),
- RABBIT_HOP(38, 6111, -1, 5),
- SNOWMAN_DANCE(40, 7531, -1, 4),
- AIR_GUITAR(41, 2414, 1537, 6),
- SAFETY_FIRST(42, 8770, 1553, 4),
- EXPLORE(43, 9990, 1734, 7),
- TRICK(44, 10530, 1864, 5),
- FREEZE(45, 11044, 1973, 6),
- AROUND_THE_WORLD(47, 11542, 2037, 6),
- DRAMATIC_POINT(48, 0x3172, 780, 4),
- FAINT(49, 14165, -1, 7),
- PUPPET_MASTER(50, 0x3A15, 2837, 6),
- TASK_MASTER(51, 0x3ABA, 2930, 15);
- private final int buttonId;
- private final int animation;
- private final int gfx;
- private final int tick;
- public int getTick() {
- return tick;
- }
- private Emote(int buttonId, int animation, int gfx, int tick) {
- this.buttonId = buttonId;
- this.animation = animation;
- this.gfx = gfx;
- this.tick = tick;
- }
- public static Emote forButton(int buttonId) {
- for (Emote emote : values()) {
- if (emote.buttonId == buttonId)
- return emote;
- }
- return null;
- }
- public static void playEmote(final Player player, int buttonId) {
- final Emote emote = forButton(buttonId);
- if (emote != null) {
- player.doAnimation(emote.animation);
- player.doGraphics(emote.gfx);
- doingEmote = true;
- player.registerTick(new Tick(null, emote.getTick()) {
- @Override
- public boolean execute() {
- doingEmote = false;
- return false;
- }
- });
- }
- }
- }
- public static int[][] skillcape = {
- {9747, 4959, 823, 5}, {10639, 4959, 823, 5}, {9748, 4959, 823, 5},//Attack
- {9753, 4961, 824, 16}, {10641, 4961, 824, 16}, {9754, 4961, 824, 16},//Defense
- {9750, 4981, 828, 6}, {10640, 4981, 828, 6}, {9751, 4981, 828, 6},//Strength
- {9768, 14242, 2745, 7}, {10647, 14242, 2745, 7}, {9769, 14242, 2745, 7},//Constitution
- {9756, 4973, 832, 8}, {10642, 4973, 832, 8}, {9757, 4973, 832, 8},//Ranged
- {9762, 4939, 813, 5}, {10644, 4939, 813, 5}, {9763, 4939, 813, 5},//Magic
- {9759, 4979, 829, 10}, {10643, 4979, 829, 10}, {9760, 4979, 829, 10},//Prayer
- {9801, 4955, 821, 23}, {10658, 4955, 821, 23}, {9802, 4955, 821, 23},//Cooking
- {9807, 4957, 822, 19}, {10660, 4957, 822, 19}, {9808, 4957, 822, 19},//Woodcutting
- {9783, 4937, 812, 12}, {10652, 4937, 812, 12}, {9784, 4937, 812, 12},//Fletching
- {9798, 4951, 819, 11}, {10657, 4951, 819, 11}, {9799, 4951, 819, 11},//Fishing
- {9804, 4975, 831, 8}, {10659, 4975, 831, 8}, {9805, 4975, 831, 8},//Firemaking
- {9780, 4949, 818, 13}, {10651, 4949, 818, 13}, {9781, 4949, 818, 13},//Crafting
- {9795, 4943, 815, 17}, {10656, 4943, 815, 17}, {9796, 4943, 815, 17},//Smithing
- {9792, 4941, 814, 6}, {10655, 4941, 814, 6}, {9793, 4941, 814, 6},//Mining
- {9774, 4969, 835, 14}, {10649, 4969, 835, 14}, {9775, 4969, 835, 14},//Herblore
- {9771, 4977, 830, 7}, {10648, 4977, 830, 7}, {9772, 4977, 830, 7},//Agility
- {9777, 4965, 826, 13}, {10650, 4965, 826, 13}, {9778, 4965, 826, 13},//Thieving
- {9786, 4967, 1656, 5}, {10653, 4967, 1656, 5}, {9787, 4967, 1656, 5},//Slayer
- {9810, 4963, 825, 11}, {10661, 4963, 825, 11}, {9811, 4963, 825, 11},//Farming
- {9765, 4947, 817, 10}, {10645, 4947, 817, 10}, {9766, 4947, 817, 10},//Runecrafting
- {9789, 4953, 820, 11}, {10654, 4953, 820, 11}, {9790, 4953, 820, 11},//Construction
- {12524, 8525, 1515, 8}, {12169, 8525, 1515, 8}, {12170, 8525, 1515, 8},//Summoning
- {9948, 5158, 907, 10}, {10646, 5158, 907, 10}, {9949, 5158, 907, 10},//Hunter
- {9813, 4945, 816, 13}, {10662, 4945, 816, 13}
- };
- private static void doskillcapeEmote(Player p) {
- for (int i = 0; i < skillcape.length; i++) {
- if(p.getEquipment().get(EquipmentDefinition.SLOT_CAPE).getId() == skillcape[i][0]) {
- p.doAnimation(skillcape[i][1]);
- p.doGraphics(skillcape[i][2]);
- doingEmote = true;
- p.registerTick(new Tick(null, skillcape[i][3]) {
- @Override
- public boolean execute() {
- doingEmote = false;
- return false;
- }
- });
- }
- }
- }
Add Comment
Please, Sign In to add comment