Initial commit
Initial commit [v9.7]
This commit is contained in:
31
_module/nss/opn_spn_kyzik.nss
Normal file
31
_module/nss/opn_spn_kyzik.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
#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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user