C'est plutôt simple en fait :
set {_SlotNo} to 0
while {_SlotNo} is less than 40:
set {Inventaire.%player%::%{_SlotNo}%} to slot {_SlotNo} of player
add 1 to {_SlotNo}
set {_SlotNo} to 0
while {_SlotNo} is less than 40:
set slot {_SlotNo} of player to {Inventaire.%player%::%{_SlotNo}%}
add 1 to {_SlotNo}
Tu attribues un numéro de la liste à un numéro de slot et tu remplis, où tu fais l'opération inverse.