int itema = orb of armadyl;
int itemb = battlestaff;
int itemc = itema + itemb;
|
|

now i know to some of u this is going to be the most stupid question you probbly ever seen but i have just started developing a server and its the first time ive coded since 2009 so i kinda need a memory referrer.
ok so how can i make it so that if i use "item a" on "item b" to make it = "itemc"?
ex: orb of armadyl + battlestaff = armadyls battlestaff.
will rep++ helpful answer!

int itema = orb of armadyl;
int itemb = battlestaff;
int itemc = itema + itemb;

i know try creating public int orb of armadyl and public int battlestaff
then trying that? im still learning java
itemon
Code:if ((itemUsed == orb id && useWith == staff id) || (itemUsed == staff id && useWith == orb id)) { if (c.getItems().playerHasItem(orb id, 1)) { c.getItems().deleteItem(orb id, c.getItems().getItemSlot(orbid), 1); c.getItems().deleteItem(staffid, c.getItems().getItemSlot(staffid), 1); c.getItems().addItem(armastaff,1); c.sendMessage("You craft a staff of armadyl."); } else { c.sendMessage("You cannot use those items together!"); } }
| « [PI] Adding Loyalty Titles | Need help making Client.jar » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |