Finished wilderness encounter tables

Finished wilderness encounter tables.  Added partywide persistent DB support.  Added Wilderness POI map.  Full compile.
This commit is contained in:
Jaysyn904
2022-11-17 00:19:26 -05:00
parent 00aa4a929a
commit a3058d3ed1
45 changed files with 731 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
//
// Spawn Camp
// spawn_cfg_camp.nss
//
//
// CampNumP
@@ -18,12 +19,11 @@
// RH000 : Return Home
//
//
//
//
//void main (){}
//
//
//
#include "sql_db_partywide"
object GetChildByTag(object oSpawn, string sChildTag);
object GetChildByNumber(object oSpawn, int nChildNum);
@@ -4039,8 +4039,27 @@ at night. */
//:: 1d4+1 Giant Bees
case 7:
//:: Aragnak?
{break;}
//:: Aragnak the Red Dragon
{
//:: Initialize Variables
object oArea = GetArea(OBJECT_SELF);
//:: Cycle through PCs in Area
object oPC = GetFirstObjectInArea(oArea);
while (oPC != OBJECT_INVALID)
{
if (GetIsPC(oPC) == TRUE)
{
SendMessageToPC(oPC, "You see a humongous dragon the color of burnt blood flying high overhead");
SQLocalsUUID_SetInt(oPC, "SEEN_ARAGNAK", 1);
}
oPC = GetNextObjectInArea(oArea);
}
break;
}
//:: Aragnak the Red Dragon
case 8: case 9:
//:: 1d3 worgs and 1d12 wolves
@@ -4643,20 +4662,50 @@ indicated, roll 1d10 using the table below. */
switch (nSpawn)
{
case 1: case 2:
//:: Merchant ship (off coast)
//:: Merchant ship off coast
{
//:: Not sure how to handle this one yet.
break;
//:: Initialize Variables
object oArea = GetArea(OBJECT_SELF);
//:: Cycle through PCs in Area
object oPC = GetFirstObjectInArea(oArea);
while (oPC != OBJECT_INVALID)
{
if (GetIsPC(oPC) == TRUE)
{
SendMessageToPC(oPC, "You notice a fat merchant ship sailing a good distance off the coast.");
SQLocalsUUID_SetInt(oPC, "SEEN_MERCHANT_SHIP", 1);
}
oPC = GetNextObjectInArea(oArea);
}
break;
}
//:: Merchant ship (off coast)
case 3:
//:: Pirate ship (off coast)
//:: Pirate ship off coast
{
//:: Not sure how to handle this one yet.
break;
//:: Initialize Variables
object oArea = GetArea(OBJECT_SELF);
//:: Cycle through PCs in Area
object oPC = GetFirstObjectInArea(oArea);
while (oPC != OBJECT_INVALID)
{
if (GetIsPC(oPC) == TRUE)
{
SendMessageToPC(oPC, "You notice a ship sailing off the coast. It appears to be flying a black flag");
SQLocalsUUID_SetInt(oPC, "SEEN_PIRATE_SHIP", 1);
}
oPC = GetNextObjectInArea(oArea);
}
break;
}
//:: Pirate ship (off coast)
//:: Pirate ship (off coast)
case 4: case 5: case 6:
//:: Pirates - 90% Foraging Party / 10% Raiding Party