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

On Step Tile Create tp

koliber66

New Member
Joined
Oct 28, 2008
Messages
196
Reaction score
0
Location
Black(Recife)
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
 
Try this one:

NOT TESTED!

PHP:
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
 
Pitufo u are lua master =)
Its work perfectly for me thx
Rep++ OFC :D

guz~~

@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
 
Last edited:
@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

Script:

PHP:
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 :D

Wel, im trying to help, since when i was a noob no one helped me in this shit... and thanks for comments :D
 
Back
Top