115820
Member
Hi Guys, i need help.
I want a TP TALK, but like TP TALK 1.2 TFS for 0.4
like :
I want a TP TALK, but like TP TALK 1.2 TFS for 0.4
like :
local config = {
positions = {
["Text"] = { x = 1105, y = 989, z = 7 },
["text"] = { x = 1006, y = 996, z = 7 },
["textt"] = { x = 1006, y = 998, z = 7 },
},
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)])
doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
end
return TRUE
end
LUA:local config = { positions = { ["Text"] = { x = 1105, y = 989, z = 7 }, ["text"] = { x = 1006, y = 996, z = 7 }, ["textt"] = { x = 1006, y = 998, z = 7 }, }, 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)]) doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)]) end return TRUE end
Just for ur info I didnt do that script xD but it gonna work ^.^
doSendAnimatedText is removed since 9.x?
The only thing ppl can use is Creature:say(text, type, position).
And there is a con with that, if you place alot of them the things a player says will get removed from the screen (for some reason the client removes w/e the player chats / writes about and sends the creature yell / speak message insted).
FYI if you see scripts using TRUE / FALSE replace them with true / false, not to mention the tabbing![]()
I thought hes using 8.60 since he said he wants it for tfs 0.4 ^^
Ye kinda hard to understand "1.2 TFS for 0.4"
TFS 1.2 rev 0.4? xD
TFS 0.4?
@Xeraphus i want to 0.4 8.6