Aantioch_Infernum/_module/nss/deathstatu_spawn.nss

22 lines
483 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetCampaignInt("deathstatue",GetTag(OBJECT_SELF),oPC);
if (DoOnce==1) return;
if (GetItemPossessedBy(oPC, "statueofdeath")!= OBJECT_INVALID)
return;
object oTarget;
object oSpawn;
oTarget = GetWaypointByTag("wp_statueofdeath");
oSpawn = CreateObject(OBJECT_TYPE_ITEM, "statueofdeath", GetLocation(oTarget));
SetCampaignInt("deathstatue",GetTag(OBJECT_SELF),1,oPC);
}