Toma um Script:
local pos =
{
{{x = 95, y = 38, z = 7}, {x = 95, y = 38, z = 7, stackpos = 253}},
}
function onThink(cid, interval, lastExecution)
for _, positions in pairs(pos) do
doSendMagicEffect(positions[1], 56)
if getThingFromPos(positions[2]).itemid > 0 then
for _, name in pairs(getOnlinePlayers()) do
local player = getPlayerByName(name)
doSendAnimatedText(positions[1], "Treiners", 18)
end
end
end
return TRUE
end
Salve na pasta globalevents\scripts.
E bote isso no glovalevents.xml
<globalevent name="magiceffect1" interval="1" script="NOMEDOSCRIPT.lua"/>
Se ajudei +REP
Assinatura fora das regras.