36 lines
524 B
Plaintext
36 lines
524 B
Plaintext
|
|
||
|
#include "nw_i0_generic"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oTarget;
|
||
|
object oSpawn;
|
||
|
location lTarget;
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "fangsofmog")== OBJECT_INVALID)
|
||
|
return;
|
||
|
|
||
|
oTarget = oPC;
|
||
|
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "grilli", lTarget);
|
||
|
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
}
|
||
|
|