EN4_PRC8/_module/nss/qst_cq11_setup.nss
Jaysyn904 b464d8da05 Initial Commit
Initial Commit [v1.32PRC8]
2025-04-03 13:38:45 -04:00

57 lines
1.4 KiB
Plaintext

#include "rd_questinc"
#include "rd_advzones"
void main()
{
object oPC;
object oBoss;
int iLevel;
int iAdjustedLevel;
int iQuestType;
int iZones;
int iDifficulty;
string sTokenLine;
oPC = GetPCSpeaker();
iLevel = GetHitDice(oPC);
iAdjustedLevel = GetAdjustedLevel(oPC);
iAdjustedLevel = ZoneLevel(GetArea(oPC),iAdjustedLevel);
SetPartyInt(oPC,"QuestStep",1);
SetPartyString(oPC,"QuestGiver",GetTag(OBJECT_SELF));
SetPartyString(oPC,"QuestItemTag","en4_qring3");
SetPartyInt(oPC,"Quest",1);
SetPartyInt(oPC,"QuestType",3);
SetPartyInt(oPC,"QuestAdventureZone",1);
SetPartyString(oPC,"AZRespawn",GetTag(OBJECT_SELF));
oBoss = SetupAdventureZones(iAdjustedLevel,0,"","en4_qring3");
SetCustomToken(105, GetName(oBoss));
iZones = GetLocalInt(GetModule(),"AdvZones");
if (iZones < 3)
iDifficulty = 2;
else if (iZones < 5)
iDifficulty = 3;
else
iDifficulty = 4;
SetPartyInt(oPC,"QuestDifficulty",iDifficulty);
SetCustomToken(111, "");
SetCustomToken(112, "");
SetCustomToken(113, "");
SetToken(oPC,OBJECT_SELF,103,GetName(OBJECT_SELF));
sTokenLine = GetName(OBJECT_SELF) + " has sent me in search of a ring which he indicates may be guarded by a " + GetName(oBoss) + ".";
sTokenLine = FixTokenLine(sTokenLine,"REPEAT");
SetToken(oPC,OBJECT_SELF,111,sTokenLine);
RemoveJournalQuestEntry("jDelivery",oPC);
RemoveJournalQuestEntry("jCamp",oPC);
AddJournalQuestEntry("jSpecial",1,oPC);
}