Skip to content

PvP skills reward.

Featured Replies

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.

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

 

Btw, I will test it. Thanks!

  • Author

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.

Very good work An4rchy !!

 

Usefull code,very good work!

  • 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

                                  ^

 

  • Author

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.

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

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

  • 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

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.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.