20 lines
688 B
Plaintext
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);
|
|
}
|