PWE_PRC8/_module/nss/emperor_attack.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

22 lines
830 B
Plaintext

#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));
}