• 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

LuckyM

Ett är Ett
Joined
Jun 13, 2009
Messages
1,411
Solutions
1
Reaction score
167
Location
Sweden
Here is Teleport Effects

namnls.jpg


Remeber This Script is GLOBALEVENT!

1. Go To the Folder Globalevents then script make new file effectile.lua and insert this
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 = {
CONDITION_PARAM_DELAYED



}
}

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(1, 255))
end

return TRUE
end

2.Go To ´globalevents.xml and insert this
<globalevent name="EffectTile" interval="3" script="effectile.lua"/>


Here you got Teleport's effects
Rep me if i have do a good job :p
 
Last edited:
Tabbed:
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 = {
CONDITION_PARAM_DELAYED
}
}

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(1, 255))
    end
    return TRUE
end
 
Some people can't seem to understand that a quote is something different than a code... (Sorry if I was a bit too harsh..)
 
More configurable :p

Code:
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
	}
}

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
 
1. Go To the Folder Globalevents then script make new file effectile.lua and insert this
2.Go To ´globalevents.xml and insert this

It isn't action...
You even said yourself its "Global."

Fail. :thumbup:
 
How can I put it on the map? Because I don't understand too much: I ask P for the help
 
Back
Top