Author Topic: Permanet map pins?on a PW  (Read 1308 times)

Legacy_Bansidhe

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
Permanet map pins?on a PW
« on: March 27, 2011, 06:27:13 pm »


               Is it possible,or will they all just dissapear when the module is reset/reloaded,just too clarify this is a multiplayer internet server.

Any help,pointing out the B****y obvious,or links would be appreciated.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #1 on: March 27, 2011, 07:15:57 pm »


               if you mean player-made mappins, it is possible to save them via scripting, but its not a very good idea because it may flood database especially if you using BIO db...

http://nwn.wikia.com/wiki/Map_pin
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #2 on: March 27, 2011, 08:19:14 pm »


               ***laggy double posting
               
               

               


                     Modifié par kalbaern, 27 mars 2011 - 07:20 .
                     
                  


            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #3 on: March 27, 2011, 08:20:00 pm »


               Save them as variables to a database item instead.

I save the variables to player dicebags on my own PW and have had no issues. Just PM if if you wish the actual code. It's not my own, I'd found it on NWN Vault a few years ago.
               
               

               


                     Modifié par kalbaern, 27 mars 2011 - 07:22 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #4 on: March 27, 2011, 10:07:45 pm »


               Just remember that the area the MapPin belongs to is stored as a local the Object of the area. This means that if you added areas to the PW the area ID's may change.  So you may want to store the Area as Tag of the area in the DB or on the DB item and convert them back to the correct Object when placing them as a local object on the PC.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #5 on: March 27, 2011, 10:38:32 pm »


               Found the old link: nwvault.ign.com/View.php
               
               

               


                     Modifié par kalbaern, 27 mars 2011 - 09:39 .
                     
                  


            

Legacy_Bansidhe

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #6 on: March 28, 2011, 05:23:01 pm »


               Excellant1...thank you all so much!  '<img'>
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Permanet map pins?on a PW
« Reply #7 on: October 20, 2012, 12:09:32 pm »


               At the risk of being blamed for necromancy, allow me to update this thread.
Jassper also created a set of functions for managing persistent map pins.

All you need of Jassper's work is the one file which I appreciate given my desire to conserve resources.