Hi guys!
Im putting some effects with text on some statues and it is changing really fast! I love the effects but I would like that the effects changes slowly, like every 1 or 2 seconds...
Dont know how to change this, and I modified the globalevents.xml to change the interval but it stay the same...
Here is the code
Thanks guys!
Im putting some effects with text on some statues and it is changing really fast! I love the effects but I would like that the effects changes slowly, like every 1 or 2 seconds...
Dont know how to change this, and I modified the globalevents.xml to change the interval but it stay the same...
Here is the code
Code:
function onThink(interval, lastExecution)
same = math.random(01, 255)
doSendAnimatedText({x = 32257, y = 32221, z = 7}, 'Axe', math.random(01,255))
doSendMagicEffect({x = 32257, y = 32221, z = 7}, math.random(38, 50))
doSendAnimatedText({x = 32257, y = 32225, z = 7}, 'Club', math.random(01,255))
doSendMagicEffect({x = 32257, y = 32225, z = 7}, math.random(38, 50))
doSendAnimatedText({x = 32253, y = 32219, z = 7}, 'Sword', math.random(01,255))
doSendMagicEffect({x = 32253, y = 32219, z = 7}, math.random(38, 50))
doSendAnimatedText({x = 32248, y = 32221, z = 7}, 'Distance', math.random(01,255))
doSendMagicEffect({x = 32248, y = 32221, z = 7}, math.random(38, 50))
doSendAnimatedText({x = 32248, y = 32225, z = 7}, 'Magic', math.random(01,255))
doSendMagicEffect({x = 32248, y = 32225, z = 7}, math.random(38, 50))
return TRUE
end
Thanks guys!