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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock