Can you post the error code please
|
Im trying to add d claw special attack with this tutorial. http://www.rune-server.org/runescape...pecial-pi.html
Im getting 10 errors saying error cannot find symbol previous damage. I may sound like an idiot but i would really appreciate help, im new to coding we've all been there so if somebody could lead me in the right direction that would me much appreciated
Can you post the error code please
Code:src\server\game\players\Client.java:472: error: cannot find symbol getCombat().applyNpcMeleeDamage(npcIndex, 1, previousDamage / 2) ; ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:475: error: cannot find symbol getCombat().applyPlayerMeleeDamage(playerIndex, 1, previousDamag e / 2); ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:477: error: cannot find symbol damage4 = previousDamage % 2; ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:479: error: cannot find symbol previousDamage = previousDamage + 1; ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:479: error: cannot find symbol previousDamage = previousDamage + 1; ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:483: error: cannot find symbol getCombat().applyNpcMeleeDamage(npcIndex, 2, previousDamage); ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:486: error: cannot find symbol getCombat().applyPlayerMeleeDamage(playerIndex, 2, previousDamag e); ^ symbol: variable previousDamage location: class Client src\server\game\players\Client.java:490: error: cannot find symbol previousDamage = 0; ^ symbol: variable previousDamage location: class Client src\server\game\players\combat\CombatAssistant.java:314: error: cannot find symb ol applyNpcMeleeDamage(i, 2, c.previousDamage / 2); ^ symbol: variable previousDamage location: variable c of type Client src\server\game\players\combat\CombatAssistant.java:1029: error: cannot find sym bol applyPlayerMeleeDamage(i, 2, c.previousDamage / 2); ^ symbol: variable previousDamage location: variable c of type Client Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 10 errors Press any key to continue . . .
define the variable previousDamage
Note: Not sure if this will work 100% since I don't know the base other than that it's PI
Spoiler for PlayerConstants:
Then add to applyNpcMeleeDamage and applyPlayerMeleeDamageSpoiler for CombatAssistant:
Last edited by Delusional Tacos; 11-08-2013 at 08:38 AM. Reason: forgot stuff
Yeah i already solved it but thanks anyways , ur right btw all i did was add it in player.java , however the special attack bar for my dragon claws doesnt show up so i cant test if the spec works, anybody know how to add special attack bar? i tried adding it in itemassistant but its not working. Im gonna try to find a tutorial on it if anybody could help me that would be great.
Add this under sendWeapon
Spoiler for ItemAssistant:
Then add this under a break as "case 14484:"
Spoiler for CombatAssistant:
Alright im getting somewhere now . Now theres a spec bar and the right interface for claws , but i cant click the spec bar. It doesnt do anything, not even glow yellow.
Any ideas? Btw i didnt put in all that stuff for combatassistant, it gave me a bunch of errors so i followed the tutorial i use and added the top part of yours
Heres my combatassistantCode:case 14484: c.gfx0(1950); c.startAnimation(10961); c.doubleHit = true; c.usingClaws = true; c.specEffect = 5; c.specAccuracy = 9.9; c.specDamage = 1.10; c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase()); break;
You still need to add it to use a special, look for 4151 again, it should be somewhere along the lines of
if (c.specAmount >= 5)
Just add case 14484: under the other cases to make it 50% special
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |