Aller au contenu

Photo

Don't want monsters to drop random loot


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

#1
Lovelamb

Lovelamb
  • Members
  • 38 messages
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?

#2
Baaleos

Baaleos
  • Members
  • 1 331 messages
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
}




#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
http://social.biowar...4662229#4662301

#4
Lovelamb

Lovelamb
  • Members
  • 38 messages
Thank you for the answers, it looks like the problem is solved.