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

Requesting a hard teleportscript!!!

Blackish

New Member
Joined
Jun 3, 2009
Messages
230
Reaction score
0
Location
Earth
can someone make A script work like this
someone say !ctp temple or !ctp depot or !ctp house, it starts counting from 5 to 0 and at the same time it creates the effect CONST_ME_TUTORIALARROW = 55 and after it counts and becomes 0 (the 5-0 counting)
the counting starts again but from 10 to 0 this time and the teleport appears infront of you (the sqm exori vis,mort etc comes at when u use the spell without atking any monsters) and it takes you either to your house, dp or temple depending on what u wrote and the teleport dissapears when the countings becomes 0 (the 10-0 counting:p) also u can use this command every 30min

hope someone can do it and hope u can understand what i just wrote and if u dont just msg me!

thx:p
 
Last edited:
Code:
function onSay(cid, words, param, channel)
	local avaiableTeleport = {
		["temple"] = {pos = getTownTemplePosition(getPlayerTown(cid))},
		["depot"] = {pos = {x = 100, y = 200, z = 7}},
		["house"] = {pos = getHouseInfo(getHouseByPlayerGUID(getPlayerGUID(cid))).entry}
	}
	local tp = avaiableTeleport[param:lower()]
	if tp then
		if getPlayerStorageValue(cid, 5023) <= os.time() then
			local count = 5
			for i = 1, count-1 do
				addEvent(doSendAnimatedText, count * 1000, getThingPos(cid), count - 1, 55)
				if count <= 1 then
					doCreateTeleport(id, tp.pos, {x = getThingPos(cid).x+5, y = getThingPos(cid).y, z = getThingPos(cid).z})
				end
			end
			local it = getTileItemById(tp.pos, id).uid
			if it > 0 then
				addEvent(doRemoveItem, 30 * 1000, it)
			end
			setPlayerStorageValue(cid, 5023, os.time() + 600)
		else
			doPlayerSendTextMessage(cid, 27, "Your exhausted.")
		end
	else
		doPlayerSendTextMessage(cid, 27, "You didnt specify a place.")
	end
	return true
end
 
Last edited:
Pitufo can u give me the link to the script cuz ive been looking for this script for a long time now and searched alot but didnt find it
 
You said hard. Thats not hard.

[PSUEDO]

Code:
function onsay(blahblah)
local param = {count = 10, pos = getpos(cid)}
 addevent(0,CountDown, param)
end

function CountDown(param)
  if count > 0 then
    animatedText(param.pos, param.count)
    count = count-1
    addevent(1000,CountDown, param)
  else
    docreateTeleport(param.pos,x,y,x)
    addevent(30000,Remove, 0)
  end
end

function Remove(param)
  removeTeleport(tp)
end
 
idk there is nothing happening and nothing in the "thing u open the server with idk what its call it" buy the only thing that appears is the number 16 with green color
 
Last edited:
You said hard. Thats not hard.

[PSUEDO]

Code:
function onsay(blahblah)
local param = {count = 10, pos = getpos(cid)}
 addevent(0,CountDown, param)
end

function CountDown(param)
  if count > 0 then
    animatedText(param.pos, param.count)
    count = count-1
    addevent(1000,CountDown, param)
  else
    docreateTeleport(param.pos,x,y,x)
    addevent(30000,Remove, 0)
  end
end

function Remove(param)
  removeTeleport(tp)
end


not to you maybe but its hard to me:p anyway ur script dosent have the tiles where the player is suppose to be teleported to
 
Back
Top