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);

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