Hello again
I have a talkaction script, but doesn't working :blink:
Please whats wrong?
I Will REP++
I have a talkaction script, but doesn't working :blink:
Code:
function onSay(cid, words, param)
queststatus = getPlayerStorageValue(cid,2102)
maxdist = 2
player = {x=839, y=545, z=6}
playerpos = getPlayerPosition(cid)
pos = { x=839, y=545, z=6, stackpos=1 }
pedra = getThingfromPos(pos)
if queststatus == 1 and math.max(math.abs(playerpos.x-pos.x), math.abs(playerpos.y-pos.y)) < maxdist then
doSendAnimatedText(playerpos, "HYDRA EGG", 198)
doSendMagicEffect(pos,13)
setPlayerStorageValue(cid,2104,1)
return 0
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Please whats wrong?
I Will REP++