Crystal icon indicating copy to clipboard operation
Crystal copied to clipboard

Equip slot issue

Open damianday opened this issue 1 year ago • 2 comments

You can equip any item into a slot if you circumvent client checks, again server doesn't do thorough check.

damianday avatar Jan 11 '24 18:01 damianday

Isn't this checked by

actor.CanEquipItem(temp, to)

brandc87 avatar Apr 17 '24 11:04 brandc87

The "CanUseItem" already checks that mount items can only be used on mounts, fishing items on fishing rod - but there does need to be an extra check to ensure the item type must be a socket item when not a mount/fishing item. Under this bit here

if ((item.Info.IsFishingRod || item.Info.Type == ItemType.Mount) && temp.Info.Type == ItemType.Socket) { Enqueue(p); return; }

Suprcode avatar Apr 17 '24 11:04 Suprcode