i have loot analyzer on client. but actually just work if the item of is moved from corpse to player container, i need change this to work too if player push item from corpse to ground or from corpse to player container both...
This script i have.
This script i have.
Lua:
function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder)
local t = Tile(fromCylinder:getPosition())
local corpse = t:getTopDownItem()
if corpse then
local itemType = corpse:getType()
if itemType:isCorpse() and toPosition.x == CONTAINER_POSITION then
self:checkAnalyzerLootItem(item:getId(), item:getCount())
dropAnalyzer = {}
table.insert(dropAnalyzer, item:getName())
table.insert(dropAnalyzer, item:getCount())
table.insert(dropAnalyzer, item:getId())
self:addAnalyzerDrop(dropAnalyzer)
end
end
end