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

Action Teleport Effects

if you want to use all the effects you can use this script
PHP:
local config = {

   positions = {
        ["Teleports"] = { x = 993, y = 996, z = 7 },
        ["Deport"] = { x = 1006, y = 996, z = 7 },
        ["Trainer"] = { x = 993, y = 1000, z = 7 },
   }

}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendMagicEffect(pos, math.random(0, CONST_ME_LAST))
        doSendAnimatedText(pos, text, math.random(1, 255))
    end
    return TRUE
end
 
yes i can do it , more comments about the script
----------------------
Thanks For Comments
 
woho
Red : Text Color
Blue : Effect
Bold : Text
Code:
--[[ 
     World Animated Texts&Effects 1.0
     Author: [B]Pedrok$[/B]
]]--

local effects =
{
      -- { effectPos, effectTable, effectText, textColor }
      { {x=112, y=356, z=6}, {[COLOR="Blue"]CONST_ME_MAGIC_RED[/COLOR]}, "[B]Mini Poi[/B]", [COLOR="Red"]TEXTCOLOR_ORANGE[/COLOR] },
      { {x=112, y=357, z=6}, {[COLOR="Blue"]CONST_ME_MAGIC_RED[/COLOR]}, "[B]Hard Poi[/B]", [COLOR="Red"]TEXTCOLOR_ORANGE[/COLOR] },
}

function onThink(interval, lastExecution)
         for _, t in ipairs(effects) do 
             if(next(t[2]) ~= nil) then
                     for _, s in ipairs(t[2]) do
                           doSendMagicEffect(t[1], s)
                     end
             end
             
             if(t[3] ~= "") then
                     local len = string.len(t[3])
                     if(len <= 9) then
                          doSendAnimatedText(t[1], t[3], t[4])
                     else
                          doSendAnimatedText(t[1], t[3]:sub(1, 8), t[4])
                          doSendAnimatedText({x=t[1].x+1, y=t[1].y,   z=t[1].z}, t[3]:sub(8, -1), t[4])               
                     end
             end
    end
    return TRUE    
end
 
How make texth with 3x 'DEPO!'?

["Depo!"] = { x = 124, y = 179, z = 6 },
["Depo!"] = { x = 193, y = 155, z = 7 },
["Depo!"] = { x = 130, y = 54, z = 5},

^ DON'T WORK IT :(
 
How make texth with 3x 'DEPO!'?

["Depo!"] = { x = 124, y = 179, z = 6 },
["Depo!"] = { x = 193, y = 155, z = 7 },
["Depo!"] = { x = 130, y = 54, z = 5},

^ DON'T WORK IT :(

Code:
		["Depo!"] = { x = 124, y = 179, z = 6 },
		["Depo!!"] = { x = 193, y = 155, z = 7 },
		["~Depo!"] = { x = 130, y = 54, z = 5},
 
Baahh i am getting bored of this textfull colorfull tp effects xD
Just make a normal tp ?
xD

Just kidding :)
Thanks !
 
and this works for 0.2 I think :)

Lua:
local config = {
	positions = {
		["Teleports"] = { x = 993, y = 996, z = 7 },
		["Deport"] = { x = 1006, y = 996, z = 7 },
		["Trainer"] = { x = 993, y = 1000, z = 7 },
	},

	effects = {
		CONST_ME_MAGIC_BLUE,
		CONST_ME_MAGIC_GREEN,
		CONST_ME_MORTAREA
	},

	colors = {
		TEXTCOLOR_WHITE,
		TEXTCOLOR_ORANGE,
		TEXTCOLOR_GREEN,
		TEXTCOLOR_BLUE
	}
}
local start = false

function onLogin(cid)
	if(start == false) then
		start = true
	for text, pos in pairs(config.positions) do
		doSendMagicEffect(pos, math.random(1, #config.effects))
		doSendAnimatedText(pos, text, math.random(1, #config.colors))
			end
		end
	return true
end
Modified Salitys (Chojrak)
 
If you have been helped by my thread can you give me a rep

Thank you very much
 
Back
Top