kubiczi123
RoFT- First and last memb
Hi, its again me.
I have next problem and i hope you will help me
I have one lever that should remove this wall:
Lever:
Actions.xml
Lever.lua
What should i do to make this wall disappear?
#Edit: I'm using pokemon centurion engine
#EDIT2: I've noticed that bug in lever.lua (wrong pos)
And it didnt worked at all
I have next problem and i hope you will help me
I have one lever that should remove this wall:
Lever:
Actions.xml
PHP:
<action uniqueid="4181" event="script" value="lever.lua"/>
Lever.lua
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
wall_pos = {x=1157, y=1119, z=8, stackpos=1}
wall = getThingfromPos(wall_pos)
if item.itemid == 1945 and wall.itemid == 1034 then
doSendMagicEffect(wall_pos, 10)
doRemoveItem(wall.uid, 1)
doTransformItem(item.uid, 1946)
addEvent(createWall, 3 * 1000)
elseif item.itemid == 1946 then
doTransformItem(item.uid, 1945)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end
function createWall()
doCreateItem(1034, wall_pos)
doSendMagicEffect(wall_pos, 10)
end
What should i do to make this wall disappear?
#Edit: I'm using pokemon centurion engine
#EDIT2: I've noticed that bug in lever.lua (wrong pos)
And it didnt worked at all