42 lines
934 B
Plaintext
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);
|
||
|
|
||
|
}
|
||
|
|