PoA_PRC8/_module/nss/spawngypsy.nss

21 lines
580 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
location lTarget;
object oTarget;
//Can go on enter of an area or on enter of a tracks trigger.
//Basically you spawn an npc, then after a while they dissapear.
//This script will not spawn an npc if one already exist.
void main()
{
object oPC = GetEnteringObject(),
oObject = GetWaypointByTag("WP_Gypsy_01");
if (!GetIsObjectValid(GetNearestObjectByTag("Gypsy", oObject)))
{
CreateObject(OBJECT_TYPE_CREATURE, "encumbriagypsy", GetLocation(oObject));
}
oTarget = GetObjectByTag("Gypsy");
DelayCommand(880.0, DestroyObject(oTarget, 0.0));
}