warc222

The use at Gatekeeper HTML

Sep 29th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1.  
  2. + player.sendMessage("You must be in party of 2-9 members to use the teleport!");
  3. + return;
  4. + }
  5. +
  6. + else if(actualCommand.equalsIgnoreCase("party"))
  7. + {
  8. + for (final L2PcInstance temp : player.getParty().getPartyMembers())
  9. + {
  10. + temp.teleToLocation(80139, 148616, -3559, true);
  11. + }
  12. + }
  13.  
  14.  
  15.  
  16.  
  17. player.teleToLocation(-21598, 185328, -5646);
  18.  
  19.  
  20.  
  21. com.l2jfrozen.gameserver.model.actor.instance.L2TeleporterInstance.java
  22.  
  23. http://pastebin.com/qZEk59QP
  24.  
  25. And edit the ( player.teleToLocation(-21598, 185328, -5646); )
  26. The use at Gatekeeper HTML
  27.  
  28.  
  29. <a action="bypass -h npc_%objectId%_party" msg="811;Party Zone">Party Zone</a>
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. player.sendMessage("You don't have the sufficient access level to teleport there.");
  37. }
  38.  
  39. return;
  40. }
  41. }
  42. + if (actualCommand.equalsIgnoreCase("party"))
  43. + {
  44. + if (player.getParty() == null)
  45. + {
  46. + player.sendMessage("You must be in party of 5-9 members to use the teleport!");
  47. + return;
  48. + }
  49. +
  50. + if (player.getObjectId() != player.getParty().getPartyLeaderOID())
  51. + {
  52. + player.sendMessage("You must be party leader to use the teleport!");
  53. + return;
  54. + }
  55. +
  56. + int NumberPartyMembers = 0;
  57. + for (final L2PcInstance temp : player.getParty().getPartyMembers())
  58. + {
  59. + NumberPartyMembers++;
  60. + }
  61. +
  62. + if(NumberPartyMembers < 2 && NumberPartyMembers > 9)
  63. + {
  64. + player.sendMessage("You must be in party of 2-9 members to use the teleport!");
  65. + return;
  66. + }
  67. +
  68. + else if(actualCommand.equalsIgnoreCase("party"))
  69. + {
  70. + for (final L2PcInstance temp : player.getParty().getPartyMembers())
  71. + {
  72. + temp.teleToLocation(80139, 148616, -3559, true);
  73. + }
  74. + }
  75. +
  76. + }
  77.  
  78. st = null;
  79. actualCommand = null;
  80. super.onBypassFeedback(player, command);
Advertisement
Add Comment
Please, Sign In to add comment