YugiNao
Banned User
- Joined
- Nov 22, 2008
- Messages
- 211
- Reaction score
- 3
Code:
function onStepIn(cid, item, pos)
-- options
wall1 = {x=32247, y=32210, z=7, stackpos=1}
wall2 = {x=32248, y=32210, z=7, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
-- end options
if(item.actionid == 426) then
if isPlayer(cid) == 1 then
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doTransformItem(item.uid, item.itemid+1)
end
end
return 1
end
function onStepOut(cid, item, pos)
-- options
wall1 = {x=32247, y=32210, z=7, stackpos=1}
wall2 = {x=32248, y=32210, z=7, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
-- end options
if(item.actionid == 426) then
if isPlayer(cid) == 1 then
doCreateItem(1026,1,wall1)
doCreateItem(1026,1,wall2)
doTransformItem(item.uid, item.itemid-1)
end
end
return 1
end
Code:
movevent event="StepOut" actionid="426" script="switch.lua" />
Iam using TFS 0.3.6
I need help with my movement wall script it doesnt work, Iam new at this scripting I really appreciate some help and i Rep++ you for it Afcourse
Last edited: