Jump to content

Party Trade (HELP ME)


aldu

Recommended Posts

1 hour ago, Θα Σπασω Κουπες said:

What the actual FUCK?

It's a Spell, Takecare

 

OnTopic : any way i can't really understand what are you asking for but if you mean you don't want to enable Trade when player in party then on TradeRequest just do like

if(player.getParty() != null) {return;}

But if you want to disable Trade for Same Party Members then :

if(player.getParty() != null && player.getParty().containsPlayer(target.getActingPlayer())) { return; }

And if you want to enable it only if both are in same Paty then

if(player.getParty() == null || !player.getParty().containsPlayer(target.getActingPlayer())) { return; }

After all i feel that your question (if that's a question) is about something really different 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...