I Knew Much People made it before i just wanted to try my newbie skills ^_^
Code:
function onThink(interval, lastExecution)
local t = {
[{x=1000,y=1000,z=7}] = {effect=math.random(40), text = "Hhh"},
[{x=1000,y=1002,z=7}] = {effect=math.random(40), text = "hhs"}
}
for i,v in pairs(t) do
doSendMagicEffect(i,v.effect)
doSendAnimatedText(i,v.text, COLOR_BLUE)
end
return true
end
Code:
<globalevent name="effect" interval="1" event="script" value="hp.lua"/>
Last edited: