Probably wrong inventory option.
|
|
I'm not sure why this won't work, because I've never had an issue before, but I'm trying to make it so you use 5000 gano flakes on a mycillum poncho to make a ganodermic ponch, but it does nothing.
I changed it many times, but nothing. Thanks!Code:if (player.getEquipment().getWeaponId() == -1 && itemUsed.getId() == 22451 && usedWith.getId() == 22456) { if (player.getInventory().containsItem(22451, 5000) && (player.getInventory().containsItem(22456, 1))) { player.getInventory().deleteItem(22456, 1); player.getInventory().deleteItem(22451, 5000); player.getInventory().addItem(22490, 1); player.getDialogueManager().startDialogue("Ganodermic"); return; } } }
Probably wrong inventory option.

You have one extra bracket in that block if that makes a difference.
Edit: Double check and make sure the other item on item methods you have still work properly.

You probably placed that check at the bottom of the block, could be unreachable. Try and place it somewhere in the middle of the others or something.
Try below;
Code:if (itemUsed.getId() == LeatherCrafting.NEEDLE.getId() || usedWith.getId() == LeatherCrafting.NEEDLE.getId()) { if (LeatherCrafting .handleItemOnItem(player, itemUsed, usedWith)) { return; } }

| « High Revision Items | Edgeville Nulling players? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |