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

{Requesting} Custom Effects!

Moataz Hero

Titania.Sytes.Net
Joined
Jan 1, 2010
Messages
417
Reaction score
11
Location
Wars Land!
{Requesting} Custom Effects
PHP:
["Quests"] = {pos = {998,995,7},
["Trainers"] = {pos = {998,993,7},
["Shops"] = {pos = {1001,995,7},
["Depot"] = {pos = {1001,994,7},
["Games"] = {pos = {1001,993,7},
["Compaq"] = {pos = {902,1091,7},
["Compaq"] = {pos = {1091,943,6},
["Lumina"] = {pos = {1091,954,6},
["Temple"] = {pos = {1026,994,7},
["~KoH~"] = {pos = {1005,1003,7},
["Lumina"] = {pos = {1091,954,5},
["Lumina"] = {pos = {936,978,6},
["Ithilien"] = {pos = {936,980,6},
["Manhattan"] = {pos = {936,981,6},
["Delfoy"] = {pos = {936,977,6},
["Back"] = {pos = {1245,903,6},
["~ZE~"] = {pos = {1006,1000,6},
["~TDM~"] = {pos = {1004,1003,7},
["~PTC~"] = {pos = {1003,1003,7}, 
}

i want that postitons with that text in the right of it with random effects and random colours
waiting for someone make that for me (please make them fast!)
Regards
Moataz!
 
Lua:
 -- credits to zysen
local config = {
 positions = {
  ["Text.."] = { x = 1000, y = 1000, z = 7 },
  ["Text.."] = { x = 1000, y = 1000, z = 7 },
  ["Text.."] = { x = 1000, y = 1000, z = 7 },
  ["Text.."] = { x = 1000, y = 1000, z = 7 },
  ["Text.."] = { x = 1000, y = 1000, z = 7 },
  ["Text.."] = { x = 1000, y = 1000, z = 7 },
},
 
 effects = {
  CONST_ME_MAGIC_BLUE,
  CONST_ME_MAGIC_GREEN,
  CONST_ME_MAGIC_RED,
 },
 
 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
something like this?
 
Lua:
function onThink(interval, lastExecution)

local texts =
{
        ["Text.."] = {{x=1000, y=1000, z=7}, 12, TEXTCOLOR_PURPLE},
        ["Text.."] = {{x=1000, y=1000, z=7}, 31, TEXTCOLOR_GREEN},
        ["Text.."] = {{x=1000, y=1000, z=7}, 48, TEXTCOLOR_YELLOW},
        ["Text.."] = {{x=1000, y=1000, z=7}, 11, TEXTCOLOR_BLUE},
        ["Text.."] = {{x=1000, y=1000, z=7}, 16, TEXTCOLOR_RED},
        ["Text.."] = {{x=1000, y=1000, z=7}, 31, TEXTCOLOR_WHITE},
}

        for text, param in pairs(texts) do
                doSendAnimatedText(param[1], text, param[3])
                doSendMagicEffect(param[1], param[2])
        end
        return TRUE
end
Shorter ^_^

Edit: Found the script in one of my older OTs, which means that i doesn't know if its made by me or someone else.
 
Last edited:
true, I am just really bored of scripting so I found someone else's and decided not to edit it :p. I need to start scripting more again then I won't be as bored maybe.
 
u need math random on the texture colour comming out and the effect? I can help ya with it if u mean so.
 
brother i need it like u said random color texts and random effects
can u do that for me with that positions and texture that one I've posted in the thread?
waiting ur reply with help or waiting any reply of helps
and if anyone helped me, I'll rep+ him
Waiting for reply of help!
 
Code:
local config = {
 positions = {
["Quests"] =  [998,995,7],
["Trainers"] =  [998,993,7],
["Shops"] =  [1001,995,7],
["Depot"] =  [1001,994,7],
["Games"] =  [1001,993,7],
["Compaq"] =  [902,1091,7],
["Compaq"] =  [1091,943,6],
["Lumina"] =  [1091,954,6],
["Temple"] =  [1026,994,7],
["~KoH~"] =  [1005,1003,7],
["Lumina"] =  [1091,954,5],
["Lumina"] =  [936,978,6],
["Ithilien"] =  [936,980,6],
["Manhattan"] =  [936,981,6],
["Delfoy"] =  [936,977,6],
["Back"] =  [1245,903,6],
["~ZE~"] =  [1006,1000,6],
["~TDM~"] =  [1004,1003,7],
["~PTC~"] =  [1003,1003,7],
},
 
 
 colors = {
  TEXTCOLOR_WHITE,
  TEXTCOLOR_ORANGE,
  TEXTCOLOR_GREEN,
  TEXTCOLOR_BLUE
 }
}
 
function onThink(cid, interval, lastExecution)
 for text, pos in pairs(config.positions) do
  doSendMagicEffect(pos, [math.random(1, 65)])
  doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
 end
 return TRUE
end

^^ should work , tell me if it doesnt
 
Last edited:
I've Fixed the colours
now i need the effects to be random! like (1,67)
and come visit me in my ot to show u
ip: 41.43.68.53
client: 8.60
port: 7171
waiting u there!
login with 1/1

last update of the script

PHP:
 local text = {
	[1] = {pos = {998,994,7}, text = {"Teleports"}},
	[2] = {pos = {998,995,7}, text = {"Quests"}},
	[3] = {pos = {998,993,7}, text = {"Trainers"}},
	[4] = {pos = {1001,995,7}, text = {"Shops"}},
	[5] = {pos = {1001,994,7}, text = {"Depot"}},
	[6] = {pos = {1001,993,7}, text = {"Games!"}},
	[7] = {pos = {902,1091,7}, text = {"Compaq"}},
	[10] = {pos = {1091,943,6}, text = {"Compaq"}},
	[11] = {pos = {1091,954,6}, text = {"Lumina"}},
	[12] = {pos = {1026,994,7}, text = {"Temple"}},
	[13] = {pos = {1091,943,7}, text = {"Compaq"}},
        [14] = {pos = {1078,1169,7}, text = {"Teleports"}},
	[15] = {pos = {1005,1003,7}, text = {"~KoH~"}},
	[16] = {pos = {1091,954,5}, text = {"Lumina"}},
	[17] = {pos = {936,978,6}, text = {"Lumina"}},
	[18] = {pos = {936,980,6}, text = {"Ithilien"}},
	[19] = {pos = {936,981,6}, text = {"Manhattan"}},
	[20] = {pos = {936,977,6}, text = {"Delfoy"}},
	[21] = {pos = {1245,903,6}, text = {"Back!"}},
	[22] = {pos = {1006,1000,6}, text = {"~ZE~"}},
	[23] = {pos = {1004,1003,7}, text = {"~TDM~"}},
	[24] = {pos = {1003,1003,7}, text = {"~PTC~"}}
}

function onThink(interval, lastExecution)
	for _, area in pairs(text) do
		doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(1,256))
	end
	for _, area in pairs(effects) do
		doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1], math.random(1,66))
	end
	return TRUE
end
 
Last edited:
Try This ;)
Lua:
local t = {
    [{x=998, y=994, z=7}] = {text = 'Teleports'},
    [{x=998, y=995, z=7}] = {text = 'Quests'},
    [{x=998, y=993, z=7}] = {text = 'Trainers'},
    [{x=1001, y=995, z=7}] = {text = 'Shops'},
    [{x=1001, y=994, z=7}] = {text = 'Depot'},
    [{x=1001, y=993, z=7}] = {text = 'Games!'},
    [{x=902, y=1091, z=7}] = {text = 'Compaq'},
    [{x=1091, y=943, z=6}] = {text = 'Compaq'},
    [{x=1091, y=954, z=6}] = {text = 'Lumina'},
    [{x=1026, y=994, z=7}] = {text = 'Temple'},
    [{x=1091, y=943, z=7}] = {text = 'Compaq'},
    [{x=1078, y=1169, z=7}] = {text = 'Teleports'},
    [{x=1005, y=1003, z=7}] = {text = '~KoH~'},
    [{x=1091, y=954, z=5}] = {text = 'Lumina'},
    [{x=936, y=978, z=6}] = {text = 'Lumina'},
    [{x=936, y=980, z=6}] = {text = 'Ithilien'},
    [{x=936, y=981, z=6}] = {text = 'Manhattan'},
    [{x=936, y=977, z=6}] = {text = 'Delfoy'},
    [{x=1245, y=903, z=6}] = {text = 'Back!'},
    [{x=1006, y=1000, z=6}] = {text = '~ZE~'},
    [{x=1004, y=1003, z=7}] = {text = '~TDM~'},
    [{x=1003, y=1003, z=7}] = {text = '~PTC~'}
}

function onThink(interval, lastExecution, thinkInterval)
    for pos, v in pairs(t) do
        if v.text then
            doSendAnimatedText(pos, v.text, v.color or math.random(1,255))
			doSendMagicEffect(pos, math.random(1,68))
        end
    end
    return true
end
 
Back
Top