23 lines
445 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oObject=GetInventoryDisturbItem();
object oPC=GetLastUsedBy();
object oInv;
string sObjectResRef=(GetResRef(oObject));
if (GetInventoryDisturbType()==(INVENTORY_DISTURB_TYPE_ADDED))
{
if ((GetBaseItemType(oObject)) != (BASE_ITEM_KEY))
{
CreateItemOnObject(sObjectResRef, oPC, 1);
DestroyObject(oObject);
SendMessageToPC(oPC, "Please only put tavern room keys in this bowl");
}
}
else
{
return;
}
}