hello there im try to set remove item when u request rebirth but they give me error
can you help me
public boolean playerIsEligible(L2PcInstance player, int itemId, int itemAmount)
{
String itemName = ItemTable.getInstance().getTemplate(itemId).getName();
player.getInventory().getItemByItemId(itemId);
// Player has the required items, so we're going to take them!
player.getInventory().addItem("Rebirth Engine", itemId, itemAmount, player, null);
player.getInventory().removeItem("Rebirth Engine", 3470, 100, player, null);
player.sendMessage("Removed 100 gold bar from your inventory!");
itemName = null;
return true;
}
We've added 5% discounts for bulk purchases of Google accounts for orders of 300 or more, and 10% for orders of 500 or more. The discount is applied automatically when you place your order! The discount is indicated in the product title and description for each category.
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
Question
iAlreadyExist
hello there im try to set remove item when u request rebirth but they give me error
can you help me
public boolean playerIsEligible(L2PcInstance player, int itemId, int itemAmount) { String itemName = ItemTable.getInstance().getTemplate(itemId).getName(); player.getInventory().getItemByItemId(itemId); // Player has the required items, so we're going to take them! player.getInventory().addItem("Rebirth Engine", itemId, itemAmount, player, null); player.getInventory().removeItem("Rebirth Engine", 3470, 100, player, null); player.sendMessage("Removed 100 gold bar from your inventory!"); itemName = null; return true; }4 answers to this question
Recommended Posts