Enabled default treasure/loot system
Enabled default treasure/loot system. Updated release archive.
This commit is contained in:
20
_module/nss/prc_pwonspawn.nss
Normal file
20
_module/nss/prc_pwonspawn.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//:://////////////////////////////////////////////////
|
||||
//:: prc_pwonspawn
|
||||
/*
|
||||
* Treasure script
|
||||
*
|
||||
*/
|
||||
//:://////////////////////////////////////////////////
|
||||
|
||||
#include "x0_i0_treasure"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//* Create a small amount of treasure on the creature
|
||||
if ((GetLocalInt(GetModule(), "X2_L_NOTREASURE") == FALSE))
|
||||
{
|
||||
CTG_GenerateNPCTreasure(TREASURE_TYPE_MONSTER, OBJECT_SELF);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user