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?
Don't want monsters to drop random loot
Débuté par
Lovelamb
, juin 22 2012 11:49
#1
Posté 22 juin 2012 - 11:49
#2
Posté 22 juin 2012 - 11:55
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
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
Posté 22 juin 2012 - 12:18
#4
Posté 22 juin 2012 - 12:25
Thank you for the answers, it looks like the problem is solved.





Retour en haut







