help!!!!!
|
idk wuts wrong...title says all
if i just wield the weapon the animation will be there, but if i take a step, it will go to looking like a reagular sword, like the great ax or godsword will look like a sword after moving
its only the first wield it will work
but it wont do the walk or run animation either, and ive used a few of my servers animation return codes, and its still not working....any help???
thanks
this is my code!! please tell me why when i walk it goes back to normal, when this looks correct
[SPOIL]public int GetWepAnim(int id) {
eatemote = 1;
if(id == -1) // unarmed
{
return 422;
}
if(id == 3098)
{
return 401;
}
if(id == 7140)
{
return 1658;
}
if(id == 9070 || id == 4508 || id == 9071)
{
return 3496;
}
if(id == 9070 || id == 9071)
{
return 407;
}
if(id == 837)
{
return 1084;
}
if(id == 3190 || id == 3192 || id == 3194 || id == 3196 || id == 3198 || id== 3200 || id == 3202 || id == 3204) // halberds
{
return 440;
}
if(id == 4170 || id == 4675)
{
return 414;
}
if(id == 4151 || id == 9093 || id == 9094 || id == 9106) // whip
{
return 1658;
}
if(id == 6528)
{
return 2661;
}
if(id == 6522)
{
return 2614;
}
if(id == 732)
{
return 1658;
}
if((id == 1291 || id == 1321 || id == 1323 || id == 1325 || id == 1327 || id == 1329 || id == 6611 || id == 1327 || id == 1321 || id == 1333 || id == 1305 || id== 6739 || id == 4587) && FightType == 3) // scimitars
{
return 412;
}
if(id == 841 || id == 7603 || id == 8001 || id == 843 || id == 845 ||id == 849 ||id == 847 ||id == 853 || id == 851 || hasCrystalBow() || id == 859 || id == 861 || id == 8001)
{
return 426;
}
if(id == 837)
{
return 427;
}
if(id == 4153) // maul
{
return 1665;
}
if(id == 1377) // dragon b axe
{
return 1833;
}
if(id == 4718 && FightType != 3) // dharoks axe
{
return 2067;
}
if(id == 4718 && FightType == 3) // dharoks axe
{
return 2066;
}
if(id == 9070 && FightType != 3) // ags
{
return 2067;
}
if(id == 9071 && FightType != 3) // bgs
{
return 2067;
}
if(id == 9070 && FightType == 3) // ags
{
return 2066;
}
if(id == 9071 && FightType == 3) // bgs
{
return 2066;
}
if(id == 4726 && FightType == 2)
{
return 2080;
}
if(id == 4158 && FightType != 2)
{
return 2080;
}
if(id == 4726 && FightType != 2)
{
return 2081;
}
if(id == 4158 && FightType == 2)
{
return 2081;
}
if(id == 4747 || id == 8022) // torags hammers
{
return 2068;
}
if(id == 4755) // veracs flail
{
return 2062;
}
if(id == 4734) // karils x bow
{
return 2075;
}
if((id == 1215 || id == 1231 || id == 5680 || id == 5698) && FightType != 3) // dragon daggers
{
return 402;
}
if((id == 1215 || id == 1231 || id == 5680 || id == 5698) && FightType == 3) // dragon daggers
{
return 395;
}
if(id == 6609 || id == 1307 || id == 1309 || id == 1311 || id == 1313 || id == 1315 || id == 1317 || id == 1319 || id == 7158 || id == 0 )
// 2 handers
{
return 3496;
}
else
{
return 451;
}
}
public int GetRunAnim(int id) {
if(id == 837)
{
return 2251;
}
if(id == 4084)
{
return 164;
}
if(id == 4151 || id == 9094 || id == 9093 || id == 9106) // whip
{
return 1661;
}
if(id == 7158 || id == 1319 || id == 6609 || id == 9070 || id == 9071 || id == 4508)
{
return 2563;
}
if(id == 4734) // karils x bow
{
return 2077;
}
if(id == 6528 || id == 4153) // maul
{
return 1664;
}
else
{
return 0x338;
}
}
public int GetWalkAnim(int id) {
if(id == 4084)
{
return 1468;
}
if(id == 9070 || id == 9071 || id == 4718 || id == 6528) // 2hwalks
{
return 2064;
}
if(id == 4039 || id == 4037 || id == 1379 || id == 3204 || id == 1381 || id == 1383 || id == 1385 || id == 1387 || id == 1389 || id == 1391 || id == 1393 || id == 1395 || id == 1397 || id == 1399 || id == 1401 || id == 1403 || id == 145 || id == 1407 || id == 1409 || id == 3053 || id == 3054 || id == 4170 || id == 4675 || id == 4710 || id == 6526 || id == 4726 || id == 4158 || id == 6562 || id == 6563 || id == 6914 || id == 5730) // staves + d long and most other weps with str8 up emote
{
return 1146;
}
if(id == 7158 || id == 1319 || id == 6609 || id == 9070 || id == 9071 || id == 4508)
{
return 2562;
}
if(id == 4755) // veracs flail
{
return 2060;
}
if(id == 4734) // karils x bow
{
return 2076;
}
if(id == 4153) // maul
{
return 1663;
}
if(id == 4151) // whip
{
return 1660;
}
else
{
return 0x333;
}
}
public int GetStandAnim(int id)
{
if(id == 837)
{
return 2257;
}
if(id == 4084)
{
return 1462;
}
if(id == 4718 || id == 9071 || id == 9070 || id == 4508) // dharoks axe
{
return 2065;
}
if(id == 4755) // veracs flail
{
return 2061;
}
if(id == 4734) // karils x bow
{
return 2074;
}
if(id == 4153) // maul
{
return 1662;
}
if(id == 6528)//Obby Maul
{
return 0x811;
}
if(id == 1305 || id == 11962 || id == 11963 || id == 10395 || id == 11964 || id == 11965 || id == 1379 || id == 1381 || id == 1383 || id == 1385 || id == 1387 || id == 1389 || id == 1391 || id == 1393 || id == 1395 || id == 1397 || id == 1399 || id == 1401 || id == 1403 || id == 145 || id == 1407 || id == 1409 || id == 3053 || id == 6914 || id == 3054 || id == 4170 || id == 4675 || id == 4710 || id == 6526 || id == 4726 || id == 4158 || id == 6562 || id == 6563 || id == 5730 || id == 3190 || id == 3192 || id == 3194 || id == 3196 || id == 3198 || id == 3200 || id == 3202 || id == 3204 || id == 772) // staves
{
return 809;
}
else
{
return 0x328;
}
}
[/SPOIL]
help!!!!!
Well, it would be in your client.java most likely depending on the source you are using. If you are using delta, look in the client.java and search for one of your items, make sure it is under the runAnim method or what ever its called. Then change it to the correct emote ID.
If it is RiotScape/Project Insanity, look in the combatAssistant.java, if it isn't there, it would be client.java.
They both have the runAnim methods. (Delta might be runEmote, but it is the same. To change the walk, it would be the walkAnim/walkEmote methods.)
ik i have that, but it still isnt working, can u post ur animations for walking, running, and standing, cause its really wierd y my wont work
Code:/** *Weapon stand, walk, run, etc emotes **/ public void getPlayerAnimIndex(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("guthan")) { c.playerStandIndex = 809; c.playerWalkIndex = 1146; c.playerRunIndex = 1210; return; } if(weaponName.contains("dharok")) { c.playerStandIndex = 0x811; c.playerWalkIndex = 0x67F; c.playerRunIndex = 0x680; 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; } if(weaponName.contains("bow")) { c.playerStandIndex = 808; c.playerWalkIndex = 819; c.playerRunIndex = 824; return; } switch(c.playerEquipment[c.playerWeapon]) { case 4151: c.playerStandIndex = 1832; c.playerWalkIndex = 1660; c.playerRunIndex = 1661; break; case 6528: c.playerStandIndex = 0x811; c.playerWalkIndex = 2064; c.playerRunIndex = 1664; break; case 4153: c.playerStandIndex = 1662; c.playerWalkIndex = 1663; c.playerRunIndex = 1664; break; case 11694: case 11696: case 11730: case 11698: case 11700: c.playerStandIndex = 4300; c.playerWalkIndex = 4306; c.playerRunIndex = 4305; break; case 1305: c.playerStandIndex = 809; break; } }
gave me errors...this is wut mine looks like
[SPOIL]public int GetWepAnim(int id)
{
eatemote = 1;
if(id == -1) // unarmed
{
return 422;
}
if(id == 3098)
{
return 401;
}
if(id == 7140)
{
return 1658;
}
if(id == 9070 || id == 4508 || id == 9071)
{
return 3496;
}
if(id == 9070 || id == 9071)
{
return 407;
}
if(id == 837)
{
return 1084;
}
if(id == 3190 || id == 3192 || id == 3194 || id == 3196 || id == 3198 || id== 3200 || id == 3202 || id == 3204) // halberds
{
return 440;
}
if(id == 4170 || id == 4675)
{
return 414;
}
if(id == 4151) // whip
{
return 1658;
}
if(id == 9094) // blue whip
{
return 1658;
}
if(id == 9093) // red whip
{
return 1658;
}
if(id == 9106) // white whip
{
return 1658;
}
if(id == 6528)
{
return 2661;
}
if(id == 7603)
{
return 426;
}
if(id == 8001)
{
return 426;
}
if(id == 6522)
{
return 2614;
}
if(id == 732)
{
return 1658;
}
if((id == 1291 || id == 1321 || id == 1323 || id == 1325 || id == 1327 || id == 1329 || id == 6611 || id == 1327 || id == 1321 || id == 1333 || id == 1305 || id== 6739 || id == 4587) && FightType == 3) // scimitars
{
return 412;
}
if(id == 841 || id == 843 || id == 845 ||id == 849 ||id == 847 ||id == 853 || id == 851 || hasCrystalBow() || id == 859 || id == 861 || id == 8001)
{
return 426;
}
if(id == 837)
{
return 427;
}
if(id == 4153) // maul
{
return 1665;
}
if(id == 1377) // dragon b axe
{
return 1833;
}
if(id == 4718 && FightType != 3) // dharoks axe
{
return 2067;
}
if(id == 4718 && FightType == 3) // dharoks axe
{
return 2066;
}
if(id == 9070 && FightType != 3) // ags
{
return 2067;
}
if(id == 9071 && FightType != 3) // bgs
{
return 2067;
}
if(id == 9070 && FightType == 3) // ags
{
return 2066;
}
if(id == 9071 && FightType == 3) // bgs
{
return 2066;
}
if(id == 4726 && FightType == 2)
{
return 2080;
}
if(id == 4158 && FightType != 2)
{
return 2080;
}
if(id == 4726 && FightType != 2)
{
return 2081;
}
if(id == 4158 && FightType == 2)
{
return 2081;
}
if(id == 4747) // torags hammers
{
return 2068;
}
if(id == 8022) // torags hammers
{
return 2068;
}
if(id == 4755) // veracs flail
{
return 2062;
}
if(id == 4734) // karils x bow
{
return 2075;
}
if((id == 1215 || id == 1231 || id == 5680 || id == 5698) && FightType != 3) // dragon daggers
{
return 402;
}
if((id == 1215 || id == 1231 || id == 5680 || id == 5698) && FightType == 3) // dragon daggers
{
return 395;
}
if(id == 6609 || id == 1307 || id == 1309 || id == 1311 || id == 1313 || id == 1315 || id == 1317 || id == 1319 || id == 7158 || id == 0 )
// 2 handers
{
return 3496;
}
else
{
return 451;
}
}
public int GetRunAnim(int id)
{
//if(id == 837)
//{
//return 2251;
//}
if (id == 667) // godsword
{
return 2077;
}
if(id == 4084)
{
return 164;
}
if(id == 9094) // blue whip
{
return 1658;
}
if(id == 9093) // red whip
{
return 1658;
}
if(id == 9106) // white whip
{
return 1658;
}if(id == 4151) // whip
{
return 1661;
}
if(id == 7158 || id == 1319 || id == 6609 || id == 9070 || id == 9071 || id == 4508)
{
return 2563;
}
if(id == 4734) // karils x bow
{
return 2077;
}
if(id == 6528) // maul
{
return 1664;
}
if(id == 4153) // maul
{
return 1664;
}
else
{
return 0x338;
}
}
public int GetWalkAnim(int id)
{
if(id == 4084)
{
return 1468;
}
if(id == 6528)
{
return 2064;
}
if(id == 4718) // dharoks axe
{
return 2064;
}
if(id == 9070) // ags
{
return 2064;
}
if(id == 9071) // bgs
{
return 2064;
}
if(id == 4039 || id == 4037 || id == 1379 || id == 3204 || id == 1381 || id == 1383 || id == 1385 || id == 1387 || id == 1389 || id == 1391 || id == 1393 || id == 1395 || id == 1397 || id == 1399 || id == 1401 || id == 1403 || id == 145 || id == 1407 || id == 1409 || id == 3053 || id == 3054 || id == 4170 || id == 4675 || id == 4710 || id == 6526 || id == 4726 || id == 4158 || id == 6562 || id == 6563 || id == 6914 || id == 5730) // staves + d long and most other weps with str8 up emote
{
return 1146;
}
if(id == 7158 || id == 1319 || id == 6609 || id == 9070 || id == 9071 || id == 4508)
{
return 2562;
}
if(id == 4755) // veracs flail
{
return 2060;
}
if(id == 4734) // karils x bow
{
return 2076;
}
if(id == 4153) // maul
{
return 1663;
}
if(id == 4718) // 2h + gr8 axe
{
return 1662;
}
if(id == 9070 || id == 9071) // bgs and ags
{
return 1662;
}
if(id == 4151) // whip
{
return 1660;
}
else
{
return 0x333;
}
}
public int GetStandAnim(int id)
{if(id == 837)
{
return 2257;
}
if(id == 4084)
{
return 1462;
}
if(id == 4718 || id == 9071 || id == 9070 || id == 4508) // dharoks axe
{
return 2065;
}
if(id == 7158 || id == 1319 || id == 6609 || id == 9070 || id == 9071)
{
return 2561;
}
if(id == 9070 || id == 9071) //godsword
{
return 407;
}
if(id == 9070 || id == 9071) //godsword
{
return 2563;
}
if(id == 4755) // veracs flail
{
return 2061;
}
if(id == 4734) // karils x bow
{
return 2074;
}
if(id == 4153) // maul
{
return 1662;
}
if(id == 6528)//Obby Maul
{
return 0x811;
}
if(id == 1305 || id == 11962 || id == 11963 || id == 10395 || id == 11964 || id == 11965 || id == 1379 || id == 1381 || id == 1383 || id == 1385 || id == 1387 || id == 1389 || id == 1391 || id == 1393 || id == 1395 || id == 1397 || id == 1399 || id == 1401 || id == 1403 || id == 145 || id == 1407 || id == 1409 || id == 3053 || id == 6914 || id == 3054 || id == 4170 || id == 4675 || id == 4710 || id == 6526 || id == 4726 || id == 4158 || id == 6562 || id == 6563 || id == 5730 || id == 3190 || id == 3192 || id == 3194 || id == 3196 || id == 3198 || id == 3200 || id == 3202 || id == 3204 || id == 772) // staves
{
return 809;
}
else
{
return 0x328;
}
}
public int GetBlockAnim()
{
if(playerEquipment[playerShield]== 3095 || playerEquipment[playerShield]== 3096 || playerEquipment[playerShield]== 9116 || playerEquipment[playerShield]== 3097 || playerEquipment[playerShield]== 3099 || playerEquipment[playerShield]== 3100 || playerEquipment[playerShield]== 3101 || playerEquipment[playerShield]== 2621 || playerEquipment[playerShield]== 2589 || playerEquipment[playerShield]== 3101 || playerEquipment[playerShield] == 1201 || playerEquipment[playerShield] == 6524 || playerEquipment[playerShield] == 1187|| playerEquipment[playerShield] == 1540 || playerEquipment[playerShield] == 1171 || hasCrystalShield())
{
return 0x484;
}
if (id == 9070 || id == 9071 || id == 4508) // godsword
{
return 2076;
}
if(playerEquipment[playerWeapon] == 1321 || playerEquipment[playerWeapon] == 1323 || playerEquipment[playerWeapon] == 1333 || playerEquipment[playerWeapon] == 6611 || playerEquipment[playerWeapon] == 1291 || playerEquipment[playerWeapon]== 4587 || playerEquipment[playerWeapon] == 1305 || playerEquipment[playerWeapon] == 1377)
{
return 404;
}
if(playerEquipment[playerWeapon] == 9070) //ags
{
return 410;
}
if(playerEquipment[playerWeapon] == 9071) //bgs
{
return 410;
}
if(playerEquipment[playerWeapon] == 4755) // veracs flail
{
return 2063;
}
if(playerEquipment[playerWeapon] == 6528) // obby maul
{
return 1666;
}
if(playerEquipment[playerWeapon] == 5698)
{
return 403;
}
if(playerEquipment[playerWeapon] == 4151) // whip
{
return 1659;
}
if(playerEquipment[playerWeapon] == 9093) // red whip
{
return 1659;
}
if(playerEquipment[playerWeapon] == 9094) // blue whip
{
return 1659;
}
if(playerEquipment[playerWeapon] == 9106) // white whip
{
return 1659;
}
if(playerEquipment[playerWeapon] == 839 || playerEquipment[playerWeapon] == 8001 || playerEquipment[playerWeapon] == 841 || playerEquipment[playerWeapon] == 843 || playerEquipment[playerWeapon] == 845 || playerEquipment[playerWeapon] == 847 || playerEquipment[playerWeapon] == 849 || playerEquipment[playerWeapon] == 851 || playerEquipment[playerWeapon] == 853 || playerEquipment[playerWeapon] == 855 || playerEquipment[playerWeapon] == 857 || playerEquipment[playerWeapon] == 837 || playerEquipment[playerWeapon] == 861 || playerEquipment[playerWeapon] == 4734 || playerEquipment[playerWeapon] == 859 || playerEquipment[playerWeapon] == 7603 || hasCrystalBow())
{
return 424;
}
if(playerEquipment[playerWeapon] == 4718)
{
return 424;
}
if(playerEquipment[playerWeapon] == 4153) // maul
{
return 1666;
}
else
{
return 424;
}
}[/SPOIL]
public int GetWepAnim(int id) - attack Anim
public int GetRunAnim(int id) - Run Anim
public int GetWalkAnim(int id) - walk anim
public int GetStandAnim(int id) - Stand anim
public int GetBlockAnim() - Block anim
There i told you the answerif(id == 3098) - Wepon id
{
return 401; - Anim
}
okay u sir learn to do ctrl f in client.java find where your walk animation id is and plug in ur emote and weapon id
help!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |