Aantioch_Infernum/_module/nss/drow_bell_ring.nss

21 lines
560 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
#include "nw_i0_generic"
void main()
{
object oPC = GetLastUsedBy();
object oTarget = GetWaypointByTag("wp_bellring");
location lTarget = GetLocation(oTarget);
int DoOnce = GetCampaignInt("drowbell",GetTag(OBJECT_SELF),oPC);
if (DoOnce==1) return;
AssignCommand(oPC, PlaySound("as_cv_bell2"));
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "darkelfoutcast", lTarget);
2023-08-08 16:22:17 -04:00
SetIsTemporaryEnemy(oPC, oSpawn);
AssignCommand(oSpawn, ActionAttack(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
SetCampaignInt("drowbell",GetTag(OBJECT_SELF),1,oPC);
}