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.

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