QuaS
Cykotitan Pwned =/
Hello all. I would like to relase you a script to Yalahar Stairs (Ids: 7924, 7925).
So let go.
Make file yalaharstairs.lua in movements/scripts/
add in Movements.xml
How it Works?
Normally put this stairs at map editor:
but to make climbing down, you have to do a litte trick.
Make stairs tile(ID: 459) 1 floor above stairs and give it Action ID of Stairs Below:
.
It should look like it:
Same for East Stairs.
Rep Me If You Like It.
Yours QuaS~
So let go.
Make file yalaharstairs.lua in movements/scripts/
PHP:
local STAIRS_NORTH = 7924
local STAIRS_EAST = 7925
function onStepIn(cid, item, position, fromPosition)
if(item.itemid == STAIRS_EAST) then
local position1 = {x = position.x + 2, y = position.y, z = position.z - 1, stackpos = 235}
doTeleportThing(cid, position1)
doCreatureSetLookDir(cid, EAST)
elseif item.actionid == STAIRS_EAST then
local position4 = {x = position.x - 2, y = position.y, z = position.z + 1, stackpos = 235}
doTeleportThing(cid, position4)
doCreatureSetLookDir(cid, WEST)
elseif(item.itemid == STAIRS_NORTH) then
local position2 = {x = position.x, y = position.y + 2, z = position.z - 1, stackpos = 235}
doTeleportThing(cid, position2)
doCreatureSetLookDir(cid, SOUTH)
elseif(item.actionid == STAIRS_NORTH) then
local position2 = {x = position.x, y = position.y - 2, z = position.z + 1, stackpos = 235}
doTeleportThing(cid, position2)
doCreatureSetLookDir(cid, NORTH)
end
end
add in Movements.xml
PHP:
<movevent type="StepIn" itemid="7924" event="script" value="yalaharstairs.lua"/>
<movevent type="StepIn" itemid="7925" event="script" value="yalaharstairs.lua"/>
<movevent type="StepIn" actionid="7925" event="script" value="yalaharstairs.lua"/>
<movevent type="StepIn" actionid="7924" event="script" value="yalaharstairs.lua"/>
How it Works?
Normally put this stairs at map editor:
but to make climbing down, you have to do a litte trick.
Make stairs tile(ID: 459) 1 floor above stairs and give it Action ID of Stairs Below:
It should look like it:
Same for East Stairs.
Rep Me If You Like It.
Yours QuaS~