Advertisement
Guest User

Wildy wep 2

a guest
Nov 28th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Under
  2. public void attackPlayer(int i) {
  3.  
  4. if (Server.playerHandler.players[i] != null) {
  5. if (Server.playerHandler.players[i].somethingtoidentifytheitemhere? && Server.playerHandler.players[c.playerIndex].duelStatus == 0) { // i block my memberStatus 3 from pvp here with .memberStatus = 3, delete the && part to do with dueling if you want the item disabled for dueling
  6. resetPlayerAttack();
  7.  
  8.  
  9. c.sendMessage("@red@This person is wearing an illegal item and cannot be attacked");
  10. return;
  11. }
  12.  
  13. if ((//c.wearingitemcodetocheckthis if they are wearing the item) && (c.duelStatus == 0)) // remove &&(c.duelStatus == 0) if you dont want the item used in duels.
  14. {
  15. resetPlayerAttack();
  16. c.teleportToX = 3090;
  17. c.teleportToY = 3500;
  18. c.sendMessage("You are wearing a non-pvp item.");
  19. return;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement