Aller au contenu

Photo

Module Events - which one affects looting?


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

#1
Buddywarrior

Buddywarrior
  • Members
  • 256 messages
I've added a bit of code in many of the Module Events scripts to store player info. Now when a player loots a dead body, we see a skin. Instead of removing the code from every script, I would rather just remove it from the one directly involved with looting. Any ideas what one that would be?

#2
WhiZard

WhiZard
  • Members
  • 1 204 messages
The OnAcquireItem is the event you would be looking at, but this event triggers any time a PC gains an item via script, any time he polymorphs, etc.

EDIT: If you are referring to treasure generation, you would be looking at nw_o2_coinclude, however a search of the script did not show "x3_it_pchide" (the ResRef and tag of the PC skin) so the name is possibly hidden

Modifié par WhiZard, 10 mai 2013 - 02:36 .


#3
Buddywarrior

Buddywarrior
  • Members
  • 256 messages

WhiZard wrote...

The OnAcquireItem is the event you would be looking at, but this event triggers any time a PC gains an item via script, any time he polymorphs, etc.

EDIT: If you are referring to treasure generation, you would be looking at nw_o2_coinclude, however a search of the script did not show "x3_it_pchide" (the ResRef and tag of the PC skin) so the name is possibly hidden


Thanks a ton WhiZard. I'll start at the OnAcquireItem then. Thanks again!

#4
kalbaern

kalbaern
  • Members
  • 824 messages
Are you by chance seeing a "pc_skin"? If so, that needs to be tracked down and removed from the horse system and several Bioware spells scripts instead.

#5
Buddywarrior

Buddywarrior
  • Members
  • 256 messages

kalbaern wrote...

Are you by chance seeing a "pc_skin"? If so, that needs to be tracked down and removed from the horse system and several Bioware spells scripts instead.

Yes I was. But for some reason, once I removed the small bit of code that stores player's location to an item on the player, it went away.