Jump to content
  • 0

Need Help Adding Support Classes To Take Reward Inside A Party In The Pvp Zone


Question

Posted

Need Help adding support classes to take reward inside a party in the pvp zone. Does anyone have any clue on that ? 

 

for example if a dagger kills other char and a tank its in the same party with him tank will take reward as well from assisting him!

1 answer to this question

Recommended Posts

  • 0
Posted
L2Party party = getParty();
			if (this.isInsideZone(ZoneId.MULTIFUNCTION_ZONE))
			{
				if ((getPvpFlag() > 0) && (party != null))
				{
					for (L2PcInstance PartyMember : party.getMembers())
					{
						if (PartyMember.isInsideRadius(this, 1600, true, false) && (PartyMember != this) && Config.classes_ids_in_party_for_pvp.contains(PartyMember.getClassId().getId()))
						{
							L2MultiFunctionZone.givereward(PartyMember);
						}
					}
				}
			}

this add in increasepvp in l2pcinstance and also create config

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