Author Topic: Editing the lootable field  (Read 313 times)

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Editing the lootable field
« on: January 12, 2015, 06:10:43 pm »


               

Hi,


 


I have read many times that nwnx_funcs does everything that letoscript does, yet I have not found a function to edit the player's lootable field. I would like to use it to store post 40 pc level, as HGLL does. Of course, I can store the variable on an "undroppable" item, yet it's a bit less clean.


 


I don't use Leto because my players don't like(neither do I) to be booted during level-up. Thanks for any suggestion. 



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
Editing the lootable field
« Reply #1 on: January 12, 2015, 09:22:59 pm »


               

If you're on linux from nwnx_funcs.nss:



/* Sets the value of Lootable for a PC in the range 0-127. */
int SetPCLootable (object oPC, int nLootable);


If you're on windows, I dunno...  but if worse came to worst I'd put in the DB and cache it in a LocalInt.



               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Editing the lootable field
« Reply #2 on: January 13, 2015, 03:15:12 am »


               

Yes Leo_x, it looks like I'll have no choice, being on windows... Thanks anyway