Joey wrote
Skittle wrote
Joey wrote
That would be nice but I'm not sure how this would be coded/implemented.
Well, I'm guessing if a bank can be coded/implemented, I wonder if an item bank could too, but I dunno much 'bout this stuff so.
The bank was able to be made because it revolved around one item, money, If you were going to make a item bank it would have to be able to hold every item in the game and keep it personal to that player. It would have to remove it from your inventory, then add it to this data base that remembers what you put in. That would take up a lot of memory is it was kept server side, but if it is held player side then people could edit it and give themselves items for free.
Option A:
Three dimensional array built like this:
Username : Item code : amount
Username : Item code : amount
Username : Item code : amount
Username : Item code : amount
Username : Item code : amount
etc...
Then you'd just have to parse it for their username and figure out how to display it as a second inventory.
Then you make the inventory accessible from bank.
Then you figure out how to add entries to the bank.
Then you figure out how to remove entries from the default inventory.
Then you setup an npc that can do both:
1: deposit - show the player their invintory, let them pick an item. item gets removed, and added to safe bank.
2: withdraw - show players their bank, let them pick an item to be removed and added to inventory.
This would increase memory a little bit though yes.
Option B:
Mod the existing inventory.
While in non-safe areas allow users to "hide" items as a sub option in their inventory.
If in a safe zone, show the entire inventory and allow users to un-hide items.
This just adds a little extra code and a Boolean into each inventory entry. Requires less memory but more modding.
Though this is all a fair amount of effort for minor game polishing. Doesn't really help user retention, growth, or monetization so..
myback wrote
MurderousMorty wrote
What about an item bank, so you can leave items in a second inventory and clean up your personal inventory to less pages.
That would require another table in our database. Unfortunately, the way the server and the RP plugin works is that it does not like to handle more data loading on a server than it needs. Loading your stats all together would be broken if I were to save anything else in SQL at this point.
You could always setup a web server to post and get data with the game server. But that's another cost for moonshade.. and effort.