Can Any1 say what is the problem in this piece of code, it causes errors:S
Can Any1 say what is the problem in this piece of code, it causes errors:S
----------------------------------------------------------------------------------------------------------------------------------------
Hello,
My base is espeon/z508.
like you may now there is allready added something for the vestalongsword to make it degrades, and finally break.
this is for item 13290, I changed to 525 cache so changed id to 13899.
Than I wanted to have all PvP armour's degrade, I added what I needed to add to player.java, no errors in that file.
Than I added this to Equipment.java, and it gives 100 errors something with class or interface, blahblah.
Piece in cose in Equpment.java:
Code:
if (p.equipment[3] == 13899 && p.degrade == 6000) {
p.degrades = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13887 && p.degrade1 == 6000) {
p.degrades1 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13893 && p.degrade2 == 6000) {
p.degrades2 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13905 && p.degrade3 == 6000) {
p.degrades3 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13902 && p.degrade4 == 6000) {
p.degrades4 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13884 && p.degrade5 == 6000) {
p.degrades5 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13890 && p.degrade6 == 6000) {
p.degrades6 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
if (p.equipment[3] == 13896 && p.degrade7 == 6000) {
p.degrades7 = true;
p.getActionSender().sendMessage(p, "Your PvP item has degraded.");
p.playerWeapon.setWeapon();
}
}
}
ITS ONLY THE STATIUS AND VESTA VERSION IN NON-CORRUPT.
I wanted to test if what i was currently doing is right before making all allready and in the end come to know it was all for nothing.
Thanks for reading.