tony adamantium
Tony!
- Joined
- May 5, 2010
- Messages
- 62
- Reaction score
- 1
i need a script that when u step in on XXXX tile it creates a Wall in some place.. please and thank u
local pos = {x = 1000, y = 1000, z = 1000} --position to make the door
local doorID = 1209 --ID of the door you want to make
onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if not(getThingFromPos(pos).itemid == doorID) then
doCreateItem(doorID, 1, pos)
return true
end
return true
end
if u look at it u would know that its untested coz there is no z=1000Untested:
LUA:local pos = {x = 1000, y = 1000, z = 1000} --position to make the door local doorID = 1209 --ID of the door you want to make onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if not(getThingFromPos(pos).itemid == doorID) then doCreateItem(doorID, 1, pos) return true end return true end
local UID = XXX -- Unique ID of The Tile
local create = XXX -- ID of the Item To Be Created
local pos = {x = XXX, y = XXX, z = XXX} -- pos Of The Item To Be Created
function onStepIn(cid, item, position, fromposition)
if item.uid == UID then
doCreateItem(create, 1, pos)
end
return 1
end
<movevent type="StepIn" uniqueid="XXXX" event="script" value="CreateItem.lua"/>