PnP Enhancements continue
PnP Enhancements continue. Fixed some quest logic, made some of the quests reward the entire party instead of the player that turns it in. Updated Warrior's Guild. Colored Wilderness map for the hell of it. Full compile.
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
//
|
||||
// Spawn Check - Custom
|
||||
//
|
||||
|
||||
#include "pqj_inc"
|
||||
|
||||
|
||||
//void main (){}
|
||||
|
||||
|
||||
int ParseFlagValue(string sName, string sFlag, int nDigits, int nDefault);
|
||||
int ParseSubFlagValue(string sName, string sFlag, int nDigits, string sSubFlag, int nSubDigits, int nDefault);
|
||||
object GetChildByTag(object oSpawn, string sChildTag);
|
||||
@@ -93,6 +100,28 @@ int SpawnCheckCustom(object oSpawn)
|
||||
}
|
||||
//
|
||||
|
||||
//:: Checks for stage 1 or lower for the "Spider's Captive quest"
|
||||
if (nSpawnCheckCustom == 50)
|
||||
{
|
||||
//:: Initialize major variables
|
||||
object oArea = GetArea(OBJECT_SELF);
|
||||
object oPC = GetFirstObjectInArea(oArea);
|
||||
|
||||
//:: Cycle through PCs in Area
|
||||
while (oPC != OBJECT_INVALID)
|
||||
{
|
||||
//:: Check quest stage
|
||||
if ( RetrieveQuestState("spiders", oPC) <= 1 )
|
||||
{
|
||||
nProcessSpawn = TRUE;
|
||||
//SendMessageToPC(oPC, "Spawn Processed");
|
||||
SetLocalInt(oSpawn, "SpawnProcessed", TRUE);
|
||||
}
|
||||
|
||||
oPC = GetNextObjectInArea(oArea);
|
||||
}
|
||||
}
|
||||
//:: Checks for stage 1 or lower for the "Spider's Captive quest"
|
||||
|
||||
// -------------------------------------------
|
||||
// Only Make Modifications Between These Lines
|
||||
|
||||
Reference in New Issue
Block a user