Oscar Lyis
Donator
OK, actually I don't know if it works or not so I want someone experience LUA scripter to check this.
addwall:
add comments on how i can improve it ty
addwall:
Code:
--Movement script with removal + add wall by Lord Ockero--
function onStepIn(cid, item, position, fromPosition)
local wall1 = getThingfromPos ({x=1234,y=1234,z=7, stackpos=1} // Set positions
if (item.actionid == 416) then
if isPlayer(cid) == 1 then
doRemoveItem(wall1.uid,1)
doTransformItem(item.uid, item.itemid+1)
end
end
return 1
end
function onStepOut(cid, item, position, fromPosition)
local wall1 = getThingfromPos ({x=1234,y=1234,z=7, stackpos=1} // Set positions
if(item.actionid == 416) then
if isPlayer(cid) == 1 then
doCreateItem(1060,1,wall1)
doTransformItem(item.uid, item.itemid-1)
end
end
return 1
end
Code:
-- Movement by Lord ockero --
<movevent event="StepIn" actionid="416" script="addwall.lua" />
<movevent event="StepOut" actionid="416" script="addwall.lua" />
add comments on how i can improve it ty