24 lines
613 B
Plaintext
24 lines
613 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetLastOpenedBy();
|
|
|
|
if ((GetItemPossessedBy(oPC, "stash_key1")!=OBJECT_INVALID)||
|
|
(GetItemPossessedBy(oPC, "stash_key3")!=OBJECT_INVALID))
|
|
{
|
|
FloatingTextStringOnCreature("** You already have a stash chest **", oPC);
|
|
}
|
|
else
|
|
{
|
|
if (GetItemPossessedBy(oPC, "stash_key2")==OBJECT_INVALID)
|
|
{
|
|
CreateItemOnObject("stash_key2", oPC, 1);
|
|
FloatingTextStringOnCreature("** Key Acquired **", oPC);
|
|
PlaySound("gui_picklockopen");
|
|
}
|
|
else
|
|
{
|
|
FloatingTextStringOnCreature("Welcome back, "+GetName(oPC), oPC);
|
|
}
|
|
}
|
|
}
|