• 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+ Repeat Task System

Pedrook

Advanced OT User
Joined
May 24, 2009
Messages
457
Solutions
3
Reaction score
194
Location
Brazil
GitHub
pedrogiampietro
Another thing that is happening is that I am not able to repeat the tasks.

1h0odGP.png


gwAsMlB.png



Task.lua -- Creaturescript
Task_window.lua -- Creaturescript
Task_lib.lua -- Libs
 
Solution
Apparently your task system only supports repeatable tasks if one of the rewards is a "storage", like a boss fight. See "Crocodiles" or "Tarantulas" tasks. I don't see any actual check of this storage so try adding a dummy storage reward.
You have to set repeatable to true.

Like this
LUA:
[1] = {questStarted = 65000, questStorage = 65100, killsRequired = 100, raceName = "Trolls", repeatable = true, rewards = {{enable = true, type = "exp", values = 40000}, {enable = true, type = "money", values = 40000}}},
 
You have to set repeatable to true.

Like this
LUA:
[1] = {questStarted = 65000, questStorage = 65100, killsRequired = 100, raceName = "Trolls", repeatable = true, rewards = {{enable = true, type = "exp", values = 40000}, {enable = true, type = "money", values = 40000}}},

yes, I put it in and it still keeps giving this message, and no error appears.

LUA:
[11] = {questStarted = 14012, questStorage = 14112, killsRequired = 2, raceName = "Ancients Scarabs", repeatable = true, rewards = {{enable = true, type = "exp", values = 15000}, {enable = true, type = "item", values = {7902,1}}, {enable = true, type = "item", values = {7290,1}}, {enable = true, type = "points", values = 2}}},
 
Apparently your task system only supports repeatable tasks if one of the rewards is a "storage", like a boss fight. See "Crocodiles" or "Tarantulas" tasks. I don't see any actual check of this storage so try adding a dummy storage reward.
 
Solution
I would somehow be able to put it to when the task is finished resetting the storage?
setPlayerStorageValue(cid, tasks[choiceId].questStorage, 0)
or when checking the part of the boss he jumps? I wanted to repeat the tasks without having to do the boss.
Apparently your task system only supports repeatable tasks if one of the rewards is a "storage", like a boss fight. See "Crocodiles" or "Tarantulas" tasks. I don't see any actual check of this storage so try adding a dummy storage reward.
 

Similar threads

  • Question Question
Replies
0
Views
195
Back
Top