function Player:onMoveItem(item, count, fromPosition, toPosition)
-- DROP
local npc = toPosition:getTile():getTopCreature() -- or Tile(toPosition):getTopCreature()
if npc and npc:getName() == "Sonya" then
-- stuffs
-- return true
end
-- DRAG
local npc = fromPosition:getTile():getTopCreature() -- or Tile(fromPosition):getTopCreature()
if npc and npc:getName() == "Sonya" then
-- stuffs
-- return true
end