Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
23
_module/nss/stash_key3.nss
Normal file
23
_module/nss/stash_key3.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastOpenedBy();
|
||||
|
||||
if ((GetItemPossessedBy(oPC, "stash_key1")!=OBJECT_INVALID)||
|
||||
(GetItemPossessedBy(oPC, "stash_key2")!=OBJECT_INVALID))
|
||||
{
|
||||
FloatingTextStringOnCreature("** You already have a stash chest **", oPC);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetItemPossessedBy(oPC, "stash_key3")==OBJECT_INVALID)
|
||||
{
|
||||
CreateItemOnObject("stash_key3", oPC, 1);
|
||||
FloatingTextStringOnCreature("** Key Acquired **", oPC);
|
||||
PlaySound("gui_picklockopen");
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("Welcome back, "+GetName(oPC), oPC);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user