Ir para conteúdo

Featured Replies

Postado

.Qual servidor ou website você utiliza como base? 

Servidor 8.6 Tfs 1.3

 

Qual o motivo deste tópico? 

Nao estou conseguindo liberar storage ao player no login.lua de algumas quests que quero deixar liberadas

 

Está surgindo algum erro? Se sim coloque-o aqui. 

so libera o quest log mas nao libera a storage tipo nao libera os acessos entao no caso so esta liberando o quest log

  Citar

function onLogin(player)
player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission02, ? --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission05, ? --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission06, 5) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission07, 5) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission08, 4) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission09, 2) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission10, 1) --> OPEN MISSION

    local loginStr = "Welcome to Oblivion-Global, the commands available are: !bless, !aol, !uptime, !kills, !online, !serverinfo and !spells"
    if player:getLastLoginSaved() <= 0 then
        loginStr = loginStr .. " Please choose your outfit."
        player:sendOutfitWindow()
    else
        if loginStr ~= "" then
            player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
        end

        loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved()))
    end
    player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)

    -- Stamina
    nextUseStaminaTime[player.uid] = 0
    
    
    if (player:getAccountType() == ACCOUNT_TYPE_TUTOR) then
        local msg = [[:: Tutor Rules
            1 *> 3 Warnings you lose the job.
            2 *> Without parallel conversations with players in Help, if the player starts offending, you simply mute it.
            3 *> Be educated with the players in Help and especially in the Private, try to help as much as possible.
            4 *> Always be on time, if you do not have a justification you will be removed from the staff.
            5 *> Help is only allowed to ask questions related to tibia.
            6 *> It is not allowed to divulge time up or to help in quest.
            7 *> You are not allowed to sell items in the Help.
            8 *> If the player encounters a bug, ask to go to the website to send a ticket and explain in detail.
            9 *> Always keep the Tutors Chat open. (required).
            10 *> You have finished your schedule, you have no tutor online, you communicate with some CM in-game or ts and stay in the help until someone logs in, if you can.
            11 *> Always keep a good Portuguese in the Help, we want tutors who support, not that they speak a satanic ritual.
            12 *> If you see a tutor doing something that violates the rules, take a print and send it to your superiors. "
            - Commands -
            Mute Player: / mute nick, 90. (90 seconds)
            Unmute Player: / unmute nick.
            - Commands -]]
        player:popupFYI(msg)
    end
        -- Rewards
    local rewards = #player:getRewardList()
    if(rewards > 0) then
        player:sendTextMessage(MESSAGE_INFO_DESCR, string.format("You have %d %s in your reward chest.", rewards, rewards > 1 and "rewards" or "reward"))
    end
    
        -- Update player id
    local stats = player:inBossFight()
    if stats then
        stats.playerId = player:getId()
    end


    -- Promotion
    local vocation = player:getVocation()
    local promotion = vocation:getPromotion()
    if player:isPremium() then
        local value = player:getStorageValue(STORAGEVALUE_PROMOTION)
        if not promotion and value ~= 1 then
            player:setStorageValue(STORAGEVALUE_PROMOTION, 1)
        elseif value == 1 then
            player:setVocation(promotion)
        end
    elseif not promotion then
        player:setVocation(vocation:getDemotion())
    end

    -- Events
    player:registerEvent("Bossestorage")
    player:registerEvent("Bossestorage2")
    player:registerEvent("Bossestransform")
    
    player:registerEvent("PlayerDeath")
    player:registerEvent("DropLoot")
    player:registerEvent("ParasiteWarzone")
    player:registerEvent("ElementalSpheresOverlords")
    player:registerEvent("BigfootBurdenVersperoth")
    player:registerEvent("BigfootBurdenWiggler")
    player:registerEvent("SvargrondArenaKill")
    player:registerEvent("NewFrontierShardOfCorruption")
    player:registerEvent("NewFrontierTirecz")
    player:registerEvent("ServiceOfYalaharDiseasedTrio")
    player:registerEvent("ServiceOfYalaharAzerus")
    player:registerEvent("ServiceOfYalaharQuaraLeaders")
    player:registerEvent("InquisitionBosses")
    player:registerEvent("InquisitionUngreez")
    player:registerEvent("KillingInTheNameOfKills")
    player:registerEvent("KillingInTheNameOfKillss")
    player:registerEvent("KillingInTheNameOfKillsss")
    player:registerEvent("SecretServiceBlackKnight")
    player:registerEvent("ThievesGuildNomad")
    player:registerEvent("WotELizardMagistratus")
    player:registerEvent("WotELizardNoble")
    player:registerEvent("WotEKeeper")
    player:registerEvent("WotEBosses")
    player:registerEvent("WotEZalamon")
    player:registerEvent("AdvanceSave")
    player:registerEvent("bossesWarzone")
    player:registerEvent("AdvanceRookgaard")
    player:registerEvent("PythiusTheRotten")
    player:registerEvent("Yielothax")
    player:registerEvent("BossParticipation")
    player:registerEvent("Energized Raging Mage")
    player:registerEvent("Raging Mage")
    player:registerEvent("lowerRoshamuul")
    player:registerEvent("petlogin")
    player:registerEvent("petthink")
    player:registerEvent("UpperSpikeKill")
    player:registerEvent("MiddleSpikeKill")
    player:registerEvent("LowerSpikeKill")
    player:registerEvent("BossesForgotten")
    player:registerEvent("ReplicaServants")
    player:registerEvent("EnergyPrismDeath")
    player:registerEvent("AstralPower")
    player:registerEvent("BossesKill")
    player:registerEvent("TheShattererKill")
    player:registerEvent("BossesHero")
    player:registerEvent("DragonsKill")
    player:registerEvent("deeplingBosses")
    player:registerEvent("theGreatDragonHuntKill")
    player:registerEvent("bossesMissionCults")
    registerCreatureEvent("freebless")
    registerCreatureEvent(cid, "moveBlocked")
    return true
end
 

 

Você tem o código disponível? Se tiver publique-o aqui: 

eu queria que liberasse o quest log e desse a storage da quest ao player mas nao esta acontecendo isso so esta liberando o quest log nao libera acessos nenhum

acima esta meu login.lua se aguem puderme ajudar ficarei grato precisava muito corrigir isto abaixo deixei anexado o meu login.lua antes de adiconar os codigos das quests agradeço desde ja.


 

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

 

login.luaFetching info...

Editado por felippetattoo (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo