Code:
case 53:
int p4 = 0;
int p6 = 0;
int usedWithSlot = inStream.readUnsignedWord();
int itemUsedSlot = inStream.readUnsignedWordA();
int interface1284 = inStream.readUnsignedWord();
int interfacek = inStream.readUnsignedWord();
int useWith = playerItems[usedWithSlot]-1;
int itemUsed = playerItems[itemUsedSlot]-1;
if(playerName.equalsIgnoreCase(ServerCP.Owner)) {
println("Item: "+useWith+" used with item: "+itemUsed);
println("usedwithslot: "+usedWithSlot+" itemusedslot: "+itemUsedSlot+" usewith: "+useWith+" p4: "+p4+" itemused: "+itemUsed+" p6: "+p6);
}
// item on item here
break;
where it says
Code:
// item on item here
i add the item on item but i dont know how to do it
it seems to me like it would be something like
Code:
if(itemID == #### && usedWith itemID == ####) {
code code code code code code
}
can somebody write that out for me