Posted September 19, 20168 yr comment_2018 How would i go on about using an item on another item to get an upgraded item. I hope that made any sence.
September 19, 20168 yr comment_2020 if (itemUsed == ITEM_TO_UPGRADE_ID && useWith == ITEM_TO_UPGRADE_ID) { c.sendMessage("You upgraded..."); c.getItems().deleteItem(ITEM_TO_UPGRADE_ID, 1); c.getItems().deleteItem(ITEM_TO_UPGRADE_ID, 1); c.getItems().addItem(UPGRADED_ITEM_ID, 1); } For example: 123 and 456 are used together to give 789 if (itemUsed == 123 && useWith == 456) { c.sendMessage("You upgraded..."); c.getItems().deleteItem(123, 1); c.getItems().deleteItem(456, 1); c.getItems().addItem(789, 1); } Edited September 19, 20168 yr by mathy
September 19, 20168 yr comment_2022 2 hours ago, Daniel0576 said: How would i go on about using an item on another item to get an upgraded item. I hope that made any sence. If you need help with this, PM me. It's simple once you locate the others
September 19, 20168 yr comment_2026 24 minutes ago, Madara said: If you need help with this, PM me. It's simple once you locate the others Take a look at my answer
September 19, 20168 yr comment_2166 11 hours ago, Madara said: Not all sources are the same True, but I know which one he wants Thanks for offering your help
Create an account or sign in to comment