Originally Posted by
Defiled-X
I had the same applyDead() its from Project-Explicity - It didn't work for me lol. But uhm would it go something like this?
Code:
if(!(c.npcIndex > 0) && c.inPits == false){
}
if (c.killerId != c.playerId)
o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
c.playerKilled = c.playerId;
if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
PlayerKilling.addHostToList(o, c.connectedFrom);
If(c.inWild()) {
o.pcPoints++;
o.sendMessage("You have received a point, you now have "+o.pcPoints+" pk points.");
} else {
o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
}
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}
I don't know anywhere else and where i just put it gives me 100 errors
Yes It's in the right spot.
Code:
if(o.duelStatus == 5) {
o.duelStatus++;
Code:
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) {
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
The part i Highlighted, Not sure if you need that part, but i do for mine so if u get errors change it.
P.s I moved the
Code:
if(o.duelStatus == 5) {
o.duelStatus++;
If you dont understand what i'm doing lol
So it'd look something like this --
DONT Copy as this is my applyDead but just giving you an example
Code:
if(c.duelStatus != 6) {
c.killerId = findKiller();
if(o != null) {
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
c.pcPoints += 5;
o.sendMessage("You recieved 5 PEP");
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.");
}
}
}
Originally Posted by
yonacool
lol? you do know 100 errors is probably a brasket
Code:
if(!(c.npcIndex > 0) && c.inPits == false){
if (c.killerId != c.playerId) {
o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
c.playerKilled = c.playerId;
if(c.inWild()) {
if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
PlayerKilling.addHostToList(o, c.connectedFrom);
o.pcPoints++;
o.sendMessage("You have received a point, you now have "+o.pcPoints+" pk points.");
} else {
o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
}
}
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}
try that
all you did was put the brackets in a line that's not going to solve anything...