HiddenTradition_PRC8/_module/nss/at_inqcampdoor.nss
2024-06-20 15:47:42 -04:00

30 lines
519 B
Plaintext

#include "nw_i0_tool"
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.2
For download info, please visit:
http://www.angelfire.com/space/lilacsoul */
//Put this OnOpen
void main()
{
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "it_camp_key")== OBJECT_INVALID)
return;
RewardPartyXP(50, oPC, TRUE);
AddJournalQuestEntry("jt_gettingaway", 2, oPC, TRUE, FALSE);
DelayCommand(180.0, ActionCloseDoor(OBJECT_SELF));
SetLocked(OBJECT_SELF, 1);
}