Jump to content
  • 0

Slots extras for Vip


crazyshock

Question

I want to create an option if the player is a VIP slots have more space in the buffer.

 

Exmple: BUFFS_MAX_AMOUNT = default is 20 e Dance 12 correct?

 

If the player would have more VIP.

exmpl: BUFFS_MAX_ = 30 and Dance/SONG = 20

which file must be changed to leave it the way I mentioned?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

com.l2jserver.gameserver.model.actor.L2Character.java

the answer is in that file!

Only file is needed as requested so i wont give u any more clues, java is the key to success :P

Link to comment
Share on other sites

  • 0

public int getMaxBuffCount(L2PcInstance player)
{
	if ( player.isVip())
	return Config.VIP_SLOTS + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));
	else 
		return Config.BUFFS_MAX_AMOUNT + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));
}

 

Will she work this way?

Link to comment
Share on other sites

  • 0

public int getMaxBuffCount(L2PcInstance player)
{
	if ( player.isVip())
	return Config.VIP_SLOTS + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));
	else 
		return Config.BUFFS_MAX_AMOUNT + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));
}

 

Will she work this way?

try it maybe will work. but make and config
Link to comment
Share on other sites

  • 0

are u getting any errors?

if not then replace it with this:

public int getMaxBuffCount(L2PcInstance player)
{
	if ( player.isVip())
	return 5 + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));
	else 
		return Config.BUFFS_MAX_AMOUNT + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION));
}

so u dont need to make config for it, if its still not working then there is probably something wrong with player.isVip()

Link to comment
Share on other sites

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