Action Teleport Effects

LuckyM

Ett är Ett
Joined
Jun 13, 2009
Messages
1,384
Best answers
0
Reaction score
145
Location
Sweden
Here is Teleport Effects



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:

Grehy

Killroy
Joined
Nov 21, 2008
Messages
2,628
Best answers
0
Reaction score
30
Location
United States
How many different releases for basically the same script are there?
 

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
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
 

Zoriath

New Member
Joined
Mar 26, 2008
Messages
1,496
Best answers
0
Reaction score
3
Some people can't seem to understand that a quote is something different than a code... (Sorry if I was a bit too harsh..)
 

chojrak

Banned User
Joined
Oct 25, 2008
Messages
5,832
Best answers
2
Reaction score
158
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
 

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
Lol?, why u wrote it in actions?
 

Apollo

Herban Legend
Joined
Jul 11, 2007
Messages
519
Best answers
0
Reaction score
1
Location
Canada
How can I make this work in TFS v0.2.1 Mystic Spirit?
 

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
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:
 
OP
LuckyM

LuckyM

Ett är Ett
Joined
Jun 13, 2009
Messages
1,384
Best answers
0
Reaction score
145
Location
Sweden
ohh I'm Sorry :S haha sorry
 

Ava3D

New Member
Joined
Jan 10, 2009
Messages
6
Best answers
0
Reaction score
0
How can I put it on the map? Because I don't understand too much: I ask P for the help
 
Top