• 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!

Lua TFS 1.5 - Downgrade Nekiro - Koshei the Deathless Room

Forkz

Intermediate OT User
Joined
Jun 29, 2020
Messages
528
Solutions
16
Reaction score
129
Hi otlanders,

Does anyone have the script for the real behavior of the Koshei the Deathless room in Tibia Global?
 
I would recommend that you look in Canary, there they have all the systems of an RL
I already got these parts, but they don't have the boss room mechanic.
 
He pretty much doesn't even have any mechanics, you just have to kill him and use the koshei on the body, if that's what you mean.
LUA:
local kosheiBoss = Action()
function kosheiBoss.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if target.itemid ~= 7538 then
        return false
    end

    if player:getStorageValue(Storage.SweetyCyclops.AmuletStatus) == 2 and player:getStorageValue(Storage.KosheiTheDeathless.RewardDoor) ~= 1 then
        player:removeItem(7532, 1)
        player:setStorageValue(Storage.KosheiTheDeathless.RewardDoor, 1)
        player:setStorageValue(Storage.KosheiTheDeathless.KosheiMission, 1)
        player:setStorageValue(Storage.TibiaTales.KosheiTheDeathlessQ, 1)
        player:setStorageValue(Storage.TibiaTales.DefaultStart, 1)
        toPosition:sendMagicEffect(CONST_ME_MAGIC_RED)
        player:say("At last.. I have it back, my precious amulet. I am glad you didn't use it! I allow you to ...ahh... enter door ...ahh", TALKTYPE_MONSTER_SAY, false, player, toPosition)
    end
    return true
end

kosheiBoss:id(7532)
kosheiBoss:register()
change the ids.
 
Ele praticamente nem tem nenhuma mecânica, você só precisa matá-lo e usar o koshei no corpo, se é isso que você quer dizer.
LUA:
local kosheiBoss = Ação()
função kosheiBoss.onUse(jogador, item, fromPosition, alvo, toPosition, isHotkey)
    se target.itemid ~= 7538 então
        retorna falso
    fim

    se jogador:getStorageValue(Storage.SweetyCyclops.AmuletStatus) == 2 e jogador:getStorageValue(Storage.KosheiTheDeathless.RewardDoor) ~= 1 então
        jogador:removeItem(7532, 1)
        jogador:setStorageValue(Armazenamento.KosheiTheDeathless.RewardDoor, 1)
        jogador:setStorageValue(Armazenamento.KosheiTheDeathless.KosheiMission, 1)
        jogador:setStorageValue(Armazenamento.TibiaTales.KosheiTheDeathlessQ, 1)
        jogador:setStorageValue(Armazenamento.TibiaTales.DefaultStart, 1)
        paraPosição:enviarEfeitoMágico(CONST_ME_MAGIC_RED)
        player:say("Finalmente... Eu o tenho de volta, meu precioso amuleto. Estou feliz que você não o usou! Eu permito que você...ahh... entre pela porta...ahh", TALKTYPE_MONSTER_SAY, false, player, toPosition)
    fim
    retornar verdadeiro
fim

kosheiChefe:id(7532)
kosheiBoss:registrar()
alterar os ids.
1)When you enter the room the boss spawns
2) if you don't use the amulet within 5 seconds it will be reborn
3) if you try to open his body he will be reborn
4) if you leave the room within 10 minutes the boss disappears
 
and check for the storages that are registered here

I use an old version of this revscript, but should be the same. Koshei uses a creaturescript to re-spawn, and needs a globalevent to spawn on startUp, regards!
 
Back
Top