NWScript:
void ReplacePlotItem(string sItem);
void main()
{
int nDistType = GetInventoryDisturbType();
if ((nDistType == INVENTORY_DISTURB_TYPE_REMOVED) || (nDistType == INVENTORY_DISTURB_TYPE_STOLEN)){
object oItem = GetInventoryDisturbItem();
int nPlot = GetPlotFlag(oItem);
if (nPlot){
string sTemplate = GetTag(oItem);
DelayCommand(300.0f, ReplacePlotItem(sTemplate));
}
}
}
void ReplacePlotItem(string sItem)
{
CreateItemOnObject(sItem);
}