#Backpack Skript
1 messages · Page 1 of 1 (latest)
on right click with paper:
if event-item is paper with custom model data 1190005:
set {_ID} to 5nd line of the lore of the event-item
set {backpacks::open::%player%} to {_ID}
open chest inventory with 2 rows named "&7Sac à dos" to player
set {_n} to 0
loop {backpacks::items::%{backpacks::open::%player%}%::*}:
set slot {_n} of player's current inventory to loop-value
add 1 to {_n}
broadcast "&4%loop-value% &c%{_n}%"
on inventory close:
if {backpacks::open::%player%} is set:
loop 18 times:
set {backpacks::items::%{backpacks::open::%player%}%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
delete {backpacks::open::%player%}
broadcast "%{backpacks::items::%{backpacks::open::%player%}%::*}%"
But he only save the first slot
not the others
can anybody help me ?
I'd suggest switching up your way of soing this
this is resolved bruh i didn't know how to delete post
but i have this now..
#1075517378420543518