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

Quest Log mission missing. TFS 1.5 / otclient redemption

eardrums

Member
Joined
May 27, 2010
Messages
94
Solutions
1
Reaction score
10
Hello,

I'm trying to understand how quest logs work and connect my first quest to a quest log.

The quest itself shows in the quest log but the missions dont show and I dont know why. here is the script

Lua:
Game.createQuest("The Mystery Plague", {
    storageId = 30001,
    storageValue = 1,

    missions = {
        {
            name = "Back up Generator",
            storageId = 30001,
            startValue = 1,
            endValue = 2,
            ignoreEndValue = false,
            description = function(player)
                return string.format("Example description %d by %s.", player.storage[30001], player:getName())
            end
        },
        {
            name = "Example Mission 2",
            storageId = 30001,
            startValue = 2,
            endValue = 3,
            ignoreEndValue = false,
            description = "Mission 2"
        }
    }
}):register()
 
Hey,

I've tried a bunch of different things with this and nothing works. I've tried also doing the quests through quests.xml file and that doesn't work because I think its removed from this tfs version. Please, if anyone knows what the issue is let me know.
 
Back
Top