#Save players inventory

1 messages · Page 1 of 1 (latest)

mossy torrent
#

Hey, is it possible to save the players inventory to a list and it keeps after the server stops?

mossy torrent
#

and that stays after the sever stops does it?

inner fjord
#

massive stays after server stops

mossy torrent
#

I tried something similar, but it came up with an error saying it won't save

#

alright, I'll give it a try, ty

inner fjord
#

it's like table

mossy torrent
#

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

inner fjord
# mossy torrent ah cool, that works, ty. How would I then give the player those items back? I've...
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

inland hollow
inner fjord
#

but it works :З

inland hollow
#

that's not the point :]

mossy torrent
#

I'm still learning from it

inland hollow
#

spoonfeeding is giving someone code without any explenation at all

mossy torrent
#

and that skript doesn't actually give me exactly what I want, so I will still need to change it slightly anyway

inland hollow
#

if you would give them example code (THAT WORKS) and add comments explaining what everything does, then it isn't spoonfeeding

mossy torrent
#

does it really matter?

#

no

inland hollow
#

no

mossy torrent
#

exactly, so thank you, but no thank you

inland hollow
#

just, people won't learn as much as if you'd explain it to them

mossy torrent
#

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

mossy torrent