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

Magic Eggs

D4R0

New Member
Joined
Apr 14, 2010
Messages
7
Reaction score
0
Hi, i need to make item 6544 to tp you to somewhere every 60 min u click on it.
Thanks
 
idk if that's what you exactly wanted, but:

LUA:
local pos = { x = XXXX, y = XXXX, z = X }

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local exh = {storage = 147583, time = 60 * 60}
	
	playerpos = getPlayerPosition(cid) 
	
	if (exhaustion.get(cid, exh.storage) ~= false) then
		doPlayerSendCancel(cid, "You are exhausted.")
		doSendMagicEffect(playerpos, CONST_ME_POFF)
		return true
	end
	
	if (exhaustion.get(cid, exh.storage) == false) then
		doTeleportThing(cid, pos)
		doSendMagicEffect(pos, CONST_ME_TELEPORT)
		exhaustion.set(cid, exh.storage, exh.time) 
	end
	return true
end

and next time request scripts here: http://otland.net/f132/
 

Similar threads

Back
Top