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);
}
}
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