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

"Talking Teleporter" :D

Martiimeus

●тнυg●ℓιƒє● ρα¢ 4 єνєя
Joined
Feb 3, 2009
Messages
500
Reaction score
1
Location
gєямαηу
PHP:
local pos = {
{x = 4000, y = 4000, z = 7}
}
local timespeed = 5000 -- 5000 = 5 seconds
function onThink(cid, interval, lastExecution)
        doSendMagicEffect(pos[1], 29)
        doSendAnimatedText(pos[1], "Welcome!", 183)
return TRUE
end

Hey I just made this script some ppl helped me with it well...

but this doesnt work idk why! Im using TFS 0.2.2 MS :(

Please help me ;<

Edit: there aren't any errors and other sh't :p
 
@Richux
Oh, yes?

Edit your login.lua:
Lua:
local pos1 = {x=4000, y=4000, z=7, stackpos=1}
local pos2 = {x=4001, y=4000, z=7, stackpos=1}
local pos3 = {x=4002, y=4000, z=7, stackpos=1}

function texteffect()

	doSendMagicEffect(pos1, CONST_ME_CARNIPHILA)
	doSendAnimatedText(pos1, "Cykotitan", TEXTCOLOR_ORANGE)

	doSendMagicEffect(pos2, CONST_ME_ICETORNADO)
	doSendAnimatedText(pos2, "is", TEXTCOLOR_LIGHTBLUE)
	
	doSendMagicEffect(pos3, CONST_ME_BIGCLOUDS)
	doSendAnimatedText(pos3, "noob", TEXTCOLOR_RED)
	
	local textEventServ = addEvent(texteffect, 1000, parameters)
end

function onLogin(cid)
	if(InitTextEffect == 0) then
		local textEventServ = addEvent(texteffect, 1000, {})
		InitTextEffect = textEventServ
	end
	registerCreatureEvent(cid, "PlayerDeath")
	return TRUE
end

Add in global.lua:
Lua:
InitTextEffect = 0

Save the files in your text editor, and restart your server. Also change the positions if you want and add/remove/edit the magic effects/messages/text colors.
 
Back
Top