Initial Upload
Initial Upload
This commit is contained in:
20
_module/nss/drow_bell_ring.nss
Normal file
20
_module/nss/drow_bell_ring.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#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, "drow", lTarget);
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oSpawn);
|
||||
AssignCommand(oSpawn, ActionAttack(oPC));
|
||||
AssignCommand(oSpawn, DetermineCombatRound(oPC));
|
||||
SetCampaignInt("drowbell",GetTag(OBJECT_SELF),1,oPC);
|
||||
}
|
Reference in New Issue
Block a user