Moved dropLoot to Lua

This code is one small part of #470.
Players dropping items onDeath has been moved to Lua for more flexibility.
Thanks @ninjalulz for help with moving items to corpse.