Jump to content
  • 0

Question

Posted

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?

6 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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?

  • 0
Posted

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
  • 0
Posted

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

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