Jump to content

PvP skills reward.


Recommended Posts

Hello everyone.

 

Since i had some time today, i decided to make a small share. I know it's been shared before 2 times, but AbsolutePower's one wasn't working and the other one had 4 or 5 options. This one got as many as you want, check configs.

 

Here: http://pastebin.com/Kz3fKvmq

 

Credits to me.

Link to comment
Share on other sites

Very good work An4rchy, also it's shared by Elfocrash with 5 options I think and works fine.

 

Btw, I will test it. Thanks!

Yeah, all of these shares related to pvp rewards are done with x pre-chosen options. I can't understand why nobody uses maps on configs.

Link to comment
Share on other sites

  • 2 weeks later...

I add it today to my pack but i get an error

compile:

    [javac] Compiling 1416 source files to C:\Users\Johnnie\workspace\Server\GameServer\build\classes

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

    [javac] C:\Users\Johnnie\workspace\Server\GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:8022: error: method getMaxLevel in class SkillTable cannot be applied to given types;

    [javac]                                        addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILLS_LIST.get(i), SkillTable.getInstance().getMaxLevel(Config.PVP_SKILLS_LIST.get(i))), true);

    [javac]                                                                                                                                        ^

    [javac]  required: int,int

    [javac]  found: Integer

    [javac]  reason: actual and formal argument lists differ in length

    [javac] 1 error

    [javac] 1 warning

Copy paste dosen't work so well

SkillTable.getInstance().getMaxLevel

                                  ^

 

Link to comment
Share on other sites

Try to change this:

SkillTable.getInstance().getMaxLevel(Config.PVP_SKILLS_LIST.get(i))), true)

to:

(int)SkillTable.getInstance().getMaxLevel(Config.PVP_SKILLS_LIST.get(i))), true)

 

But i can't get why it gives error. It shouldn't.

Link to comment
Share on other sites

  • 3 weeks later...

An4rchy you rock man, thx

is this functoinal for freya?

 

and i give u one question, i want to give an item in the pvp, but also i want to add exp/sp/fame..

can it be done? im asking you because im not experienced enough.

 

thanks in advance.

Link to comment
Share on other sites

very nice code An4rchy ^^

An4rchy you rock man, thx

is this functoinal for freya?

 

and i give u one question, i want to give an item in the pvp, but also i want to add exp/sp/fame..

can it be done? im asking you because im not experienced enough.

 

thanks in advance.

just use getInventory().addItem(id, count); as i remember

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

1 litle error ALLOW_PVP_SKILLS = Boolean.parseBoolean(alcardia.getProperty("AllowPvpSkills", "false"));

String PVP_SKILLS_LIST_VALUE = elcardia.getProperty("PvpSkillsList", "100,3100;");

 

alcardia is with red line. and i dont know what to do

 

i use Epilogue Client

Link to comment
Share on other sites

1 litle error ALLOW_PVP_SKILLS = Boolean.parseBoolean(alcardia.getProperty("AllowPvpSkills", "false"));

String PVP_SKILLS_LIST_VALUE = elcardia.getProperty("PvpSkillsList", "100,3100;");

 

alcardia is with red line. and i dont know what to do

I am crying. You put your config's name.
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
Reply to this topic...

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