What I want that does he is that you use when it sends different effects, which to be in the table of effects of the Script, but what does it is that it sends another type of effects and what I want is that sends those that to be in the table.
Lua:
effects =
{
CONST_ME_SOUND_BLUE,
CONST_ME_SOUND_RED,
CONST_ME_SOUND_YELLOW,
CONST_ME_SOUND_PURPLE,
CONST_ME_SOUND_BLUE,
CONST_ME_SOUND_WHITE
}
function onUse(cid, item, frompos, item2, topos )
for i, pos in pairs(effects) do
doSendMagicEffect(frompos,math.random(1,table.getn(effects)))
delay10 = delay10+400
end
return 1
end