Amon_PRC8/_module/nss/rall_chest_talk.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

31 lines
497 B
Plaintext

string sDeny;
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "BlackDiamond")== OBJECT_INVALID)
{
sDeny="*You notice the diamond shaped hole just above the chest's handle*";
SendMessageToPC(oPC, sDeny);
return;
}
object oTarget;
oTarget = GetObjectByTag("rall_chest_plot");
SetLocked(oTarget, FALSE);
object oItem;
oItem = GetItemPossessedBy(oPC, "BlackDiamond");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
}