Guest User

...

a guest
Jan 8th, 2015
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. player.sendMessage("You don't have the sufficient access level to teleport there.");
  2. }
  3.  
  4. return;
  5. }
  6. }
  7. + if (actualCommand.equalsIgnoreCase("party"))
  8. + {
  9. + if (player.getParty() == null)
  10. + {
  11. + player.sendMessage("You must be in party of 5-9 members to use the teleport!");
  12. + return;
  13. + }
  14. +
  15. + if (player.getObjectId() != player.getParty().getPartyLeaderOID())
  16. + {
  17. + player.sendMessage("You must be party leader to use the teleport!");
  18. + return;
  19. + }
  20. +
  21. + int NumberPartyMembers = 0;
  22. + for (final L2PcInstance temp : player.getParty().getPartyMembers())
  23. + {
  24. + NumberPartyMembers++;
  25. + }
  26. +
  27. + if(NumberPartyMembers < 2 && NumberPartyMembers > 9)
  28. + {
  29. + player.sendMessage("You must be in party of 2-9 members to use the teleport!");
  30. + return;
  31. + }
  32. +
  33. + else if(actualCommand.equalsIgnoreCase("party"))
  34. + {
  35. + for (final L2PcInstance temp : player.getParty().getPartyMembers())
  36. + {
  37. + temp.teleToLocation(80139, 148616, -3559, true);
  38. + }
  39. + }
  40. +
  41. + }
  42.  
  43. st = null;
  44. actualCommand = null;
  45. super.onBypassFeedback(player, command);
Advertisement
Add Comment
Please, Sign In to add comment