
set_pinv() should take a slot argument.
LadyCailinBot opened this issue ยท 2 comments
CMDHELPER-2890 - Reported by VergilPrime
pinv does but set_pinv doesn't. set_inventory_item kind of works but doesn't seem to work with armor values.
Comment by PseudoKnight
You can use an array index to specify the slot.
set_pinv(player(), array(3: array('type': 1, 'data': 0, 'qty': 1)))
Or dynamically...
@slot = 4
@inv[@slot] = array('type': 1, 'data': 0, 'qty': 1)
set_pinv(player(), @inv)