Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/emperor_attack.nss
Normal file
21
_module/nss/emperor_attack.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "nw_i0_generic"
|
||||
//Put this on action taken in the conversation editor
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
object oTarget = GetWaypointByTag("wp_mob_landing");
|
||||
object oMob = GetObjectByTag("YasharaMcDaggart");
|
||||
object oVic = GetObjectByTag("nasemp");
|
||||
effect eEffect = EffectDeath();
|
||||
location lTarget = GetLocation(oTarget);
|
||||
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "yasharamcdaggar", lTarget);//spawn mob
|
||||
|
||||
AssignCommand(oMob, ActionAttack(oVic));//attack emporer
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oVic); //kill him
|
||||
AssignCommand(oMob, ActionSpeakString("Old Fool!Now you are dead, and so my friends are you.."));// the gloat
|
||||
AdjustReputation(oPC,oMob, -100); //go hostile and attack pc speaker
|
||||
AssignCommand(oMob, ActionAttack(oPC));
|
||||
AssignCommand(oMob, DetermineCombatRound(oPC));
|
||||
}
|
Reference in New Issue
Block a user