Initial Commit
Initial Commit
This commit is contained in:
15
_module/nss/generate_quest.nss
Normal file
15
_module/nss/generate_quest.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "quest_inc"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
string sDB = CharacterDB(oPC);
|
||||
string sRegion;
|
||||
int nTavern = GetLocalInt(GetArea(OBJECT_SELF), "TavernNumber");
|
||||
string sTown = GetLocalString(GetArea(OBJECT_SELF), "Town");
|
||||
|
||||
if (nTavern == 1 || nTavern == 2) sRegion = "greencoast";
|
||||
|
||||
DeleteCampaignVariable(sDB, "QUEST_AVAILABLE");
|
||||
|
||||
GenerateQuest(oPC, OBJECT_SELF, sRegion, sTown);
|
||||
}
|
||||
Reference in New Issue
Block a user