Spawn persistence bugifx
Spawn persistence bugifx (Marthek & Spiders)
This commit is contained in:
@@ -233,11 +233,12 @@ int nVFX = GetLocalInt(OBJECT_SELF,"SpawnVFX");
|
||||
//:: Set quest stage & update DB.
|
||||
AddPersistentJournalQuestEntry("marthek", 2, oKiller);
|
||||
|
||||
//:: Give "Marthek's Head" to the PC.
|
||||
CreateItemOnObject("item065", oKiller);
|
||||
|
||||
//:: Execute Default NPC OnDeath script
|
||||
ExecuteScript("nw_c2_default7", OBJECT_SELF);
|
||||
|
||||
|
||||
//:: Execute PRC NPC OnDeath script
|
||||
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ int StartingConditional()
|
||||
object oPC = GetPCSpeaker();
|
||||
int nInt;
|
||||
|
||||
nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYaragnak");
|
||||
nInt = RetrieveQuestState("aragnak", oPC);
|
||||
|
||||
if (nInt == 1) return TRUE;
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
void main()
|
||||
{
|
||||
//:: Declare major variables
|
||||
object oPC = GetPCSpeaker();
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
//:: Set quest stage & update DB.
|
||||
AddPersistentJournalQuestEntry("justicar", 1, oPC);
|
||||
|
@@ -5,7 +5,7 @@
|
||||
//:
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Start & tracks the "Scramge the Orace" quest
|
||||
Start & tracks the "Scramge the Oracle" quest
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
|
41
_module/nss/ra_areaonenter.nss
Normal file
41
_module/nss/ra_areaonenter.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: ra_areaonenter.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Default Area OnEnter script for NESS spawn
|
||||
functions.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 20220620
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "spawn_functions"
|
||||
#include "tgdc_explore_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Spawn_OnAreaEnter() can take three arguments - the name of the heartbeat
|
||||
// script to execute, the heartbeat duration, and a delay for the first
|
||||
// heartbeat. They default to spawn_sample_hb, 6.0, and 0.0 respectively; as
|
||||
// if it were called like:
|
||||
// Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 0.0 );
|
||||
|
||||
if ( GetIsAreaAboveGround( OBJECT_SELF ) &&
|
||||
! GetIsAreaNatural( OBJECT_SELF ) )
|
||||
{
|
||||
// Indoors - no delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 0.0 );
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// Outdoors or underground - do a 3 second delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 3.0 );
|
||||
}
|
||||
}
|
@@ -1,7 +1,10 @@
|
||||
//
|
||||
// Spawn and Despawn Scripts
|
||||
//
|
||||
|
||||
#include "spawn_functions"
|
||||
#include "pqj_inc"
|
||||
|
||||
//
|
||||
object GetChildByTag(object oSpawn, string sChildTag);
|
||||
object GetChildByNumber(object oSpawn, int nChildNum);
|
||||
@@ -39,8 +42,9 @@ void main()
|
||||
{
|
||||
return;
|
||||
}
|
||||
//
|
||||
|
||||
// End Script 00
|
||||
|
||||
// Script 01 [Lamplighter]
|
||||
if (nSpawnScript == 1)
|
||||
{
|
||||
// lamplighter
|
||||
@@ -77,7 +81,9 @@ void main()
|
||||
return;
|
||||
}
|
||||
}// end spawn script 1
|
||||
|
||||
// End Script 01 [Lamplighter]
|
||||
|
||||
|
||||
// -------------------------------------------
|
||||
// Only Make Modifications Between These Lines
|
||||
//
|
||||
|
Reference in New Issue
Block a user