Lava Titan
Developer
Hey there, does TFS 1.1 have any function like Player: onDropItem?
I know there is:
But in this case I really need onDropItem...
If theres no such function can you help me creating one?
All I can make is:
The drop part I have no idea how I should do it...
I know there is:
Code:
function Player:onMoveItem(item, count, fromPosition, toPosition)
But in this case I really need onDropItem...
If theres no such function can you help me creating one?
All I can make is:
Code:
function Player:onDropItem(item, count, fromPosition, toPosition)
local count = player:getItemById(item:getId())
if item:getActionId() == 2222 and count >= 1 then
self:sendTextMessage(MESSAGE_STATUS_WARNING, "You can't drop this item...")
return false
end
return true
end
The drop part I have no idea how I should do it...