Author Topic: Persistent donation chest?  (Read 471 times)

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« on: July 25, 2011, 08:01:33 pm »


               I'm running a server with nwnx (or at least developing the server), and would like a script that would work for creating a donation chest, which would keep anything in it over a server reset.  Could anyone help me script such a thing?  This is designed to allow higher level characters donate gear they don't want to less well equipped players, and wouldn't penalize a low level character for logging in right after reset.  Thanks in advance for the help (and if it helps at all, the version of nwnx2 I'm using is for the mysql database).

Alassirana
               
               

               
            

Legacy_Xardex

  • Sr. Member
  • ****
  • Posts: 414
  • Karma: +0/-0
Persistent donation chest?
« Reply #1 on: July 25, 2011, 10:03:02 pm »


               Nwnx is not required for this. There should be numerous scripts at nwvault that can do this.
               
               

               
            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« Reply #2 on: July 25, 2011, 10:09:09 pm »


               I tried looking on the vault, but what they had were banking scripts, and I want something separate from my bank...(this is something anyone can access, whereas the bank vaults are keyed to one character).  \\
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Persistent donation chest?
« Reply #3 on: July 25, 2011, 10:37:40 pm »


               

Alassirana wrote...

I tried looking on the vault, but what they had were banking scripts, and I want something separate from my bank...(this is something anyone can access, whereas the bank vaults are keyed to one character).



What system are you using for your bank and does it allow the storage of items? 

If you already have a system like that in place, it would be better to modify that system to handle your donation chest.   That way you do not have two systems just one to handle both cases.  
               
               

               
            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« Reply #4 on: July 25, 2011, 10:51:58 pm »


               I'm using the Kitrell's banking system, which does allow storage for items.
               
               

               
            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« Reply #5 on: July 25, 2011, 10:53:15 pm »


               I'll admit, that while I can merge scripts fairly well (managed to get the banking system, crp, and shayan's subraces all to work nicely together), I don't have the experience to figure out how to have a persistent chest on my own...if I have something I can copy/modify slightly, I can usually figure out how to get it working..
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Persistent donation chest?
« Reply #6 on: July 25, 2011, 11:11:50 pm »


               Well could'nt you just use the current ones and remove the lines that refer to the specific CD key or however they are identified. Maybe not too helpful, just thinking out loud.  Then make it so the PC must be below a certain level and then has only a bit of time, per server reset, to loot the chest.  So they can take a few things, not all of them. 
               
               

               


                     Modifié par ffbj, 25 juillet 2011 - 10:14 .
                     
                  


            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« Reply #7 on: July 25, 2011, 11:22:07 pm »


               *hrms* I'll look into that...it may take me a bit, as I'm getting ready for an online pen and paper style game, but I'll see what can be done on it.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Persistent donation chest?
« Reply #8 on: July 25, 2011, 11:52:53 pm »


               There are about 5 versions of that system on the vault.  Do you know the one you are using?
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Persistent donation chest?
« Reply #9 on: July 26, 2011, 02:00:11 am »


               I'm going to make you a package of the item storage system I developed. Just hang tight.
               
               

               
            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« Reply #10 on: July 26, 2011, 02:10:54 am »


               Thanks, Zunath, and Lightfoot, the system is apparently version 1.7
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Persistent donation chest?
« Reply #11 on: July 26, 2011, 02:11:09 am »


               Download

Some basic instructions are included there. You may have trouble getting the table in your database. If you do let me know and I'll walk you through it.

Hope it helps!
               
               

               


                     Modifié par zunath, 26 juillet 2011 - 01:11 .
                     
                  


            

Legacy_Alassirana

  • Full Member
  • ***
  • Posts: 103
  • Karma: +0/-0
Persistent donation chest?
« Reply #12 on: July 27, 2011, 09:09:43 pm »


               got it up and running, and it's doing exactly what I wanted.  Thank you so much.
               
               

               
            

Legacy_zunath

  • Full Member
  • ***
  • Posts: 152
  • Karma: +0/-0
Persistent donation chest?
« Reply #13 on: July 27, 2011, 11:03:31 pm »


               No problem. Glad to help! '<img'>
               
               

               
            

Legacy_Melkior_King

  • Full Member
  • ***
  • Posts: 234
  • Karma: +0/-0
Persistent donation chest?
« Reply #14 on: July 29, 2011, 09:03:45 am »


               One note of warning about persistent chests in general:

All of the persistent chests which I have seen use a hidden NPC to hold the items to be saved.

A NPC has a limited amount of inventory space.  Far less than that available to a placeable object.

Therefore, if more items keep on being added to the chest than are removed from the chest, the NPC will sooner or later drop some items due to not having the inventory space.

The result will be items vanishing from the chest.

This may not be especially noticable if the chest is public, but it will happen.

I'm thinking of a way around this problem but until and unless I can come up with a workable solution:
*You Have Been Warned*