from talkaaction i have just example.lua :
function onSay(cid, words, param)
playerpos = getPlayerPosition(cid)
if math.max(math.abs(playerpos.x-23), math.abs(playerpos.y-30)) < 3 then
doTransformItem(1000, 1211)
doSendAnimatedText(playerpos, "OPEN!", 120)...