• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

items teleport

szajker123

New Member
Joined
May 12, 2012
Messages
195
Reaction score
0
Hi, has anyone may link or script so that when I click on the item to me xxxx teleports to a random location xyz (chosen by me) REP + + for your help
Regards
 
here

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local location = {
	{x = 1, y = 1, z = 1}, -- location 1 
	{x = 1, y = 1, z = 1}, -- location 2 
	{x = 1, y = 1, z = 1}, -- location 3
	{x = 1, y = 1, z = 1}, -- location 4
	{x = 1, y = 1, z = 1}, -- location 5
	{x = 1, y = 1, z = 1}  -- location 6
}

if isPlayer(cid) then
doTeleportThing(cid,location[math.random(#location)])
doSendMagicEffect(getPlayerPosition(cid),66)
end
	return true
	
end
 
Last edited:
Back
Top