• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved tfs 1.0 - teleport effects

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?


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
 
You are supposed to use Game.getSpectators() and then use a for loop to get the player userdata, that way you can use targetPlayer:say(parameters).
But the problem with that is that if a player says something it gets removed due to all the "say" functions. So there is no real way to keep the animatedText functions in 1.0 if we are talking about text messages.
 
Back
Top