• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

teleportation rod not working ferumbras

wafuboe

Member
Joined
Dec 24, 2010
Messages
881
Solutions
2
Reaction score
22
Hello im trying to config ferumbras ascension quest for my map but imhaving problem on this part, when the player uses the teleportation rod on all godbreakers nothing happen not even a error in console

this is teleportation rod effect and acces to the ferumbras zone by using the rod on all the pieces
im using tfs 1.3

Thanks!


Code:
-- Ferumbras Quest feita por Ciroc
function onUse(cid, item, fromPosition, itemEx, toPosition)
        pos = getPlayerPosition(cid)
    if(item.itemid == 24838) then
                if(itemEx.itemid == 24830) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54987,1)
                end
                if(itemEx.itemid == 24831) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54988,1)
                end
                if(itemEx.itemid == 24832) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54985,1)
                end
                if(itemEx.itemid == 24833) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54986,1)
                end
        if(itemEx.itemid == 24834) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54982,1)
        end
        if(itemEx.itemid == 24835) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54983,1)
        end
        if(itemEx.itemid == 24836) then
        doTeleportThing(cid, {x=pos.x, y=pos.y, z=pos.z-1})
                setPlayerStorageValue(cid, 54984,1)
        end
    end
    return true
end

Code:
-- Ferumbras Quest feita por Ciroc
function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if not player then
        return true
    end
    if player:getStorageValue(54982) >= 1 and player:getStorageValue(54988) >= 1 and player:getStorageValue(54983) >= 1 and player:getStorageValue(54984) >= 1 and player:getStorageValue(54985) >= 1 and player:getStorageValue(54986) >= 1 and player:getStorageValue(54987) >= 1 then
        player:teleportTo(Position(812, 1105, 9))
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Congratulations, you beat the 7 Ruthless Seven and now you are able to defeat the dreaded Ferumbras.')
    else
        player:teleportTo(Position(818, 1110, 8))
    end
    return true
end
 
Back
Top