42 lines
886 B
Plaintext
42 lines
886 B
Plaintext
|
|
||
|
#include "nw_i0_generic"
|
||
|
#include "x0_i0_partywide"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oTarget;
|
||
|
object oSpawn;
|
||
|
location lTarget;
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
if (GetItemPossessedBy(oPC, "redcloakofpro")== OBJECT_INVALID)
|
||
|
return;
|
||
|
|
||
|
// Give 10 experience (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 10);
|
||
|
|
||
|
oTarget = oPC;
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "toughslayer3", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
oTarget = oPC;
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "toughslayer4", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
|
||
|
}
|
||
|
|