GenerateNPCTreasure(int, object, object)
Use the random treasure functions to generate appropriate treasure for the creature to drop.
void GenerateNPCTreasure( int nTreasureValue = 1, object oTreasureGetter = OBJECT_SELF, object oKiller = OBJECT_SELF );
Parameters
nTreasureValue
Value of treasure (Default: 1)
oTreasureGetter
Object getting the treasure (Default: OBJECT_SELF)
oKiller
Object that slew the NPC (Default: OBJECT_SELF)
Description
This function creates treasure on the NPC the valid treasure values are 1 - 4 or LOW, MED, HIGH, BOSS.
Remarks
Preferrably called from OnSpawn scripts.. Found in: nw_o2_coninclude.nss
Requirements
#include "nw_o2_coninclude"
Version
1.22
See Also
categories: | Item Creation Functions |
author: Michael Nork