Jump to content

Recommended Posts

Posted

on l2pcinstance.java  under this code

setPvpKills(getPvpKills() + 1);

add thiss

int randitem;
randitem = integer(random() * 6 +1);

if (randitem = 6)
{
addItem("Loot", ITEM ID, ITEM COUNT, this, true);
sendMessage("You gain X Y item for your pvp");

credits franky. but i edited it , on franky code its 100% to loot item

Posted

if you get a pvp kill , you have 10% chance to loot an item on your inventory (u can add any item you want) but i need it needs some fixes to work because my eclipse dont shoup my errors when im typing the code and i have problem on fixing the code

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