Lankhmar_PRC8/_module/nss/cnv_spn_chni2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

42 lines
934 B
Plaintext

#include "nw_i0_generic"
#include "x0_i0_partywide"
void main()
{
object oTarget;
object oSpawn;
location lTarget;
object oPC = GetPCSpeaker();
// Give 10 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
oTarget = GetObjectByTag("Charinni");
DestroyObject(oTarget, 0.1);
oTarget = GetWaypointByTag("WP_KPrtl");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "charinni2", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = GetWaypointByTag("WP_KPrtl");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "deathtiger", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = GetObjectByTag("kleshportal");
DestroyObject(oTarget, 0.1);
}