25 lines
460 B
Plaintext
25 lines
460 B
Plaintext
|
/* 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("n_cloak");
|
||
|
else
|
||
|
oTarget = GetObjectByTag("cloak_shop");
|
||
|
PlaySound("it_materialcloth");
|
||
|
OpenStore(oTarget, oPC, 0, 0);
|
||
|
|
||
|
}
|
||
|
|