• 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 on use

Gomn

Universe OTS is commin...
Joined
Feb 21, 2010
Messages
102
Reaction score
1
Location
Dungannon
Hello, ive been looking for script.

It supose to teleport a player if he right clicks on a item. Im sure that there is one in otland but i cant find it. Please help me.

I give rep
 
I guess this is what you mean?

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local p = {x=1,y=1,z=1} -- where to tp to
	doTeleportThing(cid,p)
	doSendMagicEffect(p,10)
return true
end
 
take this
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPos = {x=1000, y=1000, z=7}
        doTeleportThing(cid, newPos)
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
return true
end
 
take this
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPos = {x=1000, y=1000, z=7}
        doTeleportThing(cid, newPos)
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
return true
end

don't post script when the solution is already posted?

+ this post is from june 2nd <_<
 
Back
Top