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

TFS 1.X+ [LOGIN.LUA] Access to quests

Hyagosrs

Member
Joined
Mar 10, 2018
Messages
94
Solutions
1
Reaction score
11
hm, i used a script to get access for some quests, but every time i log in.. i recive this message: Your questlog has been updated.

111.png

this is the script i put on login.lua:

Lua:
    --In Service of Yalahar
        player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
        player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) --> 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
    --WOTE
        player:setStorageValue(Storage.WrathoftheEmperor.Questline, 1)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 1)
        --Imbuiment
        player:setStorageValue(Storage.ForgottenKnowledge.Tomes, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LastLoreKilled, 1)   
        player:setStorageValue(Storage.ForgottenKnowledge.TimeGuardianKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.HorrorKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.DragonkingKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.ThornKnightKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LloydKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LadyTenebrisKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.AccessMachine, 1)
        --SearoutsYalahar
        player:setStorageValue(Storage.SearoutesAroundYalahar.Darashia, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.AbDendriel, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Venore, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Ankrahmun, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.PortHope, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Thais, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.LibertyBay, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Carlin, 1)
        --Barbarian Test (requisito para liberar acesso Okolnir)
        player:setStorageValue(Storage.BarbarianTest.Questline, 8)
        player:setStorageValue(Storage.BarbarianTest.Mission01, 3)
        player:setStorageValue(Storage.BarbarianTest.Mission02, 3)
        player:setStorageValue(Storage.BarbarianTest.Mission03, 3)
 
Solution
Code:
if player:getLevel() >= 1 and (player:getStorageValue(3993738) ~= 1) then
--In Service of Yalahar
player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission06, 5) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission07, 5) --> END MISSION...
I recommend "getLastLoginSaved()" bcos have openned quests.

Like:
Lua:
    if player:getLastLoginSaved() == 0 then
    --In Service of Yalahar
        player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
        player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) --> 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
    --WOTE
        player:setStorageValue(Storage.WrathoftheEmperor.Questline, 1)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 1)
        --Imbuiment
        player:setStorageValue(Storage.ForgottenKnowledge.Tomes, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LastLoreKilled, 1) 
        player:setStorageValue(Storage.ForgottenKnowledge.TimeGuardianKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.HorrorKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.DragonkingKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.ThornKnightKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LloydKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LadyTenebrisKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.AccessMachine, 1)
        --SearoutsYalahar
        player:setStorageValue(Storage.SearoutesAroundYalahar.Darashia, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.AbDendriel, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Venore, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Ankrahmun, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.PortHope, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Thais, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.LibertyBay, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Carlin, 1)
        --Barbarian Test (requisito para liberar acesso Okolnir)
        player:setStorageValue(Storage.BarbarianTest.Questline, 8)
        player:setStorageValue(Storage.BarbarianTest.Mission01, 3)
        player:setStorageValue(Storage.BarbarianTest.Mission02, 3)
        player:setStorageValue(Storage.BarbarianTest.Mission03, 3)
    end
 
Last edited:
It will run only in the first player login. After, the number will be different than zero and the storages doesn't run.
it would run every time because you are just checking if value is different than zero, and it will be always true, you need to check either <= 0 or == 0 🤠
 
Post automatically merged:

edit: use the one bellow


it worked with this script !! <3
Post automatically merged:

I recommend "getLastLoginSaved()" bcos have openned quests.

Like:
Lua:
    if player:getLastLoginSaved() == 0 then
    --In Service of Yalahar
        player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
        player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
        player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) --> 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
    --WOTE
        player:setStorageValue(Storage.WrathoftheEmperor.Questline, 1)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
        player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 1)
        --Imbuiment
        player:setStorageValue(Storage.ForgottenKnowledge.Tomes, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LastLoreKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.TimeGuardianKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.HorrorKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.DragonkingKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.ThornKnightKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LloydKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.LadyTenebrisKilled, 1)
        player:setStorageValue(Storage.ForgottenKnowledge.AccessMachine, 1)
        --SearoutsYalahar
        player:setStorageValue(Storage.SearoutesAroundYalahar.Darashia, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.AbDendriel, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Venore, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Ankrahmun, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.PortHope, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Thais, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.LibertyBay, 1)
        player:setStorageValue(Storage.SearoutesAroundYalahar.Carlin, 1)
        --Barbarian Test (requisito para liberar acesso Okolnir)
        player:setStorageValue(Storage.BarbarianTest.Questline, 8)
        player:setStorageValue(Storage.BarbarianTest.Mission01, 3)
        player:setStorageValue(Storage.BarbarianTest.Mission02, 3)
        player:setStorageValue(Storage.BarbarianTest.Mission03, 3)
    end

No , it didn't work, new players does'nt get these storages...
 
Last edited:
Code:
if player:getLevel() >= 1 and (player:getStorageValue(3993738) ~= 1) then
--In Service of Yalahar
player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) --> 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
--WOTE
player:setStorageValue(Storage.WrathoftheEmperor.Questline, 1)
player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 1)
--Imbuiment
player:setStorageValue(Storage.ForgottenKnowledge.Tomes, 1)
player:setStorageValue(Storage.ForgottenKnowledge.LastLoreKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.TimeGuardianKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.HorrorKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.DragonkingKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.ThornKnightKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.LloydKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.LadyTenebrisKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.AccessMachine, 1)
--SearoutsYalahar
player:setStorageValue(Storage.SearoutesAroundYalahar.Darashia, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.AbDendriel, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Venore, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Ankrahmun, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.PortHope, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Thais, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.LibertyBay, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Carlin, 1)
--Barbarian Test (requisito para liberar acesso Okolnir)
player:setStorageValue(Storage.BarbarianTest.Questline, 8)
player:setStorageValue(Storage.BarbarianTest.Mission01, 3)
player:setStorageValue(Storage.BarbarianTest.Mission02, 3)
player:setStorageValue(Storage.BarbarianTest.Mission03, 3)
player:setStorageValue(3993738, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Welcome to my server.")
end
 
Solution
Code:
if player:getLevel() >= 1 and (player:getStorageValue(3993738) ~= 1) then
--In Service of Yalahar
player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START
player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) --> END MISSION
player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) --> 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
--WOTE
player:setStorageValue(Storage.WrathoftheEmperor.Questline, 1)
player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 1)
--Imbuiment
player:setStorageValue(Storage.ForgottenKnowledge.Tomes, 1)
player:setStorageValue(Storage.ForgottenKnowledge.LastLoreKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.TimeGuardianKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.HorrorKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.DragonkingKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.ThornKnightKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.LloydKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.LadyTenebrisKilled, 1)
player:setStorageValue(Storage.ForgottenKnowledge.AccessMachine, 1)
--SearoutsYalahar
player:setStorageValue(Storage.SearoutesAroundYalahar.Darashia, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.AbDendriel, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Venore, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Ankrahmun, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.PortHope, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Thais, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.LibertyBay, 1)
player:setStorageValue(Storage.SearoutesAroundYalahar.Carlin, 1)
--Barbarian Test (requisito para liberar acesso Okolnir)
player:setStorageValue(Storage.BarbarianTest.Questline, 8)
player:setStorageValue(Storage.BarbarianTest.Mission01, 3)
player:setStorageValue(Storage.BarbarianTest.Mission02, 3)
player:setStorageValue(Storage.BarbarianTest.Mission03, 3)
player:setStorageValue(3993738, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Welcome to my server.")
end


Thanks, this work!!
 
Back
Top