#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 = 110; SetPartyInt(oPC,"QuestSteps",1); iQuestStepType = 7; SetPartyString(oPC,"QuestStep1Item","en4_orb2"); SetPartyInt(oPC,"QuestStep1ItemUnknown",1); SetPartyString(oPC,"QuestStep1Mob",""); 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); SetLocalInt(GetModule(),"UniqueBoss",1); SetupQuestStep(iQuestStepType,1,oPC,oGiver); DelayCommand(1.0f,SetLocalInt(GetModule(),"UniqueBoss",0)); RemoveJournalQuestEntry("jCamp",oPC); SetLocalInt(oPC,"Overall2NotAccepted",0); SQL_SetLocalIntOnAll(oPC,"OverallQuest",110); iRandom = Random(2); if (iRandom == 0) { oBoss = GetObjectByTag(GetLocalString(oPC,"QuestTargetMob")); GetMagicItem(oBoss); } }