data/creaturescripts/scripts crie um arquivo chamado look_item.lua e adicione dentro:
function onLogin(cid) registerCreatureEvent(cid, "look_item") end local lookitem = 2426 local lookmsg = "Voce nao pode dar look noob!" function onLook(cid, thing, position, lookDistance) if isPlayer(cid) then return false end if thing.itemid == lookitem then doPlayerSendCancel(cid, lookmsg) end return true end
lookitem Coloque o ITEMID do item e lookmsg entre aspas a msg.
Em creaturescripts.xml adicione essa tag:
<event type="login" name="look_login" event="script" value="look_item.lua"/> <event type="look" name="look_item" event="script" value="look_item.lua"/>




info
Grupo: Visconde
Registrado: 10/02/11
Posts: 377
Reputação: +78
Gente como posso fazer pra quando o player der look em um item
ele receber uma mensagem
doPlayerSendCancel