RoT2_PRC8/_module/nss/xx_ques_chest.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

23 lines
533 B
Plaintext

#include "pqj_inc"
void main()
{
object oItem = GetInventoryDisturbItem();
object oPC = GetLastDisturbed();
if(GetTag(oItem) == "NW_IT_MSMLMISC19")
{
if(RetrieveQuestState("TUTORQUEST",oPC) == 1) // quest started
{
AddPersistentJournalQuestEntry("TUTORQUEST",2, oPC);
}
else
{
// player has not started the quest yet, return item to chest
CreateItemOnObject(GetResRef(oItem));
DestroyObject(oItem);
SendMessageToPC(oPC,"You haven't started this quest yet...");
}
}
}