Jump to content

Question

Posted

Hello MaxCheaters...i added party teleporter on my pack but i need the party zone check..i mean when the party get lower than 5 members inside party zone all the players should be teleported back to gatekeeper..i dont know if it counts but i have the multifunction zone added allready

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
34 minutes ago, MoNsT3ReN4RgY said:

Hello MaxCheaters...i added party teleporter on my pack but i need the party zone check..i mean when the party get lower than 5 members inside party zone all the players should be teleported back to gatekeeper..i dont know if it counts but i have the multifunction zone added allready

 

You do this at enter and exist/teleport/logout, but you don't check the class like this guy needs to.

 

Edited by Trance
  • 0
Posted

In L2Party.java find the method:

public void removePartyMember

and under 

getMembers().remove(player);

Add an example of code:

if (player.isInsideZone(ZoneId.PVP))
{
	if (getMemberCount() < 5)
	{
		getMembers().forEach(s -> s.teleToLocation(TeleportWhereType.TOWN));
	}
}

 

  • 0
Posted
On 5/18/2020 at 5:16 PM, EdithFinch said:

In L2Party.java find the method:


public void removePartyMember

and under 


getMembers().remove(player);

Add an example of code:


if (player.isInsideZone(ZoneId.PVP))
{
	if (getMemberCount() < 5)
	{
		getMembers().forEach(s -> s.teleToLocation(TeleportWhereType.TOWN));
	}
}

 

i'm getting these errors tried to chance getMembers() to GetPartyMembers() ..but i am getting errors on teleportwheretype.town and zoneid.pvp

Χωρίς τίτλο.png

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
Answer this question...

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