Spawn persistence bugifx

Spawn persistence bugifx (Marthek & Spiders)
This commit is contained in:
Jaysyn904 2022-06-27 18:19:57 -04:00
parent 6153db8683
commit a2d04fe81f
22 changed files with 80 additions and 32 deletions

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -849,7 +849,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 14 "value": 16
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -849,7 +849,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 6 "value": 7
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -11169,7 +11169,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 11 "value": 12
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -2913,7 +2913,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 12 "value": 13
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "spawn_smpl_onen2" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -2913,7 +2913,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 30 "value": 31
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -2913,7 +2913,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 11 "value": 12
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -849,7 +849,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 13 "value": 14
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -2913,7 +2913,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 11 "value": 12
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -11169,7 +11169,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 5 "value": 6
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -11169,7 +11169,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 84 "value": 85
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -2913,7 +2913,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 13 "value": 14
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -96,7 +96,7 @@
}, },
"OnEnter": { "OnEnter": {
"type": "resref", "type": "resref",
"value": "ra_onareaenter" "value": "ra_areaonenter"
}, },
"OnExit": { "OnExit": {
"type": "resref", "type": "resref",
@ -2913,7 +2913,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 9 "value": 10
}, },
"Width": { "Width": {
"type": "int", "type": "int",

View File

@ -159,7 +159,7 @@
}, },
"Script": { "Script": {
"type": "resref", "type": "resref",
"value": "destroyselfnofx" "value": "cv_destselfnofx"
}, },
"Sound": { "Sound": {
"type": "resref", "type": "resref",

Binary file not shown.

Binary file not shown.

View File

@ -233,11 +233,12 @@ int nVFX = GetLocalInt(OBJECT_SELF,"SpawnVFX");
//:: Set quest stage & update DB. //:: Set quest stage & update DB.
AddPersistentJournalQuestEntry("marthek", 2, oKiller); AddPersistentJournalQuestEntry("marthek", 2, oKiller);
//:: Give "Marthek's Head" to the PC.
CreateItemOnObject("item065", oKiller);
//:: Execute Default NPC OnDeath script //:: Execute Default NPC OnDeath script
ExecuteScript("nw_c2_default7", OBJECT_SELF); ExecuteScript("nw_c2_default7", OBJECT_SELF);
//:: Execute PRC NPC OnDeath script //:: Execute PRC NPC OnDeath script
ExecuteScript("prc_npc_death", OBJECT_SELF); ExecuteScript("prc_npc_death", OBJECT_SELF);
} }

View File

@ -19,7 +19,7 @@ int StartingConditional()
object oPC = GetPCSpeaker(); object oPC = GetPCSpeaker();
int nInt; int nInt;
nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYaragnak"); nInt = RetrieveQuestState("aragnak", oPC);
if (nInt == 1) return TRUE; if (nInt == 1) return TRUE;

View File

@ -17,7 +17,7 @@
void main() void main()
{ {
//:: Declare major variables //:: Declare major variables
object oPC = GetPCSpeaker(); object oPC = GetPCSpeaker();
//:: Set quest stage & update DB. //:: Set quest stage & update DB.
AddPersistentJournalQuestEntry("justicar", 1, oPC); AddPersistentJournalQuestEntry("justicar", 1, oPC);

View File

@ -5,7 +5,7 @@
//: //:
//::////////////////////////////////////////////// //:://////////////////////////////////////////////
/* /*
Start & tracks the "Scramge the Orace" quest Start & tracks the "Scramge the Oracle" quest
*/ */
//::////////////////////////////////////////////// //:://////////////////////////////////////////////
//:: //::

View 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 );
}
}

View File

@ -1,7 +1,10 @@
// //
// Spawn and Despawn Scripts // Spawn and Despawn Scripts
// //
#include "spawn_functions" #include "spawn_functions"
#include "pqj_inc"
// //
object GetChildByTag(object oSpawn, string sChildTag); object GetChildByTag(object oSpawn, string sChildTag);
object GetChildByNumber(object oSpawn, int nChildNum); object GetChildByNumber(object oSpawn, int nChildNum);
@ -39,8 +42,9 @@ void main()
{ {
return; return;
} }
// // End Script 00
// Script 01 [Lamplighter]
if (nSpawnScript == 1) if (nSpawnScript == 1)
{ {
// lamplighter // lamplighter
@ -77,7 +81,9 @@ void main()
return; return;
} }
}// end spawn script 1 }// end spawn script 1
// End Script 01 [Lamplighter]
// ------------------------------------------- // -------------------------------------------
// Only Make Modifications Between These Lines // Only Make Modifications Between These Lines
// //

Binary file not shown.