Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + player.sendMessage("You must be in party of 2-9 members to use the teleport!");
- + return;
- + }
- +
- + else if(actualCommand.equalsIgnoreCase("party"))
- + {
- + for (final L2PcInstance temp : player.getParty().getPartyMembers())
- + {
- + temp.teleToLocation(80139, 148616, -3559, true);
- + }
- + }
- player.teleToLocation(-21598, 185328, -5646);
- com.l2jfrozen.gameserver.model.actor.instance.L2TeleporterInstance.java
- http://pastebin.com/qZEk59QP
- And edit the ( player.teleToLocation(-21598, 185328, -5646); )
- The use at Gatekeeper HTML
- <a action="bypass -h npc_%objectId%_party" msg="811;Party Zone">Party Zone</a>
- player.sendMessage("You don't have the sufficient access level to teleport there.");
- }
- return;
- }
- }
- + if (actualCommand.equalsIgnoreCase("party"))
- + {
- + if (player.getParty() == null)
- + {
- + player.sendMessage("You must be in party of 5-9 members to use the teleport!");
- + return;
- + }
- +
- + if (player.getObjectId() != player.getParty().getPartyLeaderOID())
- + {
- + player.sendMessage("You must be party leader to use the teleport!");
- + return;
- + }
- +
- + int NumberPartyMembers = 0;
- + for (final L2PcInstance temp : player.getParty().getPartyMembers())
- + {
- + NumberPartyMembers++;
- + }
- +
- + if(NumberPartyMembers < 2 && NumberPartyMembers > 9)
- + {
- + player.sendMessage("You must be in party of 2-9 members to use the teleport!");
- + return;
- + }
- +
- + else if(actualCommand.equalsIgnoreCase("party"))
- + {
- + for (final L2PcInstance temp : player.getParty().getPartyMembers())
- + {
- + temp.teleToLocation(80139, 148616, -3559, true);
- + }
- + }
- +
- + }
- st = null;
- actualCommand = null;
- super.onBypassFeedback(player, command);
Advertisement
Add Comment
Please, Sign In to add comment