Page 1 of 1

[Help] Prize PVP Kill

Posted: Sat Jul 11, 2009 6:43 pm
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).

Re: [Help] Prize PVP Kill

Posted: Sun Jul 12, 2009 1:46 pm
by _DS_
Not a contribution, moved.

Re: [Help] Prize PVP Kill

Posted: Mon Jul 13, 2009 1:02 am
by andreds
Hello? Help-me? :(

Re: [Help] Prize PVP Kill

Posted: Mon Jul 13, 2009 2:44 am
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

Re: [Help] Prize PVP Kill

Posted: Sat Jul 18, 2009 10:25 pm
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.