Jump to content
  • 0

Give Character Custom Skill Based On Pvp Count?


brett16

Question

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?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

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.

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.

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

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