36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: General Treasure Spawn Script
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Spawns in general purpose treasure, usable
|
||
|
by all classes.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Brent
|
||
|
//:: Created On: February 26 2001
|
||
|
//:://////////////////////////////////////////////
|
||
|
#include "x2_inc_compon"
|
||
|
#include "loot_inc_data"
|
||
|
#include "loot_inc_main"
|
||
|
#include "NW_O2_CONINCLUDE"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
// Get Area-Wide respawn time for loot. If none is specified
|
||
|
// in loot_inc_data, then it will use the default of one hour.
|
||
|
|
||
|
float fRespawnTime = GetRespawnTime (OBJECT_SELF);
|
||
|
craft_drop_placeable();
|
||
|
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
object oLastOpener = GetLastOpener();
|
||
|
ShoutDisturbed();
|
||
|
GenerateLowTreasure(oLastOpener, OBJECT_SELF);
|
||
|
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
|
||
|
AssignCommand( OBJECT_SELF, DelayCommand(fRespawnTime, SetLocalInt(OBJECT_SELF, "NW_DO_ONCE", 0) ) );
|
||
|
}
|