Jump to content
  • 0

Give Character Custom Skill Based On Pvp Count?


Question

Posted

Hello, I am using the L2jserver.com latest HighFive master branch code. What I want is to give custom made skills from the skills/custom/10000-10099.xml to character based on their PVP count when  they reach certain numbers.

Example of this would be a character reaches a certain PVP count he earns a permanent skill.

500 PVPs skillid 100001

1000 PVPS skillid 100002

1500 PVPs skillid 100003

and so on.

How would I go about making this?

2 answers to this question

Recommended Posts

  • 0
Posted

 

if(activeChar.getPvpKills() < 500)
     return;
else if(activeChar.getPvpKills() < 1000)
     activeChar.addSkill(SkillTable.getInstance().getInfo(100001, 1), true);
else if(activeChar.getPvpKills() < 1500)
     ...

 

true stands for "store". Up to you.

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