Originally Posted by
User
I am adding things like enchant and plankmake and am in inventoryoptionshandler under handleInterfaceOnInterface
problem is I cannot get the used spell's component id. here is the variables I get from the client using the current system with nothing left in the stream
inter: 149, component: 0, fromslot: 65535, toslot: 0, inter2: 430, usedwith: 20, itemused: 65535
component is always 0 which I assume is for the inventory interface, so I need the second interface's component but I don't see where I can get that. You seem to have more knowledge of the client maybe you understand where I can look for this?
Here if u havent converted it yet go to handleInterfaceOnInterface in inventoryoptionshandler and
replace this
Code:
int interfaceId = stream.readUnsignedShort();
int interfaceComponent = stream.readUnsignedShort();
int fromSlot = stream.readUnsignedShortLE();
int toSlot = stream.readUnsignedShort();
int interfaceId2 = stream.readInt() >> 16;
int usedWithId = stream.readUnsignedShortLE();
int itemUsedId = stream.readUnsignedShort();
with this
Code:
int hash2 = stream.readInt();
int fromSlot = stream.readShortLE();
int toSlot = stream.readShort();
int hash1 = stream.readInt();
int usedWithId = stream.readShortLE();
int itemUsedId = stream.readShort();
int interfaceId = hash1 >> 16;
int interfaceId2 = hash2 >> 16;
int interfaceComponent = hash1 & 0xFFFF;