bump... need this..
|
Ok, so i go to use veng, as i am hit it doesn't apply any damage dealt back to the player who hit me. The appendVeng void just shows the forced text.
I'll show you my appendVeng.
*Note that my server has constitution
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.constitution - damage) > 0) { damage = (int)(damage * 0.75); if (damage > c.constitution) damage = c.constitution; appendHit(c, damage, 0, -1, false); } c.updateRequired = true; }
Someone help.
bump... need this..
try this.
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; }
It worked the very first time i casted veng. Now it's not working at all. Wow, this is odd.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |