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

Text code

Daaslund

New Member
Joined
Dec 13, 2010
Messages
41
Reaction score
1
I whant the text comming up of teleports ! i have the code
Code:
local config = {
 positions = {
  ["teleport"] = { x = 1006, y = 996, z = 7 },
  ["Text to show"] = { x = 1000, y = 1000, z = 7 },
  ["Text to show"] = { x = 1000, y = 1000, z = 7 },
  ["Text to show"] = { x = 1000, y = 1000, z = 7 },
  ["Text to show"] = { x = 1000, y = 1000, z = 7 },
  ["Text to show"] = { x = 1000, y = 1000, z = 7 },
},
 
 effects = {
  CONST_ME_MAGIC_BLUE,
  CONST_ME_MAGIC_GREEN,
 },
 
 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

and that have i put in globalevents\scripts-effects.lua

Code:
<globalevent name="effects" interval="2" event="script" value="effects"/>

and this one have i put in globalevent.xml

and it dosent work? help mee please!
 
^_^


Lua:
 local pozycje = {
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"},
 {pos = {x=1000, y=1000, z=1000}, tekst = "TEXT!"}
 }
		function onThink(interval, lastExecution)
			local kolor = TEXTCOLOR_TEAL   -- Jakim kolorem jest dany napis
			for i=1, #pozycje do
				doSendMagicEffect(pozycje[i].pos,37)
				doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,kolor)
			end
			return true
			end
Lua:
	<globalevent name="dragtext" interval="-1" script="dragtext.lua"/>
 
Back
Top