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

TFS1.5 Downgraded to 8.6 Quest Log Support

dyl12189

New Member
Joined
Nov 4, 2023
Messages
13
Reaction score
1
I am trying to add quests to the quest log but I can't seem to get them to appear in game. Specifically I have been trying with The Exterminator quest in Tibia tales. The quest works fine and I am able to complete it. There is even a pop up at each section saying quest log has been updated. I must be missing something but am not sure what.

Using TFS1.5 downgraded to 8.6

quest.xml:
Lua:
<quest name="Tibia Tales" startstorageid="12650" startstoragevalue="1">
    
     </mission>
     <mission name="The Exterminator" storageid="51488" startvalue="1" endvalue="3">
         <missionstate id="1" description="Padreia in Carlin asked you to exterminate the slimes in the sewers of Carlin by poisoning their spawn pool."/>
         <missionstate id="2" description="You poisoned the spawn pool of the slimes in the sewers of Carlin. Report to Padreia about your mission."/>
         <missionstate id="3" description="You successfully helped Padreia in saving Carlin from a slimy disease."/>
     </mission>
</quest>

quests.lua:

Code:
        [31] = {
            name = "Tibia Tales",
            startStorageId = Storage.TibiaTales.DefaultStart,
            startStorageValue = 1,
            missions = {
              
                [9] = {
                    name = "The Exterminator",
                    storageId = Storage.TibiaTales.TheExterminator,
                    missionId = 10325,
                    startValue = 1,
                    endValue = 3,
                    states = {
                        [1] = "Padreia in Carlin asked you to exterminate the slimes in the sewers of \z
                        Carlin by poisoning their spawn pool.",
                        [2] = "You poisoned the spawn pool of the slimes in the sewers of Carlin. \z
                        Report to Padreia about your mission.",
                        [3] = "You successfully helped Padreia in saving Carlin from a slimy disease."
                    }
                },
            },
        },

storages.lua:
Code:
TibiaTales = {
        -- Reserved storage from 51480 - 51539
        DefaultStart = 51480,
        ultimateBoozeQuest = 51481,
        AgainstTheSpiderCult = 51482,
        AnInterestInBotany = 51483,
        AnInterestInBotanyChestDoor = 51484,
        AritosTask = 51485,
        ToAppeaseTheMightyQuest = 51486,
        IntoTheBonePit = 51487,
        TheExterminator = 51488,
        AritosTaskDoor = 51489,
        RestInHallowedGround = {
            Questline = 51495,
            HolyWater = 51496,
            Graves = {
                Grave1 = 51501,
                Grave2 = 51502,
                Grave3 = 51503,
                Grave4 = 51504,
                Grave5 = 51505,
                Grave6 = 51506,
                Grave7 = 51507,
                Grave8 = 51508,
                Grave9 = 51509,
                Grave10 = 51510,
                Grave11 = 51511,
                Grave12 = 51512,
                Grave13 = 51513,
                Grave14 = 51514,
                Grave15 = 51515,
                Grave16 = 51516
            }
        },
        JackFutureQuest = {
            QuestLine = 51520,
            Furniture01 = 51521,
            Furniture02 = 51522,
            Furniture03 = 51523,
            Furniture04 = 51524,
            Furniture05 = 51525,
            Mother = 51526,
            Sister = 51527,
            Statue = 51528,
            LastMissionState = 51529
        },
    TheCursedCrystal = {
        Oneeyedjoe = 51530,
        MedusaOil = 51531,
        Questline = 51532
        }
    },
 
Last edited:
Also remember to mention which version you are using:

TFS 0.x+?
TFS 1.x+?
Canary?
OTBR?
OTX?
ect...


Nobody is a magician/sorcerer to guess what engine you are using.
 
My friend who has TFS 1.5 Nekiro made changes and edited the quest.xml... It appeared in the game working perfectly. OK...
 
If you are using TFS 1.5 (master), you can activate this script and you will be able to load your xml file as usual in previous versions.

Or just use the new way to create Quests in TFS:
Lua:
Game.createQuest("Tibia Tales", {
    storageId = 12650,
    storageValue = 1,

    missions = {
        {
            name = "The Exterminator",
            storageId = 51488,
            startValue = 1,
            endValue = 3,
            ignoreEndValue = false,
            description = {
                "Padreia in Carlin asked you to exterminate the slimes in the sewers of Carlin by poisoning their spawn pool.",
                "You poisoned the spawn pool of the slimes in the sewers of Carlin. Report to Padreia about your mission.",
                "You successfully helped Padreia in saving Carlin from a slimy disease."
            }
        }
    }
}):register()
 
First, thank you for all the help, I am new to this and not much of a programmer to begin with!

So my quest.lua file should look like this? With the storageId matching what is in the storages.lua for both tibia tales and the exterminator quests/

Lua:
if not Quests then
    Game.createQuest("Tibia Tales", {
        storageId = 51480,
        storageValue = 1,
    
        missions = {
            {
                name = "The Exterminator",
                storageId = 51488,
                startValue = 1,
                endValue = 3,
                ignoreEndValue = false,
                description = {
                    "Padreia in Carlin asked you to exterminate the slimes in the sewers of Carlin by poisoning their spawn pool.",
                    "You poisoned the spawn pool of the slimes in the sewers of Carlin. Report to Padreia about your mission.",
                    "You successfully helped Padreia in saving Carlin from a slimy disease."
                }
            }
        }
    }):register()

I am still not seeing the quest in the quest log.

I think it may be due to the player_storage in the database. I see a value stored for storage ID 51488 (the exterminator) but don't see one for tibia tales.
Post automatically merged:

Got it to work!

I had to add a line in the NPC script to change the storageid of tibia tales as well as the exterminator.

Not sure why but the quest.lua isn't needed for the server I am using, have to use the xml file but as long as something is working I am happy.

Thank you all for your help!
 
Last edited:
Back
Top