#Save players inventory
1 messages · Page 1 of 1 (latest)
{savedinv::%player%}
and that stays after the sever stops does it?
massive stays after server stops
I tried something similar, but it came up with an error saying it won't save
alright, I'll give it a try, ty
it's like table
ah cool, that works, ty. How would I then give the player those items back? I've tried some things that I thought would work, but they don't seem to sadly
command /savetools [<text>]:
trigger:
if arg-1 is not set:
send "&c&l【RANDOM】&cUse &b/savetools <Название>"
stop
else if arg-1 = "def": #- УБРАТЬ "#"
send "&c&l【RANDOM】&cMake another name"
stop
clear {tools::%arg-1%::*}
loop all items in player's inventory:
add loop-item to {tools::%arg-1%::*}
send "&c&l【RANDOM】&ball items are saved in to: &6%arg-1%"
command /loadtools [<text>]:
trigger:
if arg-1 is not set:
send "&c&l【RANDOM】&cUse &b/loadtools <Название>"
stop
loop {tools::%arg-1%::*}:
add loop-value to player's inventory
here is mine skript to save items in player's inventory
it not really good example
some old
but it works :З
that's not the point :]
spoonfeeding is giving someone code without any explenation at all
and that skript doesn't actually give me exactly what I want, so I will still need to change it slightly anyway
if you would give them example code (THAT WORKS) and add comments explaining what everything does, then it isn't spoonfeeding
no
exactly, so thank you, but no thank you
just, people won't learn as much as if you'd explain it to them
not necessarily
I understand each line of code, I just wouldn't have thought to put it together, I don't need an explanation of how it all works
Thank you! I've messed around with it a bit to get it to do what I need it to do, but the core bits are amazing, thank you :)