generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
25
_module/nss/med_shop.nss
Normal file
25
_module/nss/med_shop.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.6
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Put this OnUsed
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastUsedBy();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
if (GetItemPossessedBy(oPC, "nordock_token")!=OBJECT_INVALID)
|
||||
oTarget = GetObjectByTag("nordock_med_w");
|
||||
else
|
||||
oTarget = GetObjectByTag("med_shop");
|
||||
|
||||
PlaySound("it_blademedium");
|
||||
OpenStore(oTarget, oPC, 0, 0);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user