Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
54
_module/nss/qst_cq6_setup.nss
Normal file
54
_module/nss/qst_cq6_setup.nss
Normal file
@@ -0,0 +1,54 @@
|
||||
#include "rd_questinc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oBoss;
|
||||
object oHostage;
|
||||
int iVariance;
|
||||
int iLevel;
|
||||
int iAdjustedLevel;
|
||||
string sTokenLine;
|
||||
string sTag;
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
|
||||
SetPartyInt(oPC,"QuestStep",1);
|
||||
SetLocalString(oPC,"QuestGiver",GetTag(OBJECT_SELF));
|
||||
SetLocalInt(oPC,"Quest",1);
|
||||
SetCustomToken(111, "");
|
||||
SetCustomToken(112, "");
|
||||
SetCustomToken(113, "");
|
||||
|
||||
|
||||
iLevel = GetHitDice(oPC);
|
||||
iAdjustedLevel = GetAdjustedLevel(oPC);
|
||||
iAdjustedLevel = ZoneLevel(GetArea(oPC),iAdjustedLevel);
|
||||
|
||||
SetToken(oPC,OBJECT_SELF,103,GetName(OBJECT_SELF));
|
||||
|
||||
if (iAdjustedLevel<11)
|
||||
sTag = "bandit";
|
||||
else if (iAdjustedLevel<21)
|
||||
sTag = "merc";
|
||||
else
|
||||
sTag = "drow";
|
||||
|
||||
oBoss = GetQuestCamp(oPC,OBJECT_SELF,sTag);
|
||||
|
||||
sTag = "en4_hostage" + IntToString(Random(2)+1);
|
||||
oHostage = CreateObject(OBJECT_TYPE_CREATURE,sTag,GetLocation(oBoss));
|
||||
SetLocalString(OBJECT_SELF,"Hostage",sTag);
|
||||
|
||||
|
||||
SetCustomToken(199, GetName(oHostage));
|
||||
|
||||
sTokenLine = "I need to eliminate some " + GetToken(101) + " located " + GetToken(102) + ".";
|
||||
sTokenLine = FixTokenLine(sTokenLine,"REPEAT");
|
||||
SetToken(oPC,OBJECT_SELF,111,sTokenLine);
|
||||
|
||||
RemoveJournalQuestEntry("jDelivery",oPC);
|
||||
RemoveJournalQuestEntry("jCamp",oPC);
|
||||
AddJournalQuestEntry("jCamp",1,oPC);
|
||||
|
||||
}
|
Reference in New Issue
Block a user