23 lines
533 B
Plaintext
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...");
|
|
}
|
|
}
|
|
}
|