33 lines
567 B
Plaintext
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);
|
|
|
|
}
|
|
|