• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Boots of Homecoming

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
Hello, someone can make an script for when player use this boots he got teleported to krailos isle?
with cooldown 24h

TFS 1.2 or 1.3

thanks

Boots of Homecoming - Tibia Wiki
 
Last edited by a moderator:
Solution
Not exactly like RL one, but does a thing. And i also tried to make it as customizable as possible and added custom effect. :p
Hope it will fit.

LUA:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)

    ----------------------------
    local destinationPos = Position(1024, 1024, 7)
    local bohcStorage = 12345    -- put unused storage here
    local levelReq = 100   -- level required to use
    local hasToBeEquipped = true  -- true/false, if has to be equipped in feet slot
    local cdInSec = 24*60*60    -- cooldown in seconds
    -----------------------------
   
    local item = item.uid
    local ppos = player:getPosition()
   
    if not Tile(ppos):hasFlag(TILESTATE_PROTECTIONZONE) then...
Not exactly like RL one, but does a thing. And i also tried to make it as customizable as possible and added custom effect. :p
Hope it will fit.

LUA:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)

    ----------------------------
    local destinationPos = Position(1024, 1024, 7)
    local bohcStorage = 12345    -- put unused storage here
    local levelReq = 100   -- level required to use
    local hasToBeEquipped = true  -- true/false, if has to be equipped in feet slot
    local cdInSec = 24*60*60    -- cooldown in seconds
    -----------------------------
   
    local item = item.uid
    local ppos = player:getPosition()
   
    if not Tile(ppos):hasFlag(TILESTATE_PROTECTIONZONE) then
            player:getPosition():sendMagicEffect(CONST_ME_POFF)
            player:sendTextMessage(MESSAGE_EVENT_ORANGE, "Better find yourself some safe place first.")
        return false
        end
       
    if hasToBeEquipped == true then
        if player:getSlotItem(8) ~= Item(item) then
            player:getPosition():sendMagicEffect(CONST_ME_POFF)
            player:sendTextMessage(MESSAGE_EVENT_ORANGE, "You must put the boots on first.")
        return false
        end
    end
   
    if player:getLevel() < levelReq then
        player:getPosition():sendMagicEffect(CONST_ME_POFF)
        player:sendTextMessage(MESSAGE_EVENT_ORANGE, "You're not worthy yet!")
    return false
    end
   
        if player:getStorageValue(bohcStorage) > os.time() then
                player:getPosition():sendMagicEffect(CONST_ME_POFF)
                player:say("It does nothing. Try again later.", TALKTYPE_MONSTER_SAY, false, player)
        return false
        end
   

    ppos:sendDistanceEffect(Position(ppos.x-1, ppos.y-1, ppos.z), CONST_ANI_ICE)
    ppos:sendMagicEffect(CONST_ME_ENERGYHIT)
    player:teleportTo(destinationPos, false)
    player:say("Magical sparks whirl around the boots and suddenly you are somewhere else.", TALKTYPE_MONSTER_SAY, false, player)
    player:setStorageValue(bohcStorage, os.time() + cdInSec)
   
    return true
end

Cheers
 
Solution
Not exactly like RL one, but does a thing. And i also tried to make it as customizable as possible and added custom effect. :p
Hope it will fit.

LUA:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)

    ----------------------------
    local destinationPos = Position(1024, 1024, 7)
    local bohcStorage = 12345    -- put unused storage here
    local levelReq = 100   -- level required to use
    local hasToBeEquipped = true  -- true/false, if has to be equipped in feet slot
    local cdInSec = 24*60*60    -- cooldown in seconds
    -----------------------------
  
    local item = item.uid
    local ppos = player:getPosition()
  
    if not Tile(ppos):hasFlag(TILESTATE_PROTECTIONZONE) then
            player:getPosition():sendMagicEffect(CONST_ME_POFF)
            player:sendTextMessage(MESSAGE_EVENT_ORANGE, "Better find yourself some safe place first.")
        return false
        end
      
    if hasToBeEquipped == true then
        if player:getSlotItem(8) ~= Item(item) then
            player:getPosition():sendMagicEffect(CONST_ME_POFF)
            player:sendTextMessage(MESSAGE_EVENT_ORANGE, "You must put the boots on first.")
        return false
        end
    end
  
    if player:getLevel() < levelReq then
        player:getPosition():sendMagicEffect(CONST_ME_POFF)
        player:sendTextMessage(MESSAGE_EVENT_ORANGE, "You're not worthy yet!")
    return false
    end
  
        if player:getStorageValue(bohcStorage) > os.time() then
                player:getPosition():sendMagicEffect(CONST_ME_POFF)
                player:say("It does nothing. Try again later.", TALKTYPE_MONSTER_SAY, false, player)
        return false
        end
  

    ppos:sendDistanceEffect(Position(ppos.x-1, ppos.y-1, ppos.z), CONST_ANI_ICE)
    ppos:sendMagicEffect(CONST_ME_ENERGYHIT)
    player:teleportTo(destinationPos, false)
    player:say("Magical sparks whirl around the boots and suddenly you are somewhere else.", TALKTYPE_MONSTER_SAY, false, player)
    player:setStorageValue(bohcStorage, os.time() + cdInSec)
  
    return true
end

Cheers

thanks, this worked :p

hey how I remove this?
yLew1xi.png
 
Back
Top