Author Topic: Persistent Stores  (Read 2919 times)

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Persistent Stores
« on: June 01, 2013, 07:31:03 pm »


                I'm wondering if you can store a "Store" into a database (either nwn or an sql database)...

I know a lot more items can go into a store than a chest, so I wanted to increase the volume of items PCs could store in their persistent containers by using stores instead...


Anyone have any insight, code, or help they wanna offer on this?
               
               

               


                     Modifié par _Guile, 01 juin 2013 - 06:31 .
                     
                  


            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Persistent Stores
« Reply #1 on: June 01, 2013, 10:12:05 pm »


               You certainly can... our PW has a persistent (from reset to reset) store who's inventory is filled by items players divide, and it's inventory is stored in a DB table.
               
               

               


                     Modifié par Lazarus Magni, 01 juin 2013 - 09:12 .
                     
                  


            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Persistent Stores
« Reply #2 on: June 02, 2013, 01:38:04 pm »


               

Lazarus Magni wrote...

You certainly can... our PW has a persistent (from reset to reset) store who's inventory is filled by items players divide, and it's inventory is stored in a DB table.


So basically save the store as an object into the database?

---------------------------------------------------------------------------------------

UPDATE...

So I tried using a persistent chest, copying items from the chest to the store and then storing the store into the database, the only problem I ran into was, some of the items are NOT being copied into the store, rather they are being dropped onto the ground.   '<img'>

Not good..

Any help?
               
               

               


                     Modifié par _Guile, 02 juin 2013 - 03:39 .
                     
                  


            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Persistent Stores
« Reply #3 on: June 02, 2013, 06:08:35 pm »


               I am not a scripter unfortunately, I am lucky if I don't break stuff when I monkey with them. Another option might be to go the route FunkySwerve went on PoA, with the ability to spawn multiple different storage chests.
               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Persistent Stores
« Reply #4 on: June 03, 2013, 09:15:14 pm »


               I just used APS/NWNX and stored the objects themselves into the database, works super fast too!
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Persistent Stores
« Reply #5 on: June 04, 2013, 01:31:23 am »


               Good stuff.