21 lines
560 B
Plaintext
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);
|
|
}
|