Thread: Animations

Results 1 to 9 of 9
  1. #1 Animations 
    Sam
    Sam is offline
    Registered Member

    Join Date
    Sep 2012
    Age
    26
    Posts
    2,908
    Thanks given
    765
    Thanks received
    836
    Rep Power
    5000
    I need 667 animations, like stand animation for 2h, swords, staffs etc, also the attack and block emotes..

    anyone got them or some?

    EDIT: i got most of the attack ones and stand index's, now i need special attacks and stuff.

    Reply With Quote  
     

  2. #2  
    Explicit Jerba™'s Avatar
    Join Date
    May 2012
    Posts
    733
    Thanks given
    83
    Thanks received
    167
    Rep Power
    55
    Code:
    coordinates
    Npc-animations
    interfaces
    items
    npcs
    npc list
    npc updated
    other animations
    objects
    player animations
    [Only registered and activated users can see links. ]

    You're welcome.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Sam
    Sam is offline
    Registered Member

    Join Date
    Sep 2012
    Age
    26
    Posts
    2,908
    Thanks given
    765
    Thanks received
    836
    Rep Power
    5000
    Quote Originally Posted by Jerba™ View Post
    Code:
    coordinates
    Npc-animations
    interfaces
    items
    npcs
    npc list
    npc updated
    other animations
    objects
    player animations
    [Only registered and activated users can see links. ]

    You're welcome.
    it doesnt have them

    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2010
    Age
    30
    Posts
    706
    Thanks given
    237
    Thanks received
    70
    Rep Power
    32
    So your asking for the equip ids?

    EDIT:
    NVM I know what you want gimme a sec VPS laggin lmao
    Reply With Quote  
     

  5. #5  
    Sam
    Sam is offline
    Registered Member

    Join Date
    Sep 2012
    Age
    26
    Posts
    2,908
    Thanks given
    765
    Thanks received
    836
    Rep Power
    5000
    Quote Originally Posted by cr3zzy View Post
    So your asking for the equip ids?

    EDIT:
    NVM I know what you want gimme a sec VPS laggin lmao
    yeah like, slash, stab, etc and that stand anims for swords and staffs and stuff

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Mar 2010
    Age
    30
    Posts
    706
    Thanks given
    237
    Thanks received
    70
    Rep Power
    32
    Code:
    
    	public static boolean usingMagic(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return false;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 1381:
    		case 1383:
    		case 1385:
    		case 1387:
    		case 1389:
    		case 2415:
    		case 2416:
    		case 2417:
    		case 4170:
    		case 4675:
    		case 4710:
    		case 6562:
    		case 6563:
    		case 6726:
    		case 6727:
    		case 9084:
    		case 11736:
    		case 11738:
    		case 13867:
    		case 15486:
    		case 18355:
    			return true;
    		case 0:
    			return false;
    		case -1:
    			return false;
    		default:
    			return false;
    		}
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    	public static boolean usingRange(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return false;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 14684:
    		case 4212:
    		case 4214:
    		case 19143:
    		case 19146:
    		case 19149:
    		case 4734:
    		case 11235:
    		case 15701:
    		case 15702:
    		case 15703:
    		case 15704:
    		case 9185:
    		case 18357:
    		case 868:
    		case 867:
    		case 866:
    		case 865:
    		case 863:
    		case 861:
    		case 841:
    		case 843:
    		case 845:
    		case 847:
    		case 849:
    		case 851:
    		case 853:
    		case 855:
    		case 857:
    		case 859:
    		case 10034:
    		case 15241:
    			return true;
    		case 0:
    			return false;
    		case -1:
    			return false;
    		default:
    			return false;
    		}
    	}
    
    	public static int getExtraCombatDelay(Player p) {
    		if (PkDefinitions.usingRange(p) && (p.getAttackStyle() == 0 || p.getAttackStyle() == 2))
    			return 1;
    		return 0;
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    	public static int getCombatDelay(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return 5 * p.AttackSpeed;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 15241:
    			return 7;
    		case 806: // Start of Darts
    		case 807:
    		case 808:
    		case 809:
    		case 810:
    		case 811:
    		case 11230:
    		case 863: // Start of Knifes
    		case 864:
    		case 865:
    		case 866:
    		case 867:
    		case 868:
    		case 869:
    			return (2 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    			// Start of Shortbows
    		case 861:
    		case 841:
    		case 843:
    		case 845:
    		case 847:
    		case 849:
    		case 851:
    		case 853:
    		case 855:
    		case 857:
    		case 859:
    		case 4734: // Start of Karil's Cross & X-bow
    		case 4934:
    		case 4935:
    		case 4936:
    		case 4937:
    			return (3 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 1321: // Start of Scimitars
    		case 1323:
    		case 18349:
    		case 16943:
    		case 19784:
    		case 1325:
    		case 1327:
    		case 1329:
    		case 1331:
    		case 1333:
    		case 4587:
    		case 11037:
    		case 6611:
    		case 11998:
    		case 746: // Start of Daggers
    		case 747:
    		case 1213:
    		case 1231:
    		case 1215:
    		case 5696: // Start of Daggers(p++)
    		case 5698:
    		case 6597:
    		case 4151: // Whip & Sara Sword
    		case 21371:
    		case 13444:
    		case 11730:
    		case 10034: // chin
    			return (4 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 1420: // Start of Maces
    		case 1422:
    		case 1424:
    		case 1426:
    		case 1428:
    		case 1430:
    		case 1432:
    		case 1434:
    		case 6601:
    		case 7808:
    		case 8841:
    		case 11061:
    		case 839: // Start of Longbows
    		case 1291: // Start of Longswords
    		case 1293:
    		case 1295:
    		case 1297:
    		case 1299:
    		case 1301:
    		case 1303:
    		case 1305:
    		case 14099:
    		case 6607:
    		case 13899:
    		case 1379: // Start of Staffs
    		case 1381:
    		case 1383:
    		case 1385:
    		case 1387:
    		case 2415: // Start of God Staffs & Iban's Staff & Slayer staff
    		case 2416:
    		case 2417:
    		case 1409:
    		case 4170:
    		case 1391: // Start of BattleStaffs
    		case 1393:
    		case 1395:
    		case 1397:
    		case 1399:
    		case 4710: // Start of Ahrim's Staff
    		case 4862:
    		case 4863:
    		case 4864:
    		case 4865:
    		case 9174: // Start of CrossBows
    		case 9176:
    		case 9177:
    		case 9179:
    		case 9181:
    		case 9183:
    		case 9185:
    		case 18357:
    		case 14684:
    		case 14486:
    		case 14484: // Dragon Claws
    			return (5 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 1335: // Start of WarHammers
    		case 1337:
    		case 1339:
    		case 1341:
    		case 1343:
    		case 1345:
    		case 1347:
    		case 6613:
    		case 13902:
    		case 4747: // Start of Torag's Hammers
    		case 4958:
    		case 4959:
    		case 4960:
    		case 4861:
    		case 1363: // Start of BattleAxes
    		case 1365:
    		case 1367:
    		case 136:
    		case 1371:
    		case 1373:
    		case 1375:
    		case 1377:
    		case 6589:
    		case 7807:
    		case 4755: // Start of Verac's Flail
    		case 4982:
    		case 4983:
    		case 4984:
    		case 4985:
    		case 1237: // Start of Spears
    		case 1239:
    		case 1241:
    		case 1243:
    		case 1245:
    		case 1247:
    		case 1249:
    		case 7809:
    		case 11716:
    		case 13905:
    		case 5718: // Start of Spears(p++)
    		case 5720:
    		case 5722:
    		case 5724:
    		case 5726:
    		case 5728:
    		case 5730:
    		case 5736:
    		case 4726: // Start of Guthan's Warspear
    		case 4910:
    		case 4911:
    		case 4912:
    		case 4913:
    		case 3190: // Start of Halberds
    		case 3192:
    		case 16961:
    		case 17293:
    		case 17095:
    		case 15761:
    		case 16789:
    		case 3194:
    		case 3196:
    		case 3198:
    		case 3200:
    		case 3202:
    		case 3204:
    		case 6599:
    			return (6 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 11694: // Start of GodSwords
    		case 16897:
    		case 11696:
    		case 11698:
    		case 16973:
    		case 11700:
    		case 13451:
    		case 13452:
    		case 13453:
    		case 1307: // Start of 2Hs
    		case 1309:
    		case 1311:
    		case 1313:
    		case 1315:
    		case 1317:
    		case 1319:
    		case 7158:
    		case 6609:
    		case 14102:
    		case 4718: // Start of Dharok's Greataxe
    		case 4886:
    		case 4887:
    		case 4888:
    		case 4889:
    		case 10887: // BarrelChest Anchor, Dark Bow, Granite Maul, Obby Maul
    		case 14121:
    		case 4153:
    		case 6528:
    		case 16413:
    		case 18353:
    		case 13450:
    			return (6 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 11235:
    		case 15701:
    		case 15702:
    		case 15703:
    		case 15704:
    			return (9 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		default:
    			return (4 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    		}
    	}
    
    	public static int SoundID(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return 2566;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 806: // Start of Darts
    		case 807:
    		case 808:
    		case 809:
    		case 810:
    		case 811:
    		case 11230:
    		case 863: // Start of Knifes
    		case 864:
    		case 865:
    		case 866:
    		case 867:
    		case 868:
    		case 869:
    			return 2707;
    
    		case 0:
    			return -1;
    
    		case 4151:
    		case 21371:
    			return 2720;
    
    		case 1307: // Start of 2Hs
    		case 1309:
    		case 1311:
    		case 1313:
    		case 1315:
    		case 1317:
    		case 1319:
    		case 7158:
    		case 6609:
    			return 2504;
    
    		case 6528:
    			return 2520;
    
    		case 11235:
    		case 15701:
    		case 15702:
    		case 15703:
    		case 15704:
    		case 14121:
    			return 3731;
    
    		case 1379: // Start of Staffs
    		case 1381:
    		case 1383:
    		case 1385:
    		case 1387:
    		case 2415: // Start of God Staffs & Iban's Staff & Slayer staff
    		case 2416:
    		case 2417:
    		case 1409:
    		case 4170:
    		case 1391: // Start of BattleStaffs
    		case 1393:
    		case 1395:
    		case 1397:
    		case 1399:
    		case 4710: // Start of Ahrim's Staff
    		case 4862:
    		case 4863:
    		case 4864:
    		case 4865:
    			return 2555;
    
    		case 4755: // Start of Verac's Flail
    		case 4982:
    		case 4983:
    		case 4984:
    		case 4985:
    			return 1322;
    
    		case 4747: // Start of Torag's Hammers
    		case 4958:
    		case 4959:
    		case 4960:
    		case 4861:
    			return 1330;
    
    		case 4718: // Start of Dharok's Greataxe
    		case 10887:
    		case 4886:
    		case 14102:
    		case 4887:
    		case 4888:
    		case 4889:
    			return 1320;
    
    		case 4726: // Start of Guthan's Warspear
    		case 4910:
    		case 4911:
    		case 4912:
    		case 4913:
    			return 1333;
    
    		case 1363: // Start of BattleAxes
    		case 1365:
    		case 1367:
    		case 136:
    		case 1371:
    		case 1373:
    		case 1375:
    		case 1377:
    		case 6589:
    		case 7807:
    			return 2498;
    
    		case 1277:
    		case 1279:
    		case 1281:
    		case 1283:
    		case 1285:
    		case 1287:
    		case 1289:
    			return 2499;
    
    		case 1321: // Start of Scimitars
    		case 1323:
    		case 1325:
    		case 1327:
    		case 1329:
    		case 1331:
    		case 1333:
    		case 4587:
    		case 19784:
    		case 11037:
    		case 6611:
    		case 11998:
    		case 1291: // Start of Longswords
    		case 1293:
    		case 1295:
    		case 1297:
    		case 1299:
    		case 1301:
    		case 1303:
    		case 1305:
    		case 14099:
    		case 6607:
    		case 13899:
    			return 2500;
    
    		case 746: // Start of Daggers
    		case 747:
    		case 1213:
    		case 1215:
    		case 5696: // Start of Daggers(p++)
    		case 5698:
    		case 6597:
    			return 2549;
    
    		case 11694: // Start of GodSwords
    		case 16897:
    		case 11696:
    		case 11698:
    		case 11700:
    		case 13450:
    		case 13451:
    		case 13452:
    		case 13453:
    		case 11716:
    			return 3849;
    
    		case 4734: // Start of Karil's Cross & X-bow
    		case 4934:
    		case 4935:
    		case 4936:
    		case 4937:
    		case 9174: // Start of CrossBows
    		case 9176:
    		case 9177:
    		case 9179:
    		case 9181:
    		case 9183:
    		case 9185:
    		case 18357:
    		case 14684:
    			return 1081;
    
    		default:
    			return 2566;
    		}
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    	public static int getCombatAnim(Player p) {
    
    		if (p.getEquipment().get(3) == null) {
    			switch (p.getAttackStyle()) {
    			case 0:
    			case 2:
    				return 422;
    			case 1:
    			case 3:
    				return 423;
    			default:
    				return 422;
    			}
    		} else if (p.getEquipment().get(3) != null) {
    			String weaponName = p.getEquipment().get(3).getDefinition().getName().toLowerCase();
    
    			if (weaponName.contains("crossbow"))
    				return weaponName.contains("karil's crossbow") ? 2075 : 4230;
    			if (weaponName.contains("bow"))
    				return 426;
    			if (weaponName.contains("staff of light")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 15072;
    				case 1:
    					return 15071;
    				case 2:
    					return 414;
    				}
    			}
    
    			if (weaponName.contains("ornate katana")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 1882;
    				case 1:
    					return 1884;
    				case 2:
    					return 15072;
    				default:
    					return 1884;
    				}
    			}
    
    			if (weaponName.contains("staff"))
    				return 419;
    			if (weaponName.contains("dart"))
    				return 6600;
    			if (weaponName.contains("knife"))
    				return 9055;
    			if (weaponName.contains("scimitar") || weaponName.contains("korasi's sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 15072;
    				default:
    					return 15071;
    				}
    			}
    			if (weaponName.contains("mace")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("hatchet")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 401;
    				default:
    					return 395;
    				}
    			}
    			if (weaponName.contains("warhammer")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("claws")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 1067;
    				default:
    					return 393;
    				}
    			}
    			if (weaponName.contains("whip")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 11969;
    				case 2:
    					return 11970;
    				default:
    					return 11968;
    				}
    			}
    			if (weaponName.contains("anchor")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 5865;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-em")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-om")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 13691;
    				}
    			}
    			if (weaponName.contains("halberd")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("zamorakian spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 12005;
    				case 2:
    					return 12009;
    				default:
    					return 12006;
    				}
    			}
    			if (weaponName.contains("spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				case 2:
    					return 429;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("pickaxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("dagger")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 377;
    				default:
    					return 376;
    				}
    			}
    			if (weaponName.contains("longsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12310;
    				default:
    					return 12311;
    				}
    			}
    			if (weaponName.contains("rapier")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 13048;
    				default:
    					return 13049;
    				}
    			}
    
    			if (weaponName.contains("godsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 11980;
    				case 3:
    					return 11981;
    				default:
    					return 11979;
    				}
    			}
    			if (weaponName.contains("greataxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12003;
    				default:
    					return 12002;
    				}
    			}
    			if (weaponName.contains("granite maul")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 1665;
    				}
    			}
    			if (weaponName.contains("2h sword") || weaponName.equals("saradomin sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 7048;
    				case 3:
    					return 7049;
    				default:
    					return 7041;
    				}
    			}
    
    			if (weaponName.contains("claws")) {
    				return 393;
    			}
    
    			if (weaponName.contains("maul (b)")) {
    				return 2661;
    			}
    
    			switch (p.getEquipment().get(3).getDefinition().getId()) {
    			case 16405:// novite maul
    			case 16407:// Bathus maul
    			case 16409:// Maramaros maul
    			case 16411:// Kratonite maul
    			case 16413:// Fractite maul
    			case 18353:// chaotic maul
    			case 16415:// Zephyrium maul
    			case 16417:// Argonite maul
    			case 16419:// Katagon maul
    			case 16421:// Gorgonite maul
    			case 16423:// Promethium maul
    			case 16425:// primal maul
    				return 2661; // maul
    			case 13883: // morrigan thrown axe
    				return 10504;
    			case 15241:
    				return 12174;
    			case 10034: // chin
    				return 10504;
    
    			case -1:
    				return 423;
    			case 14484:
    			case 14486:
    			case 13902:
    				return 393;
    			case 4718:
    			case 10887:
    			case 14102:
    				if (p.attackStyle != 2) {
    					return 2066;
    				} else {
    					return 2067;
    				}
    			case 4587:
    			case 19784:
    			case 11037:
    			case 1323:
    			case 1333:
    			case 13899:
    			case 13979:
    			case 18351:
    				return 15071;
    			case 806:
    			case 807:
    			case 808:
    			case 809:
    			case 810:
    			case 811:
    			case 11230:
    				return 582;
    			case 863:
    			case 864:
    			case 865:
    			case 866:
    			case 867:
    			case 868:
    			case 869:
    			case 870:
    			case 871:
    			case 872:
    			case 873:
    			case 874:
    			case 875:
    			case 876:
    				return 806;
    			case 5698:
    			case 10581:
    				return 402;
    			case 4726:
    				return 2080;
    			case 6528:
    			case 13853:
    				return 2661;
    			case 4153:
    				return 1665;
    			case 4734:
    				return 2075;
    			case 9703:
    				return 412;
    			case 3204:
    				return 440;
    			case 1307:
    			case 1309:
    			case 1311:
    			case 1313:
    			case 1315:
    			case 1317:
    			case 1319:
    			case 11694:
    			case 16897:
    			case 11716:
    			case 13451:
    			case 13452:
    			case 13453:
    			case 11696:
    			case 11698:
    			case 11700:
    			case 11670:
    			case 13450:
    			case 11730:
    				return 7041;
    			case 9174:
    			case 9175:
    			case 9176:
    			case 9177:
    			case 9178:
    			case 9179:
    			case 9180:
    			case 9181:
    			case 9182:
    			case 9183:
    			case 9184:
    			case 9185:
    			case 18357:
    			case 9186:
    			case 14684:
    				return 4230;
    			case 1265:
    			case 1266:
    			case 1267:
    			case 1268:
    			case 1269:
    			case 1270:
    			case 1271:
    			case 1272:
    			case 1273:
    			case 1274:
    			case 1275:
    			case 1276:
    				return 401;
    			case 4755:
    				return 2062;
    			case 4151:
    			case 21371:
    				return 1658;
    			case 861:
    			case 19143:
    			case 19146:
    			case 19149:
    			case 841:
    			case 843:
    			case 845:
    			case 847:
    			case 849:
    			case 851:
    			case 853:
    			case 855:
    			case 857:
    			case 859:
    			case 11235:
    			case 14121:
    			case 4212:
    			case 4214:
    			case 15701:
    			case 15702:
    			case 15703:
    			case 15704:
    				return 426;
    			default:
    				return 422;
    
    			}
    
    		} else {
    			return 422;
    		}
    
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------
    
    	public static int getCustomCombatAnim(Player p) {
    
    		if (p.specialWeapon == null) {
    			switch (p.getAttackStyle()) {
    			case 0:
    			case 2:
    				return 422;
    			case 1:
    			case 3:
    				return 423;
    			default:
    				return 422;
    			}
    		} else if (p.specialWeapon != null) {
    			String weaponName = p.specialWeapon.getDefinition().getName().toLowerCase();
    
    			if (weaponName.contains("crossbow"))
    				return weaponName.contains("karil's crossbow") ? 2075 : 4230;
    			if (weaponName.contains("bow"))
    				return 426;
    			if (weaponName.contains("staff of light")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 15072;
    				case 1:
    					return 15071;
    				case 2:
    					return 414;
    				}
    			}
    
    			if (weaponName.contains("ornate katana")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 1882;
    				case 1:
    					return 1884;
    				case 2:
    					return 15072;
    				default:
    					return 1884;
    				}
    			}
    
    			if (weaponName.contains("staff"))
    				return 419;
    			if (weaponName.contains("dart"))
    				return 6600;
    			if (weaponName.contains("knife"))
    				return 9055;
    			if (weaponName.contains("scimitar") || weaponName.contains("korasi's sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 15072;
    				default:
    					return 15071;
    				}
    			}
    			if (weaponName.contains("mace")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("hatchet")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 401;
    				default:
    					return 395;
    				}
    			}
    			if (weaponName.contains("warhammer")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("claws")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 1067;
    				default:
    					return 393;
    				}
    			}
    			if (weaponName.contains("whip")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 11969;
    				case 2:
    					return 11970;
    				default:
    					return 11968;
    				}
    			}
    			if (weaponName.contains("anchor")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 5865;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-em")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-om")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 13691;
    				}
    			}
    			if (weaponName.contains("halberd")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("zamorakian spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 12005;
    				case 2:
    					return 12009;
    				default:
    					return 12006;
    				}
    			}
    			if (weaponName.contains("spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				case 2:
    					return 429;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("pickaxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("dagger")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 377;
    				default:
    					return 376;
    				}
    			}
    			if (weaponName.contains("longsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12310;
    				default:
    					return 12311;
    				}
    			}
    			if (weaponName.contains("rapier")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 13048;
    				default:
    					return 13049;
    				}
    			}
    
    			if (weaponName.contains("godsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 11980;
    				case 3:
    					return 11981;
    				default:
    					return 11979;
    				}
    			}
    			if (weaponName.contains("greataxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12003;
    				default:
    					return 12002;
    				}
    			}
    			if (weaponName.contains("granite maul")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 1665;
    				}
    			}
    			if (weaponName.contains("2h sword") || weaponName.equals("saradomin sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 7048;
    				case 3:
    					return 7049;
    				default:
    					return 7041;
    				}
    			}
    
    			if (weaponName.contains("claws")) {
    				return 393;
    			}
    
    			if (weaponName.contains("maul (b)")) {
    				return 2661;
    			}
    
    			switch (p.specialWeapon.getDefinition().getId()) {
    			case 16405:// novite maul
    			case 16407:// Bathus maul
    			case 16409:// Maramaros maul
    			case 16411:// Kratonite maul
    			case 16413:// Fractite maul
    			case 18353:// chaotic maul
    			case 16415:// Zephyrium maul
    			case 16417:// Argonite maul
    			case 16419:// Katagon maul
    			case 16421:// Gorgonite maul
    			case 16423:// Promethium maul
    			case 16425:// primal maul
    				return 2661; // maul
    			case 13883: // morrigan thrown axe
    			case 10034: // chin
    				return 10504;
    			case 15241:
    				return 12174;
    
    			case -1:
    				return 423;
    			case 14484:
    			case 14486:
    			case 13902:
    				return 393;
    			case 4718:
    			case 10887:
    			case 14102:
    				if (p.attackStyle != 2) {
    					return 2066;
    				} else {
    					return 2067;
    				}
    			case 4587:
    			case 19784:
    			case 11037:
    			case 1323:
    			case 1333:
    			case 13899:
    			case 13979:
    			case 18351:
    				return 15071;
    			case 806:
    			case 807:
    			case 808:
    			case 809:
    			case 810:
    			case 811:
    			case 11230:
    				return 582;
    			case 863:
    			case 864:
    			case 865:
    			case 866:
    			case 867:
    			case 868:
    			case 869:
    			case 870:
    			case 871:
    			case 872:
    			case 873:
    			case 874:
    			case 875:
    			case 876:
    				return 806;
    			case 5698:
    			case 10581:
    				return 402;
    			case 4726:
    				return 2080;
    			case 6528:
    			case 13853:
    				return 2661;
    			case 4153:
    				return 1665;
    			case 4734:
    				return 2075;
    			case 9703:
    				return 412;
    			case 3204:
    				return 440;
    			case 1307:
    			case 1309:
    			case 1311:
    			case 1313:
    			case 1315:
    			case 1317:
    			case 1319:
    			case 11694:
    			case 16897:
    			case 11716:
    			case 13451:
    			case 13452:
    			case 13453:
    			case 11696:
    			case 11698:
    			case 11700:
    			case 11670:
    			case 13450:
    			case 11730:
    				return 7041;
    			case 9174:
    			case 9175:
    			case 9176:
    			case 9177:
    			case 9178:
    			case 9179:
    			case 9180:
    			case 9181:
    			case 9182:
    			case 9183:
    			case 9184:
    			case 9185:
    			case 18357:
    			case 9186:
    			case 14684:
    				return 4230;
    			case 1265:
    			case 1266:
    			case 1267:
    			case 1268:
    			case 1269:
    			case 1270:
    			case 1271:
    			case 1272:
    			case 1273:
    			case 1274:
    			case 1275:
    			case 1276:
    				return 401;
    			case 4755:
    				return 2062;
    			case 4151:
    			case 21371:
    				return 1658;
    			case 861:
    			case 19143:
    			case 19146:
    			case 19149:
    			case 841:
    			case 843:
    			case 845:
    			case 847:
    			case 849:
    			case 851:
    			case 853:
    			case 855:
    			case 857:
    			case 859:
    			case 11235:
    			case 14121:
    			case 4212:
    			case 4214:
    			case 15701:
    			case 15702:
    			case 15703:
    			case 15704:
    				return 426;
    			default:
    				return 422;
    
    			}
    
    		} else {
    			return 422;
    		}
    
    	}
    
    }
    Thats all emotes for attack est for a 667. I just ripped it outa my old source. Just put that in your pkdeffintions or w.e its named in yours
    Reply With Quote  
     

  7. #7  
    Sam
    Sam is offline
    Registered Member

    Join Date
    Sep 2012
    Age
    26
    Posts
    2,908
    Thanks given
    765
    Thanks received
    836
    Rep Power
    5000
    Quote Originally Posted by cr3zzy View Post
    Code:
    
    	public static boolean usingMagic(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return false;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 1381:
    		case 1383:
    		case 1385:
    		case 1387:
    		case 1389:
    		case 2415:
    		case 2416:
    		case 2417:
    		case 4170:
    		case 4675:
    		case 4710:
    		case 6562:
    		case 6563:
    		case 6726:
    		case 6727:
    		case 9084:
    		case 11736:
    		case 11738:
    		case 13867:
    		case 15486:
    		case 18355:
    			return true;
    		case 0:
    			return false;
    		case -1:
    			return false;
    		default:
    			return false;
    		}
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    	public static boolean usingRange(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return false;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 14684:
    		case 4212:
    		case 4214:
    		case 19143:
    		case 19146:
    		case 19149:
    		case 4734:
    		case 11235:
    		case 15701:
    		case 15702:
    		case 15703:
    		case 15704:
    		case 9185:
    		case 18357:
    		case 868:
    		case 867:
    		case 866:
    		case 865:
    		case 863:
    		case 861:
    		case 841:
    		case 843:
    		case 845:
    		case 847:
    		case 849:
    		case 851:
    		case 853:
    		case 855:
    		case 857:
    		case 859:
    		case 10034:
    		case 15241:
    			return true;
    		case 0:
    			return false;
    		case -1:
    			return false;
    		default:
    			return false;
    		}
    	}
    
    	public static int getExtraCombatDelay(Player p) {
    		if (PkDefinitions.usingRange(p) && (p.getAttackStyle() == 0 || p.getAttackStyle() == 2))
    			return 1;
    		return 0;
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    	public static int getCombatDelay(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return 5 * p.AttackSpeed;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 15241:
    			return 7;
    		case 806: // Start of Darts
    		case 807:
    		case 808:
    		case 809:
    		case 810:
    		case 811:
    		case 11230:
    		case 863: // Start of Knifes
    		case 864:
    		case 865:
    		case 866:
    		case 867:
    		case 868:
    		case 869:
    			return (2 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    			// Start of Shortbows
    		case 861:
    		case 841:
    		case 843:
    		case 845:
    		case 847:
    		case 849:
    		case 851:
    		case 853:
    		case 855:
    		case 857:
    		case 859:
    		case 4734: // Start of Karil's Cross & X-bow
    		case 4934:
    		case 4935:
    		case 4936:
    		case 4937:
    			return (3 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 1321: // Start of Scimitars
    		case 1323:
    		case 18349:
    		case 16943:
    		case 19784:
    		case 1325:
    		case 1327:
    		case 1329:
    		case 1331:
    		case 1333:
    		case 4587:
    		case 11037:
    		case 6611:
    		case 11998:
    		case 746: // Start of Daggers
    		case 747:
    		case 1213:
    		case 1231:
    		case 1215:
    		case 5696: // Start of Daggers(p++)
    		case 5698:
    		case 6597:
    		case 4151: // Whip & Sara Sword
    		case 21371:
    		case 13444:
    		case 11730:
    		case 10034: // chin
    			return (4 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 1420: // Start of Maces
    		case 1422:
    		case 1424:
    		case 1426:
    		case 1428:
    		case 1430:
    		case 1432:
    		case 1434:
    		case 6601:
    		case 7808:
    		case 8841:
    		case 11061:
    		case 839: // Start of Longbows
    		case 1291: // Start of Longswords
    		case 1293:
    		case 1295:
    		case 1297:
    		case 1299:
    		case 1301:
    		case 1303:
    		case 1305:
    		case 14099:
    		case 6607:
    		case 13899:
    		case 1379: // Start of Staffs
    		case 1381:
    		case 1383:
    		case 1385:
    		case 1387:
    		case 2415: // Start of God Staffs & Iban's Staff & Slayer staff
    		case 2416:
    		case 2417:
    		case 1409:
    		case 4170:
    		case 1391: // Start of BattleStaffs
    		case 1393:
    		case 1395:
    		case 1397:
    		case 1399:
    		case 4710: // Start of Ahrim's Staff
    		case 4862:
    		case 4863:
    		case 4864:
    		case 4865:
    		case 9174: // Start of CrossBows
    		case 9176:
    		case 9177:
    		case 9179:
    		case 9181:
    		case 9183:
    		case 9185:
    		case 18357:
    		case 14684:
    		case 14486:
    		case 14484: // Dragon Claws
    			return (5 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 1335: // Start of WarHammers
    		case 1337:
    		case 1339:
    		case 1341:
    		case 1343:
    		case 1345:
    		case 1347:
    		case 6613:
    		case 13902:
    		case 4747: // Start of Torag's Hammers
    		case 4958:
    		case 4959:
    		case 4960:
    		case 4861:
    		case 1363: // Start of BattleAxes
    		case 1365:
    		case 1367:
    		case 136:
    		case 1371:
    		case 1373:
    		case 1375:
    		case 1377:
    		case 6589:
    		case 7807:
    		case 4755: // Start of Verac's Flail
    		case 4982:
    		case 4983:
    		case 4984:
    		case 4985:
    		case 1237: // Start of Spears
    		case 1239:
    		case 1241:
    		case 1243:
    		case 1245:
    		case 1247:
    		case 1249:
    		case 7809:
    		case 11716:
    		case 13905:
    		case 5718: // Start of Spears(p++)
    		case 5720:
    		case 5722:
    		case 5724:
    		case 5726:
    		case 5728:
    		case 5730:
    		case 5736:
    		case 4726: // Start of Guthan's Warspear
    		case 4910:
    		case 4911:
    		case 4912:
    		case 4913:
    		case 3190: // Start of Halberds
    		case 3192:
    		case 16961:
    		case 17293:
    		case 17095:
    		case 15761:
    		case 16789:
    		case 3194:
    		case 3196:
    		case 3198:
    		case 3200:
    		case 3202:
    		case 3204:
    		case 6599:
    			return (6 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 11694: // Start of GodSwords
    		case 16897:
    		case 11696:
    		case 11698:
    		case 16973:
    		case 11700:
    		case 13451:
    		case 13452:
    		case 13453:
    		case 1307: // Start of 2Hs
    		case 1309:
    		case 1311:
    		case 1313:
    		case 1315:
    		case 1317:
    		case 1319:
    		case 7158:
    		case 6609:
    		case 14102:
    		case 4718: // Start of Dharok's Greataxe
    		case 4886:
    		case 4887:
    		case 4888:
    		case 4889:
    		case 10887: // BarrelChest Anchor, Dark Bow, Granite Maul, Obby Maul
    		case 14121:
    		case 4153:
    		case 6528:
    		case 16413:
    		case 18353:
    		case 13450:
    			return (6 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		case 11235:
    		case 15701:
    		case 15702:
    		case 15703:
    		case 15704:
    			return (9 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    
    		default:
    			return (4 + PkDefinitions.getExtraCombatDelay(p)) * p.AttackSpeed;
    		}
    	}
    
    	public static int SoundID(Player p) {
    		if (p.getEquipment().get(3) == null) {
    			return 2566;
    		}
    		switch (p.getEquipment().get(3).getDefinition().getId()) {
    		case 806: // Start of Darts
    		case 807:
    		case 808:
    		case 809:
    		case 810:
    		case 811:
    		case 11230:
    		case 863: // Start of Knifes
    		case 864:
    		case 865:
    		case 866:
    		case 867:
    		case 868:
    		case 869:
    			return 2707;
    
    		case 0:
    			return -1;
    
    		case 4151:
    		case 21371:
    			return 2720;
    
    		case 1307: // Start of 2Hs
    		case 1309:
    		case 1311:
    		case 1313:
    		case 1315:
    		case 1317:
    		case 1319:
    		case 7158:
    		case 6609:
    			return 2504;
    
    		case 6528:
    			return 2520;
    
    		case 11235:
    		case 15701:
    		case 15702:
    		case 15703:
    		case 15704:
    		case 14121:
    			return 3731;
    
    		case 1379: // Start of Staffs
    		case 1381:
    		case 1383:
    		case 1385:
    		case 1387:
    		case 2415: // Start of God Staffs & Iban's Staff & Slayer staff
    		case 2416:
    		case 2417:
    		case 1409:
    		case 4170:
    		case 1391: // Start of BattleStaffs
    		case 1393:
    		case 1395:
    		case 1397:
    		case 1399:
    		case 4710: // Start of Ahrim's Staff
    		case 4862:
    		case 4863:
    		case 4864:
    		case 4865:
    			return 2555;
    
    		case 4755: // Start of Verac's Flail
    		case 4982:
    		case 4983:
    		case 4984:
    		case 4985:
    			return 1322;
    
    		case 4747: // Start of Torag's Hammers
    		case 4958:
    		case 4959:
    		case 4960:
    		case 4861:
    			return 1330;
    
    		case 4718: // Start of Dharok's Greataxe
    		case 10887:
    		case 4886:
    		case 14102:
    		case 4887:
    		case 4888:
    		case 4889:
    			return 1320;
    
    		case 4726: // Start of Guthan's Warspear
    		case 4910:
    		case 4911:
    		case 4912:
    		case 4913:
    			return 1333;
    
    		case 1363: // Start of BattleAxes
    		case 1365:
    		case 1367:
    		case 136:
    		case 1371:
    		case 1373:
    		case 1375:
    		case 1377:
    		case 6589:
    		case 7807:
    			return 2498;
    
    		case 1277:
    		case 1279:
    		case 1281:
    		case 1283:
    		case 1285:
    		case 1287:
    		case 1289:
    			return 2499;
    
    		case 1321: // Start of Scimitars
    		case 1323:
    		case 1325:
    		case 1327:
    		case 1329:
    		case 1331:
    		case 1333:
    		case 4587:
    		case 19784:
    		case 11037:
    		case 6611:
    		case 11998:
    		case 1291: // Start of Longswords
    		case 1293:
    		case 1295:
    		case 1297:
    		case 1299:
    		case 1301:
    		case 1303:
    		case 1305:
    		case 14099:
    		case 6607:
    		case 13899:
    			return 2500;
    
    		case 746: // Start of Daggers
    		case 747:
    		case 1213:
    		case 1215:
    		case 5696: // Start of Daggers(p++)
    		case 5698:
    		case 6597:
    			return 2549;
    
    		case 11694: // Start of GodSwords
    		case 16897:
    		case 11696:
    		case 11698:
    		case 11700:
    		case 13450:
    		case 13451:
    		case 13452:
    		case 13453:
    		case 11716:
    			return 3849;
    
    		case 4734: // Start of Karil's Cross & X-bow
    		case 4934:
    		case 4935:
    		case 4936:
    		case 4937:
    		case 9174: // Start of CrossBows
    		case 9176:
    		case 9177:
    		case 9179:
    		case 9181:
    		case 9183:
    		case 9185:
    		case 18357:
    		case 14684:
    			return 1081;
    
    		default:
    			return 2566;
    		}
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    	public static int getCombatAnim(Player p) {
    
    		if (p.getEquipment().get(3) == null) {
    			switch (p.getAttackStyle()) {
    			case 0:
    			case 2:
    				return 422;
    			case 1:
    			case 3:
    				return 423;
    			default:
    				return 422;
    			}
    		} else if (p.getEquipment().get(3) != null) {
    			String weaponName = p.getEquipment().get(3).getDefinition().getName().toLowerCase();
    
    			if (weaponName.contains("crossbow"))
    				return weaponName.contains("karil's crossbow") ? 2075 : 4230;
    			if (weaponName.contains("bow"))
    				return 426;
    			if (weaponName.contains("staff of light")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 15072;
    				case 1:
    					return 15071;
    				case 2:
    					return 414;
    				}
    			}
    
    			if (weaponName.contains("ornate katana")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 1882;
    				case 1:
    					return 1884;
    				case 2:
    					return 15072;
    				default:
    					return 1884;
    				}
    			}
    
    			if (weaponName.contains("staff"))
    				return 419;
    			if (weaponName.contains("dart"))
    				return 6600;
    			if (weaponName.contains("knife"))
    				return 9055;
    			if (weaponName.contains("scimitar") || weaponName.contains("korasi's sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 15072;
    				default:
    					return 15071;
    				}
    			}
    			if (weaponName.contains("mace")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("hatchet")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 401;
    				default:
    					return 395;
    				}
    			}
    			if (weaponName.contains("warhammer")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("claws")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 1067;
    				default:
    					return 393;
    				}
    			}
    			if (weaponName.contains("whip")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 11969;
    				case 2:
    					return 11970;
    				default:
    					return 11968;
    				}
    			}
    			if (weaponName.contains("anchor")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 5865;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-em")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-om")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 13691;
    				}
    			}
    			if (weaponName.contains("halberd")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("zamorakian spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 12005;
    				case 2:
    					return 12009;
    				default:
    					return 12006;
    				}
    			}
    			if (weaponName.contains("spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				case 2:
    					return 429;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("pickaxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("dagger")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 377;
    				default:
    					return 376;
    				}
    			}
    			if (weaponName.contains("longsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12310;
    				default:
    					return 12311;
    				}
    			}
    			if (weaponName.contains("rapier")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 13048;
    				default:
    					return 13049;
    				}
    			}
    
    			if (weaponName.contains("godsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 11980;
    				case 3:
    					return 11981;
    				default:
    					return 11979;
    				}
    			}
    			if (weaponName.contains("greataxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12003;
    				default:
    					return 12002;
    				}
    			}
    			if (weaponName.contains("granite maul")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 1665;
    				}
    			}
    			if (weaponName.contains("2h sword") || weaponName.equals("saradomin sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 7048;
    				case 3:
    					return 7049;
    				default:
    					return 7041;
    				}
    			}
    
    			if (weaponName.contains("claws")) {
    				return 393;
    			}
    
    			if (weaponName.contains("maul (b)")) {
    				return 2661;
    			}
    
    			switch (p.getEquipment().get(3).getDefinition().getId()) {
    			case 16405:// novite maul
    			case 16407:// Bathus maul
    			case 16409:// Maramaros maul
    			case 16411:// Kratonite maul
    			case 16413:// Fractite maul
    			case 18353:// chaotic maul
    			case 16415:// Zephyrium maul
    			case 16417:// Argonite maul
    			case 16419:// Katagon maul
    			case 16421:// Gorgonite maul
    			case 16423:// Promethium maul
    			case 16425:// primal maul
    				return 2661; // maul
    			case 13883: // morrigan thrown axe
    				return 10504;
    			case 15241:
    				return 12174;
    			case 10034: // chin
    				return 10504;
    
    			case -1:
    				return 423;
    			case 14484:
    			case 14486:
    			case 13902:
    				return 393;
    			case 4718:
    			case 10887:
    			case 14102:
    				if (p.attackStyle != 2) {
    					return 2066;
    				} else {
    					return 2067;
    				}
    			case 4587:
    			case 19784:
    			case 11037:
    			case 1323:
    			case 1333:
    			case 13899:
    			case 13979:
    			case 18351:
    				return 15071;
    			case 806:
    			case 807:
    			case 808:
    			case 809:
    			case 810:
    			case 811:
    			case 11230:
    				return 582;
    			case 863:
    			case 864:
    			case 865:
    			case 866:
    			case 867:
    			case 868:
    			case 869:
    			case 870:
    			case 871:
    			case 872:
    			case 873:
    			case 874:
    			case 875:
    			case 876:
    				return 806;
    			case 5698:
    			case 10581:
    				return 402;
    			case 4726:
    				return 2080;
    			case 6528:
    			case 13853:
    				return 2661;
    			case 4153:
    				return 1665;
    			case 4734:
    				return 2075;
    			case 9703:
    				return 412;
    			case 3204:
    				return 440;
    			case 1307:
    			case 1309:
    			case 1311:
    			case 1313:
    			case 1315:
    			case 1317:
    			case 1319:
    			case 11694:
    			case 16897:
    			case 11716:
    			case 13451:
    			case 13452:
    			case 13453:
    			case 11696:
    			case 11698:
    			case 11700:
    			case 11670:
    			case 13450:
    			case 11730:
    				return 7041;
    			case 9174:
    			case 9175:
    			case 9176:
    			case 9177:
    			case 9178:
    			case 9179:
    			case 9180:
    			case 9181:
    			case 9182:
    			case 9183:
    			case 9184:
    			case 9185:
    			case 18357:
    			case 9186:
    			case 14684:
    				return 4230;
    			case 1265:
    			case 1266:
    			case 1267:
    			case 1268:
    			case 1269:
    			case 1270:
    			case 1271:
    			case 1272:
    			case 1273:
    			case 1274:
    			case 1275:
    			case 1276:
    				return 401;
    			case 4755:
    				return 2062;
    			case 4151:
    			case 21371:
    				return 1658;
    			case 861:
    			case 19143:
    			case 19146:
    			case 19149:
    			case 841:
    			case 843:
    			case 845:
    			case 847:
    			case 849:
    			case 851:
    			case 853:
    			case 855:
    			case 857:
    			case 859:
    			case 11235:
    			case 14121:
    			case 4212:
    			case 4214:
    			case 15701:
    			case 15702:
    			case 15703:
    			case 15704:
    				return 426;
    			default:
    				return 422;
    
    			}
    
    		} else {
    			return 422;
    		}
    
    	}
    
    	// ----------------------------------------------------------------------------------------------------------------------
    
    	public static int getCustomCombatAnim(Player p) {
    
    		if (p.specialWeapon == null) {
    			switch (p.getAttackStyle()) {
    			case 0:
    			case 2:
    				return 422;
    			case 1:
    			case 3:
    				return 423;
    			default:
    				return 422;
    			}
    		} else if (p.specialWeapon != null) {
    			String weaponName = p.specialWeapon.getDefinition().getName().toLowerCase();
    
    			if (weaponName.contains("crossbow"))
    				return weaponName.contains("karil's crossbow") ? 2075 : 4230;
    			if (weaponName.contains("bow"))
    				return 426;
    			if (weaponName.contains("staff of light")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 15072;
    				case 1:
    					return 15071;
    				case 2:
    					return 414;
    				}
    			}
    
    			if (weaponName.contains("ornate katana")) {
    				switch (p.getAttackStyle()) {
    				case 0:
    					return 1882;
    				case 1:
    					return 1884;
    				case 2:
    					return 15072;
    				default:
    					return 1884;
    				}
    			}
    
    			if (weaponName.contains("staff"))
    				return 419;
    			if (weaponName.contains("dart"))
    				return 6600;
    			if (weaponName.contains("knife"))
    				return 9055;
    			if (weaponName.contains("scimitar") || weaponName.contains("korasi's sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 15072;
    				default:
    					return 15071;
    				}
    			}
    			if (weaponName.contains("mace")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("hatchet")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 401;
    				default:
    					return 395;
    				}
    			}
    			if (weaponName.contains("warhammer")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("claws")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 1067;
    				default:
    					return 393;
    				}
    			}
    			if (weaponName.contains("whip")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 11969;
    				case 2:
    					return 11970;
    				default:
    					return 11968;
    				}
    			}
    			if (weaponName.contains("anchor")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 5865;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-em")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("tzhaar-ket-om")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 13691;
    				}
    			}
    			if (weaponName.contains("halberd")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("zamorakian spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 12005;
    				case 2:
    					return 12009;
    				default:
    					return 12006;
    				}
    			}
    			if (weaponName.contains("spear")) {
    				switch (p.getAttackStyle()) {
    				case 1:
    					return 440;
    				case 2:
    					return 429;
    				default:
    					return 428;
    				}
    			}
    			if (weaponName.contains("pickaxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 400;
    				default:
    					return 401;
    				}
    			}
    			if (weaponName.contains("dagger")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 377;
    				default:
    					return 376;
    				}
    			}
    			if (weaponName.contains("longsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12310;
    				default:
    					return 12311;
    				}
    			}
    			if (weaponName.contains("rapier")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 13048;
    				default:
    					return 13049;
    				}
    			}
    
    			if (weaponName.contains("godsword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 11980;
    				case 3:
    					return 11981;
    				default:
    					return 11979;
    				}
    			}
    			if (weaponName.contains("greataxe")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 12003;
    				default:
    					return 12002;
    				}
    			}
    			if (weaponName.contains("granite maul")) {
    				switch (p.getAttackStyle()) {
    				default:
    					return 1665;
    				}
    			}
    			if (weaponName.contains("2h sword") || weaponName.equals("saradomin sword")) {
    				switch (p.getAttackStyle()) {
    				case 2:
    					return 7048;
    				case 3:
    					return 7049;
    				default:
    					return 7041;
    				}
    			}
    
    			if (weaponName.contains("claws")) {
    				return 393;
    			}
    
    			if (weaponName.contains("maul (b)")) {
    				return 2661;
    			}
    
    			switch (p.specialWeapon.getDefinition().getId()) {
    			case 16405:// novite maul
    			case 16407:// Bathus maul
    			case 16409:// Maramaros maul
    			case 16411:// Kratonite maul
    			case 16413:// Fractite maul
    			case 18353:// chaotic maul
    			case 16415:// Zephyrium maul
    			case 16417:// Argonite maul
    			case 16419:// Katagon maul
    			case 16421:// Gorgonite maul
    			case 16423:// Promethium maul
    			case 16425:// primal maul
    				return 2661; // maul
    			case 13883: // morrigan thrown axe
    			case 10034: // chin
    				return 10504;
    			case 15241:
    				return 12174;
    
    			case -1:
    				return 423;
    			case 14484:
    			case 14486:
    			case 13902:
    				return 393;
    			case 4718:
    			case 10887:
    			case 14102:
    				if (p.attackStyle != 2) {
    					return 2066;
    				} else {
    					return 2067;
    				}
    			case 4587:
    			case 19784:
    			case 11037:
    			case 1323:
    			case 1333:
    			case 13899:
    			case 13979:
    			case 18351:
    				return 15071;
    			case 806:
    			case 807:
    			case 808:
    			case 809:
    			case 810:
    			case 811:
    			case 11230:
    				return 582;
    			case 863:
    			case 864:
    			case 865:
    			case 866:
    			case 867:
    			case 868:
    			case 869:
    			case 870:
    			case 871:
    			case 872:
    			case 873:
    			case 874:
    			case 875:
    			case 876:
    				return 806;
    			case 5698:
    			case 10581:
    				return 402;
    			case 4726:
    				return 2080;
    			case 6528:
    			case 13853:
    				return 2661;
    			case 4153:
    				return 1665;
    			case 4734:
    				return 2075;
    			case 9703:
    				return 412;
    			case 3204:
    				return 440;
    			case 1307:
    			case 1309:
    			case 1311:
    			case 1313:
    			case 1315:
    			case 1317:
    			case 1319:
    			case 11694:
    			case 16897:
    			case 11716:
    			case 13451:
    			case 13452:
    			case 13453:
    			case 11696:
    			case 11698:
    			case 11700:
    			case 11670:
    			case 13450:
    			case 11730:
    				return 7041;
    			case 9174:
    			case 9175:
    			case 9176:
    			case 9177:
    			case 9178:
    			case 9179:
    			case 9180:
    			case 9181:
    			case 9182:
    			case 9183:
    			case 9184:
    			case 9185:
    			case 18357:
    			case 9186:
    			case 14684:
    				return 4230;
    			case 1265:
    			case 1266:
    			case 1267:
    			case 1268:
    			case 1269:
    			case 1270:
    			case 1271:
    			case 1272:
    			case 1273:
    			case 1274:
    			case 1275:
    			case 1276:
    				return 401;
    			case 4755:
    				return 2062;
    			case 4151:
    			case 21371:
    				return 1658;
    			case 861:
    			case 19143:
    			case 19146:
    			case 19149:
    			case 841:
    			case 843:
    			case 845:
    			case 847:
    			case 849:
    			case 851:
    			case 853:
    			case 855:
    			case 857:
    			case 859:
    			case 11235:
    			case 14121:
    			case 4212:
    			case 4214:
    			case 15701:
    			case 15702:
    			case 15703:
    			case 15704:
    				return 426;
    			default:
    				return 422;
    
    			}
    
    		} else {
    			return 422;
    		}
    
    	}
    
    }
    Thats all emotes for attack est for a 667. I just ripped it outa my old source. Just put that in your pkdeffintions or w.e its named in yours
    eh its 317 loading 667 data, not a 667, reason why i posted in the rs2 server section lol

    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Mar 2010
    Age
    30
    Posts
    706
    Thanks given
    237
    Thanks received
    70
    Rep Power
    32
    Quote Originally Posted by One View Post
    eh its 317 loading 667 data, not a 667, reason why i posted in the rs2 server section lol
    Convert? Or just look at the codes it should be the same emotes shouldn't it lol?
    Reply With Quote  
     

  9. #9  
    Sam
    Sam is offline
    Registered Member

    Join Date
    Sep 2012
    Age
    26
    Posts
    2,908
    Thanks given
    765
    Thanks received
    836
    Rep Power
    5000
    Quote Originally Posted by cr3zzy View Post
    Convert? Or just look at the codes it should be the same emotes shouldn't it lol?
    yeah i got almost all of the attack emotes, i need the stand index's and the block emotes.

    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

Similar Threads

  1. Rate my lastest animated project
    By Teh runemaster in forum Showcase
    Replies: 7
    Last Post: 07-23-2007, 03:02 PM
  2. Rate my first animated sig on rune-server!
    By Edge in forum Showcase
    Replies: 6
    Last Post: 07-23-2007, 06:17 AM
  3. My First Animated Sig
    By Santa Noobie in forum Showcase
    Replies: 2
    Last Post: 07-20-2007, 11:11 AM
  4. Animating GIFs In PhotoShop
    By Eleclion in forum Tutorials
    Replies: 2
    Last Post: 05-06-2007, 08:02 AM
  5. 1 And Only Anime Sig
    By Darklordants Evil Bro in forum Showcase
    Replies: 3
    Last Post: 04-12-2007, 04:25 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •