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

GlobalEvent write up the tp script [8.54]

andrewss

Nice Member
Joined
Jun 12, 2010
Messages
122
Reaction score
1
Location
E G Y P T
now i will show how to write up the tp
it's worked 100% for tfs 0.3.6
it's for 8.54

now open data/globalevents/sccripts add script name tp
Code:
function onThink(interval, lastExecution) 
    doSendAnimatedText({x=995,y=998,z=7}, 'Training monk', math.random(01,255))
    return true 
end

change the [x,y,z] and 'trainig monk' change < you want to write what up the tp

now open data/globalevents.xml

Code:
    <globalevent name="[SIZE="3"]here your write in tp[/SIZE]" interval="0.5" event="script" value="tp.lua"/>

gratz now you have the script write up the tp :D


fa4qqx.jpg
 
Lua:
	local text = {
	--X pos,Y pos, Z pos, text
	[1] = {pos = {3004,2105,7}, text = {"xxx"}},
	[2] = {pos = {3003,2105,7}, text = {"xxx"}},
	[3] = {pos = {3005,2105,7}, text = {"xxx"}},
	[4] = {pos = {1001,1003,7}, text = {"xxx"}},
	[5] = {pos = {998,994,7}, text = {"xxx"}},
	[6] = {pos = {1000,994,7}, text = {"xxx"}},
	[7] = {pos = {1002,994,7}, text = {"xxx"}},
	[8] = {pos = {1081,952,7}, text = {"xxx"}},
	[9] = {pos = {1081,954,7}, text = {"xxx"}},
	[10] = {pos = {1083,950,7}, text = {"xxx"}}
 
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(01,255))
	end
	for _, area in pairs(effects) do
		doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
	end
	return TRUE
end
 
i like the map :p send me it pm if u want xD
 
Back
Top