Jump to content
  • 0

[Help] About PvP skill reward


Question

Posted

I want to add on some pvp's players to obtain a skill of my choise...for exmple if a player reach 500 pvp to get skill Braveheart etc... how can i make this? :)

11 answers to this question

Recommended Posts

  • 0
Posted

if (activeChar.getPvpKills() >= 500)

    activeChar.addSkill(SkillTable.getInstance().getInfo(440, 1));

 

add it in EnterWorld.java

  • 0
Posted

after what line should i add this? and if i want more skills 5 or 10 skills same line souldnt there be some other line after 1 skill to add other one? sorry for my bad english and also i dont know about java much ty

  • 0
Posted

if (activeChar.getPvpKills() >= 500)

    activeChar.addSkill(SkillTable.getInstance().getInfo(440, 1));

 

add it in EnterWorld.java

after what line should i add this? and if i want more skills 5 or 10 skills same line souldnt there be some other line after 1 skill to add other one? sorry for my bad english and also i dont know about java much ty

try in EnterWorld.java

loled. Rio try to read the class to understand what means all lines

  • 0
Posted

if (activeChar.getPvpKills() >= 500)

    activeChar.addSkill(SkillTable.getInstance().getInfo(440, 1));

 

add it in EnterWorld.java

^^

 

instead of <= use == its equal.

  • 0
Posted

You can also add it in L2PcInstance.java

At the Public void "increasePvpKills"

and add behind the line with "setPvpKills(getPvpKills() + 1);"

 

if(getPvpKills()== 500)

{

addSkill(SkillTable.getInstance().getInfo(440, 1));

}

 

This way you can also add items as rewards and other things. And its not added again evry time you login like the above example.

(i didnt test this though but it should work)

  • 0
Posted

You can also add it in L2PcInstance.java

At the Public void "increasePvpKills"

and add behind the line with "setPvpKills(getPvpKills() + 1);"

 

This way you can also add items as rewards and other things. And its not added again evry time you login like the above example.

(i didnt test this though but it should work)

The effect will be temporary.

Cannot use equal.

Logically

 

 

  • 0
Posted

I was in testing PcInstance.java, and when I restart I removed the skill.

something else, and I added to give me another 200 next skill to pvp.

and did not work!!

Someone help me?

 

    if(getPvpKills()== 100)
    {
       addSkill(SkillTable.getInstance().getInfo(3156, 1));
    }
     if (getPvpKills()== 200)
    {
       addSkill(SkillTable.getInstance().getInfo(3157, 1));
    }

  • 0
Posted

@AlexCardyz

Enterworld.java

 

+          if(activeChar.getPvpKills() >= 100)
+	    {
+	       activeChar.addSkill(SkillTable.getInstance().getInfo(3156, 1));
+	    }
+	    if (activeChar.getPvpKills() >= 200)
+	    {
+	       activeChar.addSkill(SkillTable.getInstance().getInfo(3157, 1));
+	    }

 

L2PcInstance.java

 

            // Add karma to attacker and increase its PK counter
		setPvpKills(getPvpKills() + 1);

+           if(getPvpKills() >= 100)
+	    {
+	       addSkill(SkillTable.getInstance().getInfo(3156, 1));
+	    }
+	    if (getPvpKills() >= 200)
+	    {
+	       addSkill(SkillTable.getInstance().getInfo(3157, 1));
+	    }

 

I think combining both is the best way.

  • 0
Posted

@AlexCardyz

Enterworld.java

 

+          if(activeChar.getPvpKills() >= 100)
+	    {
+	       activeChar.addSkill(SkillTable.getInstance().getInfo(3156, 1));
+	    }
+	    if (activeChar.getPvpKills() >= 200)
+	    {
+	       activeChar.addSkill(SkillTable.getInstance().getInfo(3157, 1));
+	    }

 

L2PcInstance.java

 

            // Add karma to attacker and increase its PK counter
		setPvpKills(getPvpKills() + 1);

+           if(getPvpKills() >= 100)
+	    {
+	       addSkill(SkillTable.getInstance().getInfo(3156, 1));
+	    }
+	    if (getPvpKills() >= 200)
+	    {
+	       addSkill(SkillTable.getInstance().getInfo(3157, 1));
+	    }

 

I think combining both is the best way.

 

Specifically what part would go in the Enterworld.java  ??

:/

 

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


  • Posts

    • Perfect way to experience L2 without the brutal official grind. The progression here is so much smoother and faster, you get to the fun PvP and epic raids way quicker. The custom stuff keeps it fresh too. Definitely worth diving into!
    • L2-Getwork server highly customized with high-stats https://l2server.eu/ https://discord.gg/SsVhm7R Rates: L2 High Five fully customized Getwork Style with High Stats and Enchant ExP/Sp: 75x (custom) Drop/Spoil: 1x (custom) Safe: 500 Max: 50 000   Enchant System: Normal Scrolls: 93% - fail - decrease enchant by 20 Blessed Scrolls: 96% - fail - decrease enchant by 10   Armor Max Enchant D-Grade: +1000 Max Enchant C-Grade: +2000 Max Enchant B-Grade: +3000 Max Enchant A-Grade: +4000 Max Enchant S-Grade: +5000   Weapons Max Enchant D-Grade: +5000 Max Enchant C-Grade: +10000 Max Enchant B-Grade: +15000 Max Enchant A-Grade: +20000 Max Enchant S-Grade: +25000 - 50000   Fir Tree Branch (Weapon): +100 into Weapons (max 50 000) Fir Tree Branch (Armor): +15 into Armor (max 5000) Road to Dvc Cloak Enchant: +1 into cloak (max +1000) Masks of Spirit/Demon Horns Enchants: +1 into Masks (max +10) Each accessories has different max enchant and chances Daily Missions (.missions) Collections (ALT + B) Gambling System(.gamble) - each pack cost different amount Gamble Points, different items How to get gambling points? - by killing Raid Bosses/Events or Completing Daily Missions. Clan Bonus VIP Bonuses (maximum level 10) Battlepass (maximum level 100) - by killing monsters Rebirth (starting in Parnassus) Everything in ALT+B Master's Buffs - 100 Small Glass Box (1 buff) Farm Zones: Custom Farm Zones: Ruin of Agony (Exp Zone) Underground Coliseum (Safe Exp Zone) DVC,Brigand,Frost are similiar farm zones with same monsters Dvc Brigand Stronghold Frost Lake Parnassus - TOP ZONE some of our features: .gamble,collections,battlepass,talent tree, rebirth        
    • https://www.mediafire.com/file/l905r1sd84hnovf/FileEdit.rar/file
  • Topics

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