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

Enter tp, remove item.

ZinXx

New Member
Joined
Dec 1, 2012
Messages
42
Reaction score
1
Hello, someone can send me any script that when i enter tp it removes some item.

And if i dont got the item i got cancel and wont let me in ;p

Thanks in advance
 
Lua:
local item =
local q = 
local pos = {x=, y=, z=}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if doPlayerRemoveItem(cid, item, q) then
doTeleportThing(cid, pos)
else
doTeleportThing(cid, fromPosition)
doPlayerSendCancel(cid, "You need "..q.."x ".. getItemNameById(item).. ".")
end
return true
end

In local item, itemid of item that needs to be paid, in q, quantity of that item and in pos, position where player will be teleported if has the item...
 
Lua:
local itemid = 9020
local q = 1
local pos = {x=1050, y=1436, z=6}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if doPlayerRemoveItem(cid, itemid, q) then

doTeleportThing(cid, pos)
else
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You need atleast "..q.."  tokens to pass !")
end
return true
end
 
Back
Top