Aller au contenu

Photo

Editing the lootable field


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Kato -

Kato -
  • Members
  • 392 messages

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. 



#2
leo_x

leo_x
  • Members
  • 223 messages

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.



#3
Kato -

Kato -
  • Members
  • 392 messages

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