wrong case id.
|
vengeance has never worked on my sever and i just tried to fix it again and i absolutely cannot figure out what is wrong.
my method here is in playerassistant.java
here is where it is in clickingbuttons.javaCode:public void castveng() { if(c.playerLevel[6] < 94) { c.sendMessage("You need a magic level of 94 to cast this spell."); return; } if(c.playerLevel[1] < 40) { c.sendMessage("You need a defence level of 40 to cast this spell."); return; } if(!c.getItems().playerHasItem(9075, 4) || !c.getItems().playerHasItem(557, 10) || !c.getItems().playerHasItem(560, 2)) { c.sendMessage("You don't have the required runes to cast this spell."); return; } if(System.currentTimeMillis() - c.lastCast < 30000) { c.sendMessage("You can only cast vengeance every 30 seconds."); return; } if(c.vengOn) { c.sendMessage("You already have vengeance casted."); return; } c.startAnimation(4410); c.gfx100(725);//Just use c.gfx100 c.getItems().deleteItem2(9075, 4); c.getItems().deleteItem2(557, 10);//For these you need to change to deleteItem(item, itemslot, amount);. c.getItems().deleteItem2(560, 2); refreshSkill(6); c.vengOn = true; c.lastCast = System.currentTimeMillis(); }
im sure it is the right case and all. the weird thing to me is that vengother works even though this one wont. pleasee help me.Code:case 118098: c.getPA().castveng(); break;
but thats what it says in my cmd. 118098
i dunno if mines any different but here.
Code:case 118098: c.getPA().castVeng(); break;add this is combatassistant:Code:public void castVeng() { if (c.playerLevel[6] < 94) { c.sendMessage("You need a magic level of 94 to cast this spell."); return; } if (c.playerLevel[1] < 40) { c.sendMessage("You need a defence level of 40 to cast this spell."); return; } if (!c.getItems().playerHasItem(9075, 4) || !c.getItems().playerHasItem(557, 10) || !c.getItems().playerHasItem(560, 2)) { c.sendMessage("You don't have the required runes to cast this spell."); return; } if (System.currentTimeMillis() - c.lastCast < 30000) { c.sendMessage("You can only cast vengeance every 30 seconds."); return; } if (c.vengOn) { c.sendMessage("You already have vengeance casted."); return; } c.startAnimation(4410); c.gfx100(726);// Just use c.gfx100 c.getItems().deleteItem2(9075, 4); c.getItems().deleteItem2(557, 10);// For these you need to change to // deleteItem(item, itemslot, // amount);. c.getItems().deleteItem2(560, 2); addSkillXP(10000, 6); refreshSkill(6); c.vengOn = true; c.lastCast = System.currentTimeMillis(); }
Code:public void appendVengeance(int otherPlayer, int damage) { if (damage <= 0) return; Player o = Server.playerHandler.players[otherPlayer]; o.forcedText = "Taste Vengeance!"; o.forcedChatUpdateRequired = true; o.updateRequired = true; o.vengOn = false; if ((o.playerLevel[3] - damage) > 0) { damage = (int)(damage * 0.75); if (damage > c.playerLevel[3]) { damage = c.playerLevel[3]; } c.setHitDiff2(damage); c.setHitUpdateRequired2(true); c.playerLevel[3] -= damage; c.getPA().refreshSkill(3); } c.updateRequired = true; }
gl m8
thanks will try.
still no luck i really need this it is one of the only thing my players say i am missing (
how do i put the boolean in player.java exactly?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |