Jump to content

[Guide]Item reward for pvp/pk kill.


Recommended Posts

Ok first of to make it clear...If you dont know what eclipse means, how to complie or how to change the code then leave this topic and go here...http://www.maxcheaters.com/forum/index.php?topic=3400.0

 

I will use L2j interlude pack for this but you can use any, of any revision with no changes...

 

Okay go to gameserver.model.actor.instance.L2PcInstance.java

 

Here comes to reward for PVP kill

 

Go to line 4538...You should see something like this

 

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

 

Okay now add this after it...

 

        // Give x y for a pvp kill
	addItem("Loot", x, y, this, true);
	sendMessage("You won y x for a pvp kill!");

 

NOTE! x IS THE ITEM ID AND y IS THE AMMOUNT!

 

 

============================================================

 

Okay now reward for PK kill

 

 

Go to line 4605...You should see this

 

        // Add karma to attacker and increase its PK counter
        setPkKills(getPkKills() + 1);
        setKarma(getKarma() + newKarma);

 

 

Add the same code as above and players are gonna get reward for PK kill!

 

Note! PvP kill means when a player kills a flagged player and gets a pvp point and PK kill means when a player kills a while player and gets a PK point and karma! There is a huge difference

 

Funny for high rate servers...

 

Cheers ^^

Link to comment
Share on other sites

Pretty good one. All the big L2J servers have this feature, but I think it's already posted here.

 

its not already posted :) i never seen a server with that feature anyway

 

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