Steam Avatar
You aren't signed in

Save and Load Items

4 KB, 10 years ago, submitted by Alpinu

Original author is Destiny; reposted by Zack0Wack0 from which I downloaded and fixed this.

Thanks to Clockwork for the "ApSys save system"; all credit given to you for that. Thanks to Arix for the inspiration and a good reason to fix this. :)


Adds two events to the Player: "saveItem" and "loadItem". These are used to save what is in your inventory. For example, if you have a Rocket Launcher, Hammer and some custom item in your inventory, you can save them and then die or leave the server. Then when you come back, you can load these items and have them back again. Simple as that, really!


Usage:

on[X] > Player > saveItems

- This will save your current inventory to the server. Even if the server is shutdown, these will be retained.
- Clicking with nothing in your hands will save your inventory to have nothing in it, so unless that is what you intend to do, be careful!

on[X] > Player > loadItems

- This will load your previously saved inventory. NOTE: If you load without having previously saved on the server you are playing on, your current inventory will be erased and replaced with nothing. Be careful.
- If you save with a full inventory playing as a 6+ Slot Player and try to load items as a Standard (5-slot) Player, your inventory will not be loaded. This applies to any save that has a greater item amount than your max inventory allows.

Good luck, and enjoy!

Ozmar
Isn't there already one like this?
Ozmar
Sorry if I sounded mean, but the old one worked fine for me.
Alpinu
The old one would not work if you saved 2+ items previously and then tried saving only one. It would keep the save of the one you got rid of even though you saved over it. This fixes that problem. If you look at the comments of the old one, you can see a few people pointing that out. You didn't sound mean; it's a perfectly legitimate question. Thanks!
Blake Dienst
Who approved this, its already been released
Blake Dienst
Oh nvm sorry didnt read older comments, bravo for fixing this, should have happened a long time ago
Pacnet2010
Ban me from the whole RTB service. My BL_ID is 22696.
Pacnet2010
Ban me from the whole RTB service. My BL_ID is 22696.Ban me from the whole RTB service. My BL_ID is 22696.Ban me from the whole RTB service. My BL_ID is 22696.Ban me from the whole RTB service. My BL_ID is 22696.Ban me from the whole RTB service. My BL_ID is 22696.Ban me from the whole RTB service. My BL_ID is 22696.
Pacnet2010
Ban me from the whole RTB service. My BL_ID is 22696.
Nixon
Pacnet has been hacked. Wowe.
SgtDaemon
Holy shit
why pacnet?
Oplime700
oh gawd
Oplime700
poor pancent
Oplime700
.______. we didint comment about the addon... only about pancet's hacker.....
xXClarkXx
@oplime700
I think you mean "pancake"...
Dark Rundas
Nice perfect for saving in a challenge game 5/5