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

Problem fixed close thread plz

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,529
Solutions
1
Reaction score
85
Location
Portugal
Advanced teleport scroll which is unlimited use it will create a teleport on the place you use it into and anyone can go to this teleport it will send you to the temple it will count for 10 seconds when the 10 seconds are over the teleport will dissappear can be used once each 60 seconds!

When i use it, it will create a teleport that will be 10 secs waiting until someone go on it.

Item ID: 8304
Position to be teleported to: X: 1000 Y: 1000 Z: 7
TFS: 0.3.4
Script Type: Action

While the teleport is up for 10 seconds it will do:

10
9
8
7
6
5
4
3
2
1
Text Colour: RED

Then after 10 seconds it will desapear.

REP++ to who helps!
 
Lua:
local time = 10

local tele = {
	{ x = 1000, y = 1000, z = 7}
	
}

function removeTele(item, position)
	addEvent(createtele, timeToCreate * 10000)
	for i = 1, doPlayerSendTextMessage(cid, 14, "" ..time[i].."") do
		doRemoveItem(getThingfromPos(tele[i]).uid)
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_RED)
	end
	return TRUE
end

function createTele(item, position)
	for i = 1, doPlayerSendTextMessage(cid, 14, "tele is created") do
		doCreateItem(8304, 1, tele[i])
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_GREEN)
	end
	return TRUE
end

function onThink(interval, lastExecution)
	addEvent(removeTele, 10000)
	return TRUE
end

Test my script inst tested, im not LUA ex4ert but i try to make the scri4t
 
Lua:
local time = 10

local tele = {
	{ x = 1000, y = 1000, z = 7}
	
}

function removeTele(item, position)
	addEvent(createtele, timeToCreate * 10000)
	for i = 1, doPlayerSendTextMessage(cid, 14, "" ..time[i].."") do
		doRemoveItem(getThingfromPos(tele[i]).uid)
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_RED)
	end
	return TRUE
end

function createTele(item, position)
	for i = 1, doPlayerSendTextMessage(cid, 14, "tele is created") do
		doCreateItem(8304, 1, tele[i])
		doSendMagicEffect(tele[i], CONST_ME_MAGIC_GREEN)
	end
	return TRUE
end

function onThink(interval, lastExecution)
	addEvent(removeTele, 10000)
	return TRUE
end

Test my script inst tested, im not LUA ex4ert but i try to make the scri4t

doesnt work =/
 
Back
Top