Would be awesome if callstack could be added for placed NPCs, that way you could do something like
Class item_dropped:
PHP Code:
function onCreated() {
temp.callstack = getcallstack();
if (callstack[callstack.size() - 2].scriptcallobject.name != "-Inventory") {
echo("Item has been placed illegally!");
destroy();
}
// item stuff
}