else { LOGGER.warn("No teleport destination with id:" + val); } player.sendPacket(ActionFailed.STATIC_PACKET); list = null; }
+@SuppressWarnings("unused") +private void doPartyTeleport(final L2PcInstance player, final int val) +{ + 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 < 5 && NumberPartyMembers > 9) + { + player.sendMessage("You must be in party of 5-9 members to use the teleport!"); + return; + } + + L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val); + // Teleport ID must be 99999 + if (list.getTeleId() == 99999) + { + for (final L2PcInstance temp : player.getParty().getPartyMembers()) + { + temp.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), true); + } + } +}
/** * Validate condition. * @param player the player * @return the int */ private int validateCondition(final L2PcInstance player) { if (CastleManager.getInstance().getCastleIndex(this) < 0) // Teleporter isn't on castle ground
And I also created the html: with the id 919192 as it writes:
But it doesnt working it teleportes me even if I am alone (I tester it with a single character no GM) Also Plz tell me how to add an item in order to let someone teleport. Happy Chrismtass!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Καλησπέρα ψάχνω για κάποιο πρόγραμμα-(interface) που να μπορώ να δω τα CD του αντιπάλου.Εχω δει σε βίντεο ότι υπάρχει κάτι τέτοιο αλλά όσο και αν έχω ψάξει δεν μπορώ να το βρω.
Παίζω στον Reborn x30.
Αν υπάρχει κάτι πείτε μου παρακαλώ το δωρεάν η με αγορά..
Ευχαριστώ!
I would like to know if the h5 skins work on client salvation 140?
I have the rev hi5 running on the salvation client, I would like to know if the skins I have for the h5 client work on the salvation client.
If it doesn't work, is there a link with skins for client salvation?
Question
alextoti13
hello I have this code:
And I also created the html: with the id 919192 as it writes:
(just to test it)
But it doesnt working it teleportes me even if I am alone (I tester it with a single character no GM) Also Plz tell me how to add an item in order to let someone teleport. Happy Chrismtass!
Link to comment
Share on other sites
27 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.