Author Topic: Module Events - which one affects looting?  (Read 314 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Module Events - which one affects looting?
« on: May 10, 2013, 02:42:27 pm »


               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?
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Module Events - which one affects looting?
« Reply #1 on: May 10, 2013, 03:31:52 pm »


               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 .
                     
                  


            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Module Events - which one affects looting?
« Reply #2 on: May 10, 2013, 03:40:09 pm »


               

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!
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Module Events - which one affects looting?
« Reply #3 on: May 10, 2013, 04:53:19 pm »


               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.
               
               

               
            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Module Events - which one affects looting?
« Reply #4 on: May 16, 2013, 03:00:48 am »


               

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.