koliber66
New Member
I need script when player's step on tile teleport its create and when player go out with tile teleport It will pass away .
thx anyway
thx anyway
function onStepIn(cid, item, position, fromPosition)
local createpos = {x=101, y=118, z= 7}
local topos = {x=99, y=122, z= 7}
if isPlayer(cid) == TRUE then
doCreateTeleport(1387, topos, createpos)
doSendMagicEffect(position, CONST_ME_HITBYFIRE)
end
return TRUE
end
function onStepOut(cid, item, position, fromPosition)
local telePos = {x=101, y=118, z= 7, stackpos=1}
local getTele = getThingFromPos(telePos)
if isPlayer(cid) == TRUE then
doRemoveItem(getTele.uid, 1)
end
return TRUE
end
@EDIT:
Pit~ can u make too script that same with wall when i step in tile wall remove and when i step out wall create !
Can u?
THX
function onStepIn(cid, item, position, fromPosition)
local wallPos = {x=101, y=118, z= 7, stackpos=1}
local removeWall = getThingFromPos(wallPos)
if isPlayer(cid) == TRUE then
doRemoveItem(removeWall.uid, 1)
doSendMagicEffect(position, CONST_ME_HITBYFIRE)
end
return TRUE
end
function onStepOut(cid, item, position, fromPosition)
local wallPos = {x=101, y=118, z= 7, stackpos=1}
if isPlayer(cid) == TRUE then
doCreateItem(1355, 1, wallPos)
end
return TRUE
end
Pitufo is faast! When I see a request Pitufo is always there with his scripts![]()
Wel, im trying to help, since when i was a noob no one helped me in this shit... and thanks for comments![]()