--rope sistem-- function onUse(cid, item, frompos, item2, topos) npos = {x=topos.x, y=topos.y, z=topos.z} if item2.itemid == 28 then return 0 end if item2.itemid == 384 then npos.y = npos.y + 1 npos.z = npos.z - 1 doTeleportThing(cid,npos) elseif item2.itemid == 418 then npos.y = npos.y + 1 npos.z = npos.z - 1 doTeleportThing(cid,npos) --hole or stair to rope items-- elseif item2.itemid == 469 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 470 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 475 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 476 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 479 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 480 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 482 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 484 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 485 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 489 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 392 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 383 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 385 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 484 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 408 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 409 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 410 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 427 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 428 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 429 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 430 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end elseif item2.itemid == 433 then npos.y = npos.y + 1 downpos = {x=topos.x, y=topos.y, z=topos.z+1, stackpos=255} downitem = getThingfromPos(downpos) if downitem.itemid > 0 then doTeleportThing(downitem.uid,npos) end --END hole or stair to rope items-- else return 0 end return 1 end