Initial Commit

Initial Commit [v1.32PRC8]
This commit is contained in:
Jaysyn904
2025-04-03 13:38:45 -04:00
parent 1213977d8c
commit b464d8da05
6922 changed files with 6176025 additions and 2 deletions

View File

@@ -0,0 +1,59 @@
//#include "rd_spawnzones"
#include "rd_questinc"
void main()
{
int iLevel;
string sTag;
location lLoc;
object oGuard;
object oPC;
int iMinLevel;
int iMaxLevel;
oPC = GetEnteringObject();
//CreateItemOnObject("NW_IT_MPOTION008",GetEnteringObject());
if (GetIsPC(oPC))
{
if (GetLocalInt(OBJECT_SELF,"EN4_SetupZone") == 0 && GetLocalInt(OBJECT_SELF,"AdventureZone") > 0)
SetupZone(oPC);
if (GetLocalInt(OBJECT_SELF,"SpawnOnce") == 0)
{
SetLocalInt(OBJECT_SELF,"SpawnOnce",1);
GetSpecialTreasure(OBJECT_SELF);
}
CheckZone(oPC);
if (GetLocalInt(OBJECT_SELF,"Spawned") == 0)
{
iLevel = GetHitDice(oPC);
iLevel = ZoneLevel(OBJECT_SELF,iLevel);
RespawnCampsAE(GetEnteringObject(),0, iLevel);
RespawnMobsAE(GetEnteringObject(),0, iLevel);
oGuard = GetObjectByTag("SM1_cguard1_S");
if (!GetIsObjectValid(oGuard))
{
lLoc = GetLocation(GetObjectByTag("SM1_cguard1"));
CreateObject(OBJECT_TYPE_CREATURE,"en4_cityguard2",lLoc,FALSE,"SM1_cguard1_S");
}
oGuard = GetObjectByTag("SM1_cguard2_S");
if (!GetIsObjectValid(oGuard))
{
lLoc = GetLocation(GetObjectByTag("SM1_cguard2"));
CreateObject(OBJECT_TYPE_CREATURE,"en4_cityguard2",lLoc,FALSE,"SM1_cguard2_S");
}
SetLocalInt(OBJECT_SELF,"Spawned",1);
SetLocalInt(OBJECT_SELF,"RandomEncounter",1);
}
}
}