Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
36
_module/nss/qst_cq2_setup.nss
Normal file
36
_module/nss/qst_cq2_setup.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "rd_questinc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oBoss;
|
||||
int iVariance;
|
||||
string sTokenLine;
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
|
||||
SetPartyInt(oPC,"QuestStep",1);
|
||||
SetLocalString(oPC,"QuestGiver",GetTag(OBJECT_SELF));
|
||||
SetLocalInt(oPC,"Quest",1);
|
||||
SetCustomToken(111, "");
|
||||
SetCustomToken(112, "");
|
||||
SetCustomToken(113, "");
|
||||
|
||||
SetToken(oPC,OBJECT_SELF,103,GetName(OBJECT_SELF));
|
||||
|
||||
oBoss = GetRandomQuestMobs(oPC,OBJECT_SELF,0,"slaver");
|
||||
|
||||
iVariance = GetLocalInt(OBJECT_SELF,"QuestVariance");
|
||||
if (iVariance == 0)
|
||||
SetLocalInt(OBJECT_SELF,"QuestVariance",Random(2)+1);
|
||||
|
||||
sTokenLine = "I need to eliminate a slaver raiding party 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