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

Teleport Animations [Solved]

@please re-upload your picture.

you want something like that?

PHP:
local timespeed = 2000 -- 2000 = 2 seconds
local color = TEXTCOLOR_LIGHTGREEN

function loop(valores)
doSendAnimatedText({x=496, y=506, z=7},"Annhilator 2",color)
addEvent(loop, timespeed, valore) -- 
end

function onSay(cid, words, param)
valore = {cid = cid, topos = topos}
addEvent(loop, velocidade, valore)
end

PHP:
<talkaction words="!anim" script="anim.lua" />


not made by me.
 
Last edited:
Better make a globalevent script :D

data/globalevents/scripts/ and create a file and name it "effectile.lua" and insert this into the file:

PHP:
--Script by Pitufo!
local pos = {
{x = 98, y = 132, z = 7}
}
function onThink(cid, interval, lastExecution)
        doSendMagicEffect(pos[1], 12)
		doSendAnimatedText(pos[1], "PoI", 18)
return TRUE
end

In data/globalevents/ open "globalevents.xml" and insert this:

PHP:
<globalevent name="EffectTile" interval="3" script="effectile.lua"/>

To change the delay is in globalevents and change the "interval"

Any questions post here :D
 
Better make a globalevent script :D

data/globalevents/scripts/ and create a file and name it "effectile.lua" and insert this into the file:

PHP:
--Script by Pitufo!
local pos = {
{x = 98, y = 132, z = 7}
}
function onThink(cid, interval, lastExecution)
        doSendMagicEffect(pos[1], 12)
		doSendAnimatedText(pos[1], "PoI", 18)
return TRUE
end

In data/globalevents/ open "globalevents.xml" and insert this:

PHP:
<globalevent name="EffectTile" interval="3" script="effectile.lua"/>

To change the delay is in globalevents and change the "interval"

Any questions post here :D

Just some more random stuff...
PHP:
local config = {
	positions = {
		["PoI"] = { x = 98, y = 132, z = 7 },
		["War"] = { x = 97, y = 141, z = 7 }
	},
	
	effects = {
		CONST_ME_MORTAREA,
		CONST_ME_HITBYFIRE,
		CONST_ME_GIFTWRAPS,
		CONST_ME_STUN
	}
}

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
 
Just some more random stuff...
PHP:
local config = {
	positions = {
		["PoI"] = { x = 98, y = 132, z = 7 },
		["War"] = { x = 97, y = 141, z = 7 }
	},
	
	effects = {
		CONST_ME_MORTAREA,
		CONST_ME_HITBYFIRE,
		CONST_ME_GIFTWRAPS,
		CONST_ME_STUN
	}
}

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

How To Make Whit only text and no effect?
 
PHP:
local config = {
    positions = {
        ["PoI"] = { x = 98, y = 132, z = 7 },
        ["War"] = { x = 97, y = 141, z = 7 }
    }
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendAnimatedText(pos, text, math.random(1, 255))
    end
    
    return TRUE
end
 
Just some more random stuff...
PHP:
local config = {
	positions = {
		["PoI"] = { x = 98, y = 132, z = 7 },
		["War"] = { x = 97, y = 141, z = 7 }
	},
	
	effects = {
		CONST_ME_MORTAREA,
		CONST_ME_HITBYFIRE,
		CONST_ME_GIFTWRAPS,
		CONST_ME_STUN
	}
}

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


Your script work with TFS 0.2 Distro?
 
if you don't have globalevents, you still can use that script ..
as not made by me!

PHP:
local timespeed = 2000 -- 2000 = 2 seconds
local color = TEXTCOLOR_LIGHTGREEN

function loop(valores)
doSendAnimatedText({x=496, y=506, z=7},"Annhilator 2",color)
addEvent(loop, timespeed, valore) -- 
end

function onSay(cid, words, param)
valore = {cid = cid, topos = topos}
addEvent(loop, velocidade, valore)
end
 
Moderator Message: Please create threads in the correct sections at this forum, if you need help with scripts like this, the "Request and Support" section seem to fit.

Thread Moved.
 

There should read: "Leave from rook!" using Rudolf Czarodziej's script. Need help fast!

you can't add more than 9 words each SQM...

you have to make something like that:

1 SQM "Leave" - 2 SQM "from" - 3 SQM "rook!"

i can't do this now...if someone want to help...
 
Last edited:
Back
Top