bump i need this too.
|
Im here again Hybridpvp v3 and my pkp point system is messed up. Whenever people die they get pkp and when you win you dont get anything. How could you fix this?
bump i need this too.
Show me yourin playerassistant.java and i'll fix it for you.Code:public void applyDead() {
Code:public void applyDead() { c.respawnTimer = 10; c.isDead = false; if(c.duelStatus != 6) { //c.killerId = c.getCombat().getKillerId(c.playerId); c.killerId = findKiller(); Client o = (Client) Server.playerHandler.players[c.killerId]; if(o != null) { if(!(c.npcIndex > 0) && c.inPits == false){ } if (c.killerId != c.playerId) o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!"); if(c.inWild()){ c.pkPoints += 5; o.sendMessage("You have received 5 Pk Points"); } c.playerKilled = c.playerId; if(o.duelStatus == 5) { o.duelStatus++; } } } c.poisonDamage = 0; c.faceUpdate(0); c.npcIndex = 0; c.playerIndex = 0; c.stopMovement(); if(c.duelStatus <= 4) { c.sendMessage("Oh dear you are dead!"); } else if(c.duelStatus != 6) { c.sendMessage("You have lost the duel!"); } resetDamageDone(); c.specAmount = 10; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.lastVeng = 0; c.vengOn = false; resetFollowers(); c.attackTimer = 10; removeAllWindows(); c.tradeResetNeeded = true; }
Try this.
If you get any errors, like 100 errors, add or take out a bracket. If this does not work, then use thisCode:public void applyDead() { c.respawnTimer = 10; c.isDead = false; if(c.duelStatus != 6) { //c.killerId = c.getCombat().getKillerId(c.playerId); c.killerId = findKiller(); Client o = (Client) Server.playerHandler.players[c.killerId]; if(o != null) { if(!(c.npcIndex > 0) && c.inPits == false){ } if(c.inWild()) return; if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { o.pkPoints = (o.pkPoints + 5); o.sendMessage("You recieved 5 Pk Points"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; } else { o.sendMessage("You do not recieve Pk Points because you have killed " +c.playerName+ " twice in a row."); } } } if(o.duelStatus == 5) { o.duelStatus++; } } } c.poisonDamage = 0; c.faceUpdate(0); c.npcIndex = 0; c.playerIndex = 0; c.stopMovement(); if(c.duelStatus <= 4) { c.sendMessage("Oh dear you are dead!"); } else if(c.duelStatus != 6) { c.sendMessage("You have lost the duel!"); } resetDamageDone(); c.specAmount = 10; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.lastVeng = 0; c.vengOn = false; resetFollowers(); c.attackTimer = 10; removeAllWindows(); c.tradeResetNeeded = true; }
Code:public void applyDead() { c.respawnTimer = 10; c.isDead = false; if(c.duelStatus != 6) { //c.killerId = c.getCombat().getKillerId(c.playerId); c.killerId = findKiller(); Client o = (Client) Server.playerHandler.players[c.killerId]; if(o != null) { if(!(c.npcIndex > 0) && c.inPits == false){ } if (c.killerId != c.playerId) if(c.inWild()) return; o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!"); o.pkPoints += 5; o.sendMessage("You have received 5 Pk Points"); c.playerKilled = c.playerId; if(o.duelStatus == 5) { o.duelStatus++; } } } c.poisonDamage = 0; c.faceUpdate(0); c.npcIndex = 0; c.playerIndex = 0; c.stopMovement(); if(c.duelStatus <= 4) { c.sendMessage("Oh dear you are dead!"); } else if(c.duelStatus != 6) { c.sendMessage("You have lost the duel!"); } resetDamageDone(); c.specAmount = 10; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.lastVeng = 0; c.vengOn = false; resetFollowers(); c.attackTimer = 10; removeAllWindows(); c.tradeResetNeeded = true; }
Replace your void applydead with:
Code:public void applyDead() { c.respawnTimer = 15; c.isDead = false; if(c.duelStatus != 6) { //c.killerId = c.getCombat().getKillerId(c.playerId); c.killerId = findKiller(); Client o = (Client) Server.playerHandler.players[c.killerId]; if(o != null) { if(!(c.npcIndex > 0) && c.inPits == false){ } if (c.killerId != c.playerId) o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!"); if(c.inWild()){ c.pkPoints += 1; o.sendMessage("You have received 1 PkPoint, you now have "+c.pkPoints+" pk points!"); } c.playerKilled = c.playerId; if(o.duelStatus == 5) { o.duelStatus++; } } } c.faceUpdate(0); c.npcIndex = 0; c.playerIndex = 0; c.stopMovement(); if(c.duelStatus <= 4) { c.sendMessage("Oh dear you are dead!"); } else if(c.duelStatus != 6) { c.sendMessage("You have lost the duel!"); } resetDamageDone(); c.specAmount = 10; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.lastVeng = 0; c.vengOn = false; resetFollowers(); c.attackTimer = 10; }
Alright, also. When you win a fight you dont gain exp.
Not getting what your saying, you want to get exp like 100k xp when you fight? or what?
They say they dont get ANYTHING for winning.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |