Jump to content
  • 0

Question

Posted

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

  • 0
Posted
8 hours ago, tazerman2 said:

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);
		}
	}

 

 

"Ask" thing is relative to wedding system which use the DlgAnswer.java packet. 

  • 0
Posted

You get party, bcs you use setParty there, which should be under answer. You should send there only the request using DlgAnswer, then it redirect to the method where you handle the answer. As Access said, check wedding request. 

Guest
This topic is now closed to further replies.


  • Posts

    • 💙 PRIDE ESSENCE X1  ✅ Start: 14.03.2026  ✅ UPDATE: SAMURAI CROW  ✅ ONLINE: 2000+  💜 NO P2W / BIG CLANS / INTERNATIONAL COMMUNITY / STAGE SYSTEM  🎮 Discord bonus: https://discord.gg/prideessence Pride Essence Official Server Wiki Here you can find all features, systems, and detailed information to fully understand the server.   - General Features - https://prideessence.club/general-features - Road Map - https://prideessence.club/roadmap/ - Class Balance – 14/03 - https://prideessence.club/class-balance-14-03/ - Referral System - https://prideessence.club/referral-system/ - Party Synergy System - https://prideessence.club/party-synergy-system/ - Dual Class System - https://prideessence.club/dual-class-system-3/ - Premium Account - https://prideessence.club/premium-account/ - Game Store - https://prideessence.club/game-store/ - L-Coin Store - https://prideessence.club/l-coin-store/ - Command Channel Skill Availability - https://prideessence.club/command-channel-skill-availability/ - Clan DKP System - https://prideessence.club/clan-dkp-system/ - Target Priority System - https://prideessence.club/target-priority-system/ - Skins - https://prideessence.club/skins/ - Players Inspect - https://prideessence.club/players-inspect/ - Gear Score Ranking - https://prideessence.club/gear-score-ranking/ - Guaranteed Enchant System - https://prideessence.club/guaranteed-enchant-system/ - Account Shield - https://prideessence.club/account-shield/ - VIP Level Ranking - https://prideessence.club/vip-level-ranking/ - Tournament - https://prideessence.club/tournament-2/ - Fortress Siege - https://prideessence.club/fortress-siege/ - Olympiad - https://prideessence.club/olympiad/ - Enchant and Compound Limit - https://prideessence.club/enchant-and-compound-limit/ - Enchant Rates - https://prideessence.club/enchant-rates/ - Pride World Marketplace - https://prideessence.club/pride-world-marketplace/ - Raid Boss Lootbox - https://prideessence.club/raid-boss-lootbox/
    • Dunno this mxc tricky website scammers everywhere.
    • ***DO NOT BUY WHAT IS POSTED HERE FOR FREE*** https://www.mediafire.com/file/mhjiaoipe6hohjm/Extender_Rev_222_by_Guytis.rar/file   It has everything Devs is offering for $450 USD with a license. Here it is, free and with source code. 
    • Hello, well obviously i dont have access to the server side, and neither have those guys in the picture, i thought it was something client side since they manage to have that...    Here is another example, Its essence server btw  
  • Topics

×
×
  • Create New...

Important Information

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..