RoT2_PRC8/_module/nss/nw_o2_boss.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

38 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: General Treasure Spawn Script BOSS
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Spawns in general purpose treasure, usable
by all classes.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: March 19 2002
//:://////////////////////////////////////////////
#include "NW_O2_CONINCLUDE"
void main()
{
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
{
return;
}
object oLastOpener = GetLastOpener();
// * May 13 2002: Must create appropriate treasure for each
// * faction member in the party.
if (GetIsObjectValid(oLastOpener) == TRUE)
{
object oMember = GetFirstFactionMember(oLastOpener, TRUE);
while (GetIsObjectValid(oMember) == TRUE)
{
GenerateBossTreasure(oMember, OBJECT_SELF);
oMember = GetNextFactionMember(oLastOpener, TRUE);
}
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
}
ShoutDisturbed();
}