I try my players when add a new sub village master take from them 200 coin's...i manage to do that: when a player have 0 coins the master work just i want but when player have at least 1 coin village master print "message incorrect item count" and he add the sub class here is the code any help will be appreciate..
if (Config.SUBCLASS_WITH_ITEM_AND_NO_QUEST)
{
L2ItemInstance coinItem = player.getInventory().getItemByItemId(3481);
if (coinItem == null)
{
player.sendMessage("Sorry you must give me \"200 Coin's\" for each subclass and you dont have.");
player.setLocked(false);
return;
}
if (allowAddition)
{
player.destroyItemByItemId("Quest", 3481, 200, this, true);
}
}
Dear players,
19.04 at 06:00 server time, the Airin server will be updated to Chronicle 2.
- The x2 updater will be disabled on April 18, 2025, at 23:59 and will become available again during the update.
- Server rates will be increased to x2.25;
- The siege of Innadril will take place on April 27 at 16:00 server time;
- Bonus Start will begin after the restart! Characters created after April 16, 00:00 will receive rewards.
You can download the full client for Airin C2 from the following link. Do not run the updater until tomorrow's update.
Question
sakisd
Hi mates I need some help
I try my players when add a new sub village master take from them 200 coin's...i manage to do that: when a player have 0 coins the master work just i want but when player have at least 1 coin village master print "message incorrect item count" and he add the sub class here is the code any help will be appreciate..
5 answers to this question
Recommended Posts