Aantioch_Infernum/_module/nss/drow_bell_ring.nss
EpicValor 70db8c9b3f Updated areas and mobs that go in them
and also their drops
2023-09-16 17:45:31 -05:00

21 lines
560 B
Plaintext

#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);
SetIsTemporaryEnemy(oPC, oSpawn);
AssignCommand(oSpawn, ActionAttack(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
SetCampaignInt("drowbell",GetTag(OBJECT_SELF),1,oPC);
}