i am think too there nothing wrong in this script =PWell , try this90% 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
The one Limos quoate was mineyea limos i don't try this script work fine thx and rep for u and cyko and mido for try
and i want one more scrip for teleport by level please u can't teleport if u under level 300
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
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