<item id="7924" name="stairs">
<attribute key="floorchange" value="south"/>
</item>
<item id="7925" name="stairs">
<attribute key="floorchange" value="east"/>
</item>
Add this to items.xml:
Code:<item id="7924" name="stairs"> <attribute key="floorchange" value="south"/> </item> <item id="7925" name="stairs"> <attribute key="floorchange" value="east"/> </item>
It should work after restart then. Please give me some reputation if I helped you![]()
TFS 0.3.4 PL2What server + version are you using?
This code should work.
You could script them just as Talaturen did for TwiftySoft servers, using onStepIn movement event.
Example please, Idk how to do it.
<movevent event="StepIn" fromid="7924" toid="7925" script="stairs.lua"/>
local stairs = {[7924]=2, [7925]=1}
local pos
function onStepIn(cid, item, position, fromPosition)
if stairs[item.itemid] == 0 then
pos = {x=position.x, y=position.y-1, z=position.z-1}
elseif stairs[item.itemid] == 1 then
pos = {x=position.x+1, y=position.y, z=position.z-1}
elseif stairs[item.itemid] == 2 then
pos = {x=position.x, y=position.y+1, z=position.z-1}
elseif stairs[item.itemid] == 3 then
pos = {x=position.x-1, y=position.y, z=position.z-1}
else
return FALSE
end
doTeleportThing(cid, pos, FALSE)
doMoveCreature(cid, stairs[item.itemid])
return TRUE
end
What IDs for stairs down? This script only covers ID 7924-7925.