Thank you very much for adding these!
This now prevents me from deleting or taking floors from under items that are not always easy to select. It comes handy when I do G&S farming and wine making:
--Stop locked items from being deleted: locked should be locked
function OnAlertDialog(name, dialog_id, message, buttons)
if string.find(name, "ConfirmObjectDeleteLock") and string.find(message, " sure you want ") then
AlertDialogResponse(dialog_id, 2)
print("You cannot delete this object since you locked it.")
else
--Stop locked items from being taken into inventory
if string.find(name, "ConfirmObjectTakeLock") and string.find(message, " sure you want ") then
AlertDialogResponse(dialog_id, 2)
print("You can not take the item as long as it is locked.")
end
end