Author Topic: Don't want monsters to drop random loot  (Read 316 times)

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Don't want monsters to drop random loot
« on: June 22, 2012, 12:49:19 pm »


               Sorry, I fail at finding/googling the solution, so I decided to ask.

I only want my monsters to drop what I put in their inventories, or what I generate on them. But they randomly drop gold, gems or healing potions, which sometimes makes little sense in the context of my module. Where is the script that tells them to do that?
               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Don't want monsters to drop random loot
« Reply #1 on: June 22, 2012, 12:55:25 pm »


               onSpawn and onDeath usually play a part of the loot generation.

Check the onDeath/onSpawn events for your creatures, and modify the default nw_ script to return out of the script.

eg



void main()
{

return;  //Your code here to exit out of the function before items are created.
//Spawning code here
}



               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Don't want monsters to drop random loot
« Reply #2 on: June 22, 2012, 01:18:52 pm »


               http://social.biowar...4662229#4662301
               
               

               
            

Legacy_Lovelamb

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Don't want monsters to drop random loot
« Reply #3 on: June 22, 2012, 01:25:18 pm »


               Thank you for the answers, it looks like the problem is solved.