Hjalmar Faggetzon lvl 64 from nowhere dist 50 and mlvl 6? (paladin)
Smells cheating..
function onUse(cid, item, frompos, item2, topos)
newPos = {x = topos.x, y = topos.y, z = topos.z, stackpos = 0}
groundItem = getThingfromPos(newPos)
topos.stackpos = 1
local tmp = getThingfromPos(topos)
if (isInArray(ROPE_SPOT, groundItem.itemid) == TRUE) and tmp.itemid == 0 then
newPos.y = newPos.y + 1
newPos.z = newPos.z - 1
doTeleportThing(cid, newPos)
elseif (isInArray(OPENED_HOLE, groundItem.itemid) == TRUE or isInArray(OPENED_TRAP, groundItem.itemid) == TRUE or isInArray(DOWN_LADDER, groundItem.itemid) == TRUE or isInArray(SEWER_GRATE, item2.itemid) == TRUE) then
newPos.y = newPos.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, newPos)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
else
return FALSE
end
return TRUE
end
@up
Thats sux idea...
@up
Thats sux idea...
Then why you play a 7.4 Server?
Rope script like in 7.4
Lua:function onUse(cid, item, frompos, item2, topos) newPos = {x = topos.x, y = topos.y, z = topos.z, stackpos = 0} groundItem = getThingfromPos(newPos) topos.stackpos = 1 local tmp = getThingfromPos(topos) if (isInArray(ROPE_SPOT, groundItem.itemid) == TRUE) and tmp.itemid == 0 then newPos.y = newPos.y + 1 newPos.z = newPos.z - 1 doTeleportThing(cid, newPos) elseif (isInArray(OPENED_HOLE, groundItem.itemid) == TRUE or isInArray(OPENED_TRAP, groundItem.itemid) == TRUE or isInArray(DOWN_LADDER, groundItem.itemid) == TRUE or isInArray(SEWER_GRATE, item2.itemid) == TRUE) then newPos.y = newPos.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, newPos) else doPlayerSendCancel(cid, "Sorry, not possible.") end else return FALSE end return TRUE end
Its stupid with that rope, can't make loot bag because how i rope it ? must have 2 chars -.-