26 lines
463 B
Plaintext
26 lines
463 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("nordock_med_w");
|
||
|
else
|
||
|
oTarget = GetObjectByTag("med_shop");
|
||
|
|
||
|
PlaySound("it_blademedium");
|
||
|
OpenStore(oTarget, oPC, 0, 0);
|
||
|
|
||
|
}
|
||
|
|