Jump to content
  • 0

[Help] PvP kill gain XP & Party gain XP


Question

Posted

I Have the gain XP & SP through pvp kill, What I'm not sure about is how to add XP & SP to a party if a party member gets a pvp kill. This is what I tried.

setPvpKills(getPvpKills() + 1);

if (Config.PVPEXPSP_SYSTEM)

{

addExpAndSp(Config.ADD_EXP, Config.ADD_SP);

}

setPvpKills(getPvpKills() +1);

if (Config.PVPEXPSP_SYSTEM && isInParty());

{

addExpAndSp(Config.ADD_EXP, Config.ADD_SP, Config.RATE_PARTY_XP, Config.RATE_PARTY_SP);

}

I'm really not sure what the variable would be to add the addExpAndSp configs to the party.

5 answers to this question

Recommended Posts

  • 0
Posted

I Have the gain XP & SP through pvp kill, What I'm not sure about is how to add XP & SP to a party if a party member gets a pvp kill. This is what I tried.

setPvpKills(getPvpKills() + 1);

if (Config.PVPEXPSP_SYSTEM)

{

addExpAndSp(Config.ADD_EXP, Config.ADD_SP);

}

setPvpKills(getPvpKills() +1);

if (Config.PVPEXPSP_SYSTEM && isInParty());

{

addExpAndSp(Config.ADD_EXP, Config.ADD_SP, Config.RATE_PARTY_XP, Config.RATE_PARTY_SP);

}

I'm really not sure what the variable would be to add the addExpAndSp configs to the party.

  • 0
Posted

	
public void increasePvpKills(L2Character target)
{
	if (target instanceof L2PcInstance
			&& AntiFeedManager.getInstance().check(this, target))
	{
		for(L2PcInstance partyMember: getParty().getPartyMembers())
			addExpAndSp(Config.ADD_EXP, Config.ADD_SP);
		// Add karma to attacker and increase its PK counter
		setPvpKills(getPvpKills() + 1);

		// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
		sendPacket(new UserInfo(this));
		sendPacket(new ExBrExtraUserInfo(this));
	}
}

i added 2 lines that add exp + sp to all party members

i didnt check it, do it by yourself

  • 0
Posted

	
public void increasePvpKills(L2Character target)
{
	if (target instanceof L2PcInstance
			&& AntiFeedManager.getInstance().check(this, target))
	{
		for(L2PcInstance partyMember: getParty().getPartyMembers())
			addExpAndSp(Config.ADD_EXP, Config.ADD_SP);
		// Add karma to attacker and increase its PK counter
		setPvpKills(getPvpKills() + 1);

		// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
		sendPacket(new UserInfo(this));
		sendPacket(new ExBrExtraUserInfo(this));
	}
}

i added 2 lines that add exp + sp to all party members

i didnt check it, do it by yourself

  • 0
Posted

.........................................................................................

thats how i show my disappointment, just add into increasePvpKills method, 2 lines:

		for(L2PcInstance partyMember: getParty().getPartyMembers())
			addExpAndSp(Config.ADD_EXP, Config.ADD_SP);

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

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