Ancordia_PRC8/_module/nss/quest_givestolen.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

20 lines
688 B
Plaintext

#include "quest_inc"
void main()
{
object oPC = GetPCSpeaker();
string sDB = CharacterDB(oPC);
string sExtra = GetCampaignString(sDB, "QUEST_EXTRA");
string sResRef;
if (sExtra == "stealamulet") sResRef = "quest_stolenamul";
else if (sExtra == "stealsphere") sResRef = "quest_stolenart1";
else if (sExtra == "stealdisc") sResRef = "quest_stolenart2";
else if (sExtra == "stealhand") sResRef = "quest_stolenart3";
else sResRef = "quest_stolenring";
CreateItemOnObject(sResRef, oPC);
if (GetCampaignString(CharacterDB(oPC), "QUEST_EXTRA2") != "mustkill") AddRandomQuestJournalEntry(oPC, 2);
SetLocalInt(OBJECT_SELF, "Quest_Halt", TRUE);
}