• 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

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,683
Solutions
36
Reaction score
388
hello guys i want script teleport you with items like you can't teleport if u don't have 100 script coins tfs 3.6
 
Well , try this :) 90% will work
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local tpos,v = {x=1000, y=1000, z=7},getThingPos(cid)
local item = 2547
	 if doPlayerRemoveItem(cid, item, 100) and isPlayer(cid) then
		doTeleportThing(cid,tpos)
		doSendMagicEffect(v,10)
	else
		doTeleportThing(cid,fromPosition)
		doPlayerSendTextMessage(cid,19,'You need 100 Script Coins.')
		doSendMagicEffect(v,2)
	end
	return true
end
i am think too there nothing wrong in this script =P :P
 
yea limos i don't try this script work fine thx and rep for u and cyko and mido for try
The one Limos quoate was mine :P i fixed it.

- - - Updated - - -

and i want one more scrip for teleport by level please u can't teleport if u under level 300

LUA:
local tpto = {x = 100, y = 100, z = 7}
local level = 300
function onStepIn(cid, item, position, fromPosition)
	if not(isPlayer(cid)) then return true end 
	if getPlayerLevel(cid) >= level then
		doTeleportThing(cid, tpto)
		doSendMagicEffect(tpto,10)
	else
		doPlayerSendTextMessage(cid,22, "Sorry, but you need to be level "..level.."+ to enter here")
		doSendMagicEffect(getThingPos(cid),10)
		doTeleportThing(cid, fromPosition)
		end
	return true
end
 
Edited cyko's script ...
Here We Are
LUA:
local tpto = {x = 100, y = 100, z = 7}
local itemid = 2148
function onStepIn(cid, item, position, fromPosition)
	if not(isPlayer(cid)) then return true end 
	if doPlayerRemoveItem(cid,itemid,100) and getPlayerLevel(cid) >= 300 then
		doTeleportThing(cid, tpto)
		doSendMagicEffect(tpto,10)
	else
		doPlayerSendTextMessage(cid,22, "Sorry, but it require 100 coins to enter here and level 300 or higher")
		doSendMagicEffect(getThingPos(cid),10)
		doTeleportThing(cid, fromPosition)
		end
	return true
end
 
Back
Top