• 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+ quests.xml |STATE|

undead mage

Active Member
Joined
Mar 25, 2012
Messages
364
Solutions
2
Reaction score
47
Location
Amsterdam
Hi, im trying at the moment to add custom tasks to the questlog and it's all working fine it's adding the storage value with "STATE" but is it possible to do "STATE" + 1? Because the storage is counting 0 as well.
So right now when you kill 4 Bog Raiders the questlog will show that you've killed 3.

Code:
    <quest name="Ulgrik's Tasks" startstorageid="62003" startstoragevalue="1">
        <mission name="Ulgrik: Bog Raiders" storageid="19008" startvalue="0" endvalue="24" description="You already hunted |STATE|/25 bog raiders." />
        <mission name="Ulgrik: Clomps" storageid="19007" startvalue="0" endvalue="34" description="You already hunted |STATE|/35 clomps." />
    </quest>
 
Solution
It would be easier for you to set the storage (19008 in this case) to 0 when the player requests the task to the NPC, and change the startvalue to 1.

It is counting when its 0 because the startvalue is 0 and when the player kills the first monster, he probably had that storagevalue set to -1, which is default.

Edit --
There is no way to do |STATE| + 1 unless you change some source code.
It would be easier for you to set the storage (19008 in this case) to 0 when the player requests the task to the NPC, and change the startvalue to 1.

It is counting when its 0 because the startvalue is 0 and when the player kills the first monster, he probably had that storagevalue set to -1, which is default.

Edit --
There is no way to do |STATE| + 1 unless you change some source code.
 
Last edited:
Solution
why dont you use startvalue="1" and endvalue="25" and endvalue="35" ?

The thing is, the player has -1 as the value of the storage used, so the task would only start counting after the second monster.

He just needs to set the storage used to count monsters kills to 0 when the player starts the task, and the startvalue to 1.
 
It would be easier for you to set the storage (19008 in this case) to 0 when the player requests the task to the NPC, and change the startvalue to 1.

It is counting when its 0 because the startvalue is 0 and when the player kills the first monster, he probably had that storagevalue set to -1, which is default.

Edit --
There is not way to do |STATE| + 1 unless you change some source code.

Yea I will try it just thought that there might be an easier way to do just +1 in quests.xml

why dont you use startvalue="1" and endvalue="25" and endvalue="35" ?
Like Gudan said the storage values start counting 0 as well. So yiu would have to kill 26 in order to show 25 have been killed. Thx anyway!

Shiva made this awesome tutorial that might be useful to You :)
[Configuration] How to make a working Quest Log

Good luck :)
Well thx but I understand how it works just the State + 1 I wasn't sure if it was possible.
 
Back
Top