[Help] Prize PVP Kill

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
andreds
Posts: 4
Joined: Sat Jul 11, 2009 5:36 pm

[Help] Prize PVP Kill

Post by andreds »

I am new in the area of Java and would ask that you please help me.

I'm trying to make each Custom PVP, example:
I kill a player in the way of "PVP" and will appear in my inventory "1 Item ID ...." and the point of PVP continue.

I was looking at the scripts I found some things:

Code: Select all

public void increasePvpKills()    {        setPvpKills(getPvpKills() + 1);        sendPacket(new UserInfo(this));        sendPacket(new ExBrExtraUserInfo(this));    }
Someone help me please? :roll:

Edit: I am using L2j Pack (3268).
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Help] Prize PVP Kill

Post by _DS_ »

Not a contribution, moved.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
andreds
Posts: 4
Joined: Sat Jul 11, 2009 5:36 pm

Re: [Help] Prize PVP Kill

Post by andreds »

Hello? Help-me? :(
User avatar
Copyleft
Posts: 253
Joined: Fri Feb 01, 2008 9:39 pm

Re: [Help] Prize PVP Kill

Post by Copyleft »

andreds wrote:Hello? Help-me? :(

Code: Select all

public void increasePvpKills()    {        int itemID = 1234;        int itemAmount = 1234;        this.getInventory().addItem("Reward", itemID, itemAmount, this, null);        setPvpKills(getPvpKills() + 1);        sendPacket(new UserInfo(this));        sendPacket(new ExBrExtraUserInfo(this));    }

code should work, but might bug out because of missing proper inventory update packet
Removed20180815
Posts: 93
Joined: Tue Jan 09, 2007 12:41 pm

Re: [Help] Prize PVP Kill

Post by Removed20180815 »

check this out! http://l2jserver.com/forum/viewtopic.php?f=73&t=12087 its exactly what you want! When some1 makes pvp the winner of the pvp get 1 item in inventory.
Post Reply