aff gente o negocio eh tao facil e vcs fica pedindo explicaçao
se vc quer quando chega X sqm perto eh so bota a mesma coisa no movemtes tipo assim
OBS nao ta igual so to fazendo um exemplo
function onStepIn(cid, item, pos)
a = math.random(1,4)
if a == 1 then
msg="se vai morre"
elseif a == 2 then
...
elseif a == 3 then
...
elseif a == 4 then
...
end
if item.actionid == 666 then
doPlayerSay(cid, ,msg, 16)
end
end
Assim onde tiver o item X escolido no xml vai mostra a mensagem randomica se for actionid 666
e se quiser que mostre somente uma vez add antes do segundo if um
if getPlayerStorageValue(cid,12343121) == -1 then
if item.actionid == 666 then
doPlayerSay(cid, ,msg, 16)
end
setPlayerStorageValue(cid,12343121,1)
end