Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-09-21 21:20:34 -04:00
parent d3f23f8b3c
commit 94990edc60
5734 changed files with 6324648 additions and 0 deletions

49
_module/nss/2keylock.nss Normal file
View File

@@ -0,0 +1,49 @@
string sDeny;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.3
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "ZekinthasStoreKey1")== OBJECT_INVALID)
{
sDeny="You do not have the correct keys in your possesion.";
SendMessageToPC(oPC, sDeny);
return;
}
if (GetItemPossessedBy(oPC, "ZekinthasStoreKey2")== OBJECT_INVALID)
{
sDeny="You do not have the correct keys in your possesion.";
SendMessageToPC(oPC, sDeny);
return;
}
object oTarget;
oTarget = GetObjectByTag("ZeksStoreDoor");
AssignCommand(oTarget, ActionOpenDoor(oTarget));
object oItem;
oItem = GetItemPossessedBy(oPC, "ZekinthasStoreKey1");
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
oItem = GetItemPossessedBy(oPC, "ZekinthasStoreKey2");
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
}