Lankhmar_PRC8/_module/nss/opn_spn_kyzik.nss

32 lines
854 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#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));
}