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

Need this script fast and simple! earn big Rep++

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
I got a script on talkactions, when you say !tp its come number 5, 4, 3 to 0 then you get tp to temple! but when i do !tp, then exemple hmm !highscore, or something else its come error on the server consol! so i need a script when you do !tp you are exhastuad hmm 5seconds!

And its got storage 4032!

Sorry cant past the script how its look like :/ but i hope you understand!
Rep+++!
 
Last edited:
Man, already told you that bump is allowed only once every 24 hours since last post.


edit-
if we can't see the script how you want that we help?
 
teleportplayer.lua:
LUA:
local function Countdown(cid, key, pos)
	if(isPlayer(cid) == FALSE) then
		return stopEvent(Countdown)
	end

	if(getCreatureStorage(cid, key) ~= os.time()) then
		doCreatureSay(cid, "Teleporting in: " .. getCreatureStorage(cid, key) - os.time() .. "", TALKTYPE_MONSTER)
	elseif(getCreatureStorage(cid, key) == os.time()) then
		doCreatureSay(cid, "Teleporting now.", TALKTYPE_MONSTER)
		if(doTeleportThing(cid, pos)) then
			doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF)
			doSendMagicEffect(pos, CONST_ME_TELEPORT)
		end
	end

	return true
end

function onSay(cid, words, param, channel)
	local key = 4032
	doCreatureSetStorage(cid, key, os.time() + 5)
	for i = 0, 5 do
		addEvent(Countdown, i * 1000, cid, key, getTownTemplePosition(1, false))
	end

	return true
end

In talkactions.xml:
XML:
	<talkaction words="!tp" event="script" value="teleportplayer.lua"/>

I'm trying something new, let me know if this works.
 
Last edited:
Back
Top