Daniel0576 12 Posted September 19, 2016 Report Share Posted September 19, 2016 How would i go on about using an item on another item to get an upgraded item. I hope that made any sence. Link to comment Share on other sites More sharing options...
Mathy 344 Posted September 19, 2016 Report Share Posted September 19, 2016 (edited) 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, 2016 by mathy 1 Link to comment Share on other sites More sharing options...
Madara 767 Posted September 19, 2016 Report Share Posted September 19, 2016 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 Link to comment Share on other sites More sharing options...
Mathy 344 Posted September 19, 2016 Report Share Posted September 19, 2016 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 Link to comment Share on other sites More sharing options...
Madara 767 Posted September 19, 2016 Report Share Posted September 19, 2016 Not all sources are the same Link to comment Share on other sites More sharing options...
Sky 213 Posted September 19, 2016 Report Share Posted September 19, 2016 I can help you. What base are you using? Link to comment Share on other sites More sharing options...
Mathy 344 Posted September 19, 2016 Report Share Posted September 19, 2016 11 hours ago, Madara said: Not all sources are the same True, but I know which one he wants Thanks for offering your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now