giddy92
New Member
- Joined
- Aug 8, 2014
- Messages
- 69
- Reaction score
- 0
When i use this script, i have "Magic Effect" but i dont have "message" effect.
What is wrong?
What is wrong?
Code:
local config = {
positions = {
["Hunting Area"] = { x = 615, y = 89, z = 8 },
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
CONST_ME_MORTAREA
},
colors = {
TEXTCOLOR_WHITE,
TEXTCOLOR_ORANGE,
TEXTCOLOR_GREEN,
TEXTCOLOR_BLUE
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
doCreatureSay(pos, text, config.colors[math.random(1, #config.colors)])
end
return TRUE
end