Initial commit
Initial commit [v9.7]
This commit is contained in:
38
_module/nss/ent_spn_cn_shlb3.nss
Normal file
38
_module/nss/ent_spn_cn_shlb3.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "golamulet")== OBJECT_INVALID)
|
||||
return;
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_sheelba");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "sheelba2", lTarget);
|
||||
|
||||
oTarget = oSpawn;
|
||||
|
||||
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user