37 lines
668 B
Plaintext
37 lines
668 B
Plaintext
|
|
void main()
|
|
|
|
{
|
|
|
|
object oActor;
|
|
object oTarget;
|
|
object oSpawn;
|
|
location lTarget;
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "lilygem")== OBJECT_INVALID)
|
|
return;
|
|
|
|
//Spn Grli
|
|
oTarget = GetWaypointByTag("WP_SPN_GrLly");
|
|
lTarget = GetLocation(oTarget);
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "grilli", lTarget);
|
|
|
|
// Have "Grilli" perform a sequence of actions.
|
|
oActor = GetObjectByTag("Grilli");
|
|
AssignCommand(oActor, ActionDoCommand(ActionAttack(oPC)));
|
|
|
|
//Dst LB
|
|
oTarget = GetObjectByTag("Lilyblack");
|
|
DestroyObject(oTarget, 0.1);
|
|
|
|
//Dst LBGm
|
|
oTarget = GetObjectByTag("lilygem");
|
|
DestroyObject(oTarget, 0.2);
|
|
|
|
}
|
|
|