• 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!

[Request] GlobalEvents Talk

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I have a script that teleportation is talking about it ... I wanted to change the fact I already tried everything else I can not ... I wanted to end No: 31 would someone help me? scripter:
Code:
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(1, #config.effects))
doSendAnimatedText(pos, text, math.random(31, 255))
end
Effect: 31 plx help
REP+
 
and so, I have a script that teleportation is talking about ...
and has a crazy effect. I wanted to change that.
I've tried several times, is giving error.
Number of effect 31

Scripter:
Code:
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(1, #config.effects))
doSendAnimatedText(pos, text, math.random(31, 255))
end
 
Code:
local text = {
	{pos = {x=1095,y=1217,z=7}, text = "text 1"},
	{pos = {x=1095,y=1217,z=7}, text = "text 2"},
	{pos = {x=1095,y=1217,z=7}, text = "text 3"},
	{pos = {x=1095,y=1217,z=7}, text = "text 4"}
}
local effects = {
	{pos = {x=1095,y=1217,z=7}, effect = 31},
	{pos = {x=1096,y=1217,z=7}, effect = 31},
	{pos = {x=1097,y=1217,z=7}, effect = 31},
	{pos = {x=1098,y=1217,z=7}, effect = 31}
}
function onThink(interval, lastExecution)
	for _, area in ipairs(text) do
		doSendAnimatedText(area.pos, area.text, math.random(255))
	end
	for _, area in ipairs(effects) do
		doSendMagicEffect(area.pos, area.effect)
	end
	return true
end
 
Back
Top