Initial upload
Initial upload
This commit is contained in:
22
_module/nss/xx_ques_chest.nss
Normal file
22
_module/nss/xx_ques_chest.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#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...");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user