This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
tazerman2
hello guys i try to make this code to ask join party. but i can't and now is make a party without ask
hello guys i try to make this code to ask join party. but i can't. and now i have make a party without ask
how to make it join party only if player click ok in ask;
my code is this.
private static void createNewParty(PcInstance receiver, PcInstance requestor) { // Joining Party if (!receiver.isProcessingRequest()) { Party party = receiver.getParty(); if (party == null) receiver.setParty(party = new Party(receiver, requestor, LootRule.ITEM_RANDOM_SPOIL)); requestor.joinParty(party); } else { requestor.sendPacket(SystemMessageId.WAITING_FOR_ANOTHER_REPLY); } }4 answers to this question
Recommended Posts