• Hey! Register here to create your account, engage with the community, and talk about what is new!

How not to lose items when leaving a game and rejoining

Natural Power

New member
Joined
Mar 20, 2021
Messages
8
Reaction score
0
If you leave a game and come back your stuff is lost, how to code it so that it doesn't lose your items?
 
Solution
If you have noble, you can do:

Normal System:

Player event -> join game, player action -> load inv
Player event -> leave game, player action -> save inv

Not Normal System, but patches a dupe method:

Player event -> join game, player action -> load inv, call proccess -> saveInv
Proccess -> name: saveInv, player action -> save inv, control -> wait -> chest parameters: number: 3, call proccess -> saveInv


If you do not have noble, you can do:

Normal System:

Click this to see the first template
Click this to see the second template
Click this to see the third template
Click this to see the fourth template

Not Normal System, but patches a dupe method:

Click this to see the first template
Click this...

EvilsSouls

Forum adept
Overlord
Joined
Apr 16, 2021
Messages
208
Reaction score
18
If you have noble, you can do:

Normal System:

Player event -> join game, player action -> load inv
Player event -> leave game, player action -> save inv

Not Normal System, but patches a dupe method:

Player event -> join game, player action -> load inv, call proccess -> saveInv
Proccess -> name: saveInv, player action -> save inv, control -> wait -> chest parameters: number: 3, call proccess -> saveInv


If you do not have noble, you can do:

Normal System:

Click this to see the first template
Click this to see the second template
Click this to see the third template
Click this to see the fourth template

Not Normal System, but patches a dupe method:

Click this to see the first template
Click this to see the second template
Click this to see the third template
 
Last edited:
Solution

EvilsSouls

Forum adept
Overlord
Joined
Apr 16, 2021
Messages
208
Reaction score
18
@Natural Power Sry for the delay, i had to go, but in the first few hours, the link wasn't the correct one (it didn't have at all a template in it), i now fixed it, all templates should be now the correct ones.
 

Natural Power

New member
Joined
Mar 20, 2021
Messages
8
Reaction score
0
If you have noble, you can do:

Normal System:

Player event -> join game, player action -> load inv
Player event -> leave game, player action -> save inv

Not Normal System, but patches a dupe method:

Player event -> join game, player action -> load inv, call proccess -> saveInv
Proccess -> name: saveInv, player action -> save inv, control -> wait -> chest parameters: number: 3, call proccess -> saveInv


If you do not have noble, you can do:

Normal System:

Click this to see the first template
Click this to see the second template
Click this to see the third template
Click this to see the fourth template

Not Normal System, but patches a dupe method:

Click this to see the first template
Click this to see the second template
Click this to see the third template
Hey! Thank you so much!
I made it work but it didn't at first, I put different commands at different locations and found the "Wait" block in invSave made it malfunction, I just took out the block and now it works

I assume the wait block only saved inv after the person left and had their inv empty by spawn?
 

EvilsSouls

Forum adept
Overlord
Joined
Apr 16, 2021
Messages
208
Reaction score
18
What system did you use, because for me it didn't malfunction (i mean with system, if you used the "noble normal", "noble not normal" or "no noble normal" or "no noble not normal")
 
Top Bottom