Okay, I am using a base (PI) And i had an issue where 2hs acted as longswords, well i got it fixed and they act like actual 2h swords now, correct stances for godswords too, however. The Sara sword and all godswords, when I use the spec it does the actual spec GFX but my character just stands there, could anyone help w/ this?
Code:
public static void getPlayerAnimIndex(Client c, String weaponName) {
c.playerStandIndex = 0x328;
c.playerTurnIndex = 0x337;
c.playerWalkIndex = 0x333;
c.playerTurn180Index = 0x334;
c.playerTurn90CWIndex = 0x335;
c.playerTurn90CCWIndex = 0x336;
c.playerRunIndex = 0x338;
if (weaponName.contains("halberd") || weaponName.contains("hasta")
|| weaponName.contains("guthan")
|| weaponName.contains("sceptre")) {
c.playerStandIndex = 809;
c.playerWalkIndex = 1146;
c.playerRunIndex = 1210;
return;
}
if (weaponName.contains("sled")) {
c.playerStandIndex = 1461;
c.playerWalkIndex = 1468;
c.playerRunIndex = 1467;
return;
}
if (weaponName.contains("dharok")) {
c.playerStandIndex = 0x811;
c.playerWalkIndex = 2064;
return;
}
if (weaponName.contains("ahrim")) {
c.playerStandIndex = 809;
c.playerWalkIndex = 1146;
c.playerRunIndex = 1210;
return;
}
if (weaponName.contains("verac")) {
c.playerStandIndex = 1832;
c.playerWalkIndex = 1830;
c.playerRunIndex = 1831;
return;
}
if (weaponName.contains("wand") || weaponName.contains("staff")) {
c.playerStandIndex = 809;
c.playerRunIndex = 1210;
c.playerWalkIndex = 1146;
return;
}
if (weaponName.contains("karil")) {
c.playerStandIndex = 2074;
c.playerWalkIndex = 2076;
c.playerRunIndex = 2077;
return;
}
if(weaponName.contains("2h sword") || weaponName.contains("godsword") || weaponName.contains("saradomin sw")) {
c.playerStandIndex = 4300;
c.playerWalkIndex = 4306;
c.playerRunIndex = 4305;
return;
}
Code:
public static int getWepAnim(Client c, String weaponName) {
if (c.playerEquipment[c.playerWeapon] <= 0) {
switch (c.fightMode) {
case 0:
return 422;
case 2:
return 423;
case 1:
return 422;
}
}
if (weaponName.contains("dart")) {
return c.fightMode == 2 ? 582 : 6600;
}
if (weaponName.contains("knife") || weaponName.contains("javelin")
|| weaponName.contains("thrownaxe")) {
return 806;
}
if (weaponName.contains("cross") || weaponName.contains("c'bow")) {
return 4230;
}
if (weaponName.contains("halberd")) {
return 440;
}
if (weaponName.startsWith("dragon dagger")) {
return 402;
}
if (weaponName.endsWith("dagger")) {
return 412;
}
if (weaponName.contains("2h sword") || weaponName.contains("godsword")
|| weaponName.contains("aradomin sword")) {
switch (c.fightMode) {
case 0:// attack
return 407;
case 2:// str
return 407;
case 1:// def
return 410;
case 3:// crush
return 406;
}
}
Code:
case 11694:
case 11696:
case 11730:
case 11698:
case 11700:
c.playerStandIndex = 7047;
c.playerWalkIndex = 7046;
c.playerRunIndex = 7039;
c.playerTurnIndex = 7044;
c.playerTurn180Index = 7044;
c.playerTurn90CWIndex = 7044;
c.playerTurn90CCWIndex = 7044;
break;
this is also in meleedata.java under player equip
Both of these are in meleedata.java any help is greatly appreciated Will Rep +