Alangara_PRC8/_module/nss/ke_museumticket2.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

33 lines
567 B
Plaintext

object oDeny;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "museumsticket")== OBJECT_INVALID)
{
oDeny = GetWaypointByTag("ke_noticket");
AssignCommand(oPC, JumpToObject(oDeny));
return;
}
object oItem;
oItem = GetItemPossessedBy(oPC, "museumsticket");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
}