Hello It's again me ! I have question about onLook function in tfs. I wrote such script
But when I'm looking on bow in game it don't write doPlayerSendTextMessage in default window :<. Why ? When i change onLook function to onUse function it works very well ...
Lua:
function onLook(cid, item, position, distance)
if(item.itemid == 2456) then
local shootrange = getItemAttribute(item.uid, shootRange)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bow range: "..shootrange)
end
return true
end
But when I'm looking on bow in game it don't write doPlayerSendTextMessage in default window :<. Why ? When i change onLook function to onUse function it works very well ...