Initial commit
Initial commit [v9.7]
This commit is contained in:
28
_module/nss/exit_tke_ratkey.nss
Normal file
28
_module/nss/exit_tke_ratkey.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 2.3
|
||||
|
||||
For download info, please visit:
|
||||
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||||
|
||||
//Put this script OnExit
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetExitingObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
object oItem;
|
||||
oItem = GetItemPossessedBy(oPC, "ratkey");
|
||||
|
||||
if (GetIsObjectValid(oItem))
|
||||
DestroyObject(oItem);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user