32 lines
854 B
Plaintext
32 lines
854 B
Plaintext
|
|
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
object oTarget;
|
|
object oSpawn;
|
|
|
|
// Get the creature who triggered this event.
|
|
object oPC = GetLastOpenedBy();
|
|
|
|
// Only fire once.
|
|
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
|
return;
|
|
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
|
|
|
AddJournalQuestEntry("The Karvian Elephant", 2, oPC, TRUE, FALSE);
|
|
|
|
// Give 5 gold (to party) to the PC.
|
|
GiveGoldToAll(oPC, 5);
|
|
|
|
// Spawn some critters.
|
|
oTarget = GetWaypointByTag("WP_SPn_Kiz");
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kyzik", GetLocation(oTarget));
|
|
AssignCommand(oSpawn, ActionStartConversation(oPC));
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kyziksquasitf", GetLocation(oTarget));
|
|
AssignCommand(oSpawn, ActionStartConversation(oPC));
|
|
}
|
|
|