Aschbourne_PRC8/_module/nss/_tmp_resourcebox.nss
Jaysyn904 f5ffe7d0b9 Module commit
Module commit.
2024-06-14 10:48:20 -04:00

18 lines
682 B
Plaintext

void main()
{
if (GetInventoryDisturbType()== INVENTORY_DISTURB_TYPE_ADDED) return;
object oItem = GetInventoryDisturbItem();
object oPC = GetLastDisturbed();
if (oItem==OBJECT_INVALID) SendMessageToPC(oPC,"Script returned OBJECT_INVALID");
//Hopefully this line will fix whatever issues were causing some stackables with only 1 item in the stack
//from disappearing from the crate when selected twice.
CopyObject(oItem,GetLocation(OBJECT_SELF),OBJECT_SELF,GetTag(oItem));
//SendMessageToPC(oPC,"TAG: "+GetTag(oItem));
//SendMessageToPC(oPC,"RES: "+GetResRef(oItem));
//CreateItemOnObject(GetResRef(oItem),OBJECT_SELF,GetNumStackedItems(oItem));
}