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

53 lines
1.3 KiB
Plaintext

#include "rd_questinc"
#include "sql_db_partywide"
void main()
{
int iRandom;
int iQuest;
int iQuestStepType;
object oPC;
object oGiver;
object oBoss;
oPC = GetPCSpeaker();
oGiver = OBJECT_SELF;
SetToken(oPC,oGiver,110,"Thank you.");
SetPartyString(oPC,"QuestStep1Token111","REPEAT");
SetPartyString(oPC,"QuestStep1Token112","REPEAT");
SetPartyString(oPC,"QuestStep1Token113","REPEAT");
iQuest = 100;
SetPartyInt(oPC,"QuestSteps",1);
iQuestStepType = 7;
SetPartyString(oPC,"QuestStep1Item","en4_document1");
SetPartyInt(oPC,"QuestStep1ItemUnknown",1);
SetPartyInt(oPC,"QuestDifficulty",2);
SetPartyInt(oPC,"Quest",iQuest);
SetPartyInt(oPC,"OnOverallQuest",1);
SetPartyInt(oPC,"QuestStep",1);
SetPartyString(oPC,"QuestGiver",GetTag(oGiver));
SetPartyString(oPC,"QuestZone",GetZone(oPC));
SetLocalInt(GetModule(),GetZone(oPC),1);
SetPartyInt(oPC,"QuestDone",0);
SetPartyString(oPC,"QuestStep1Mob","");
SetLocalInt(GetModule(),"UniqueBoss",1);
SetupQuestStep(iQuestStepType,1,oPC,oGiver);
DelayCommand(1.0f,SetLocalInt(GetModule(),"UniqueBoss",0));
RemoveJournalQuestEntry("jCamp",oPC);
SetLocalInt(oPC,"Overall1NotAccepted",0);
SQL_SetLocalIntOnAll(oPC,"OverallQuest",100);
iRandom = Random(4);
if (iRandom == 0)
{
oBoss = GetObjectByTag(GetLocalString(oPC,"QuestTargetMob"));
GetMagicItem(oBoss);
}
}