<?xml version="1.0" encoding="UTF-8"?>
<quests>
<quest name="In Service of Yalahar" startstorageid="30" startstoragevalue="5">
<mission name="Something Rotten" storageid="30" startvalue="5" endvalue="6">
<missionstate id="0" description="Something Rotten"/>
</mission>
<mission name="Example Mission 2" storageid="1001" startvalue="4" endvalue="5">
<missionstate id="4" description="Example description 1"/>
<missionstate id="5" description="Example description 2"/>
</mission>
</quest>
</quests>
Can you post that script here?[26/01/2014 01:58:37] data/npc/scripts/doug.lua:21: attempt to call global 'doPlayerSetStorageValue' (a nil value)
[26/01/2014 01:58:37] stack traceback:
[26/01/2014 01:58:37] [C]: in function 'doPlayerSetStorageValue'
[26/01/2014 01:58:37] data/npc/scripts/doug.lua:21: in function 'callback'
[26/01/2014 01:58:37] data/npc/lib/npcsystem/keywordhandler.lua:27: in function 'processMessage'
[26/01/2014 01:58:37] data/npc/lib/npcsystem/keywordhandler.lua:135: in function 'processNodeMessage'
[26/01/2014 01:58:37] data/npc/lib/npcsystem/keywordhandler.lua:103: in function 'processMessage'
[26/01/2014 01:58:37] data/npc/lib/npcsystem/npchandler.lua:387: in function 'onCreatureSay'
[26/01/2014 01:58:37] data/npc/scripts/doug.lua:7: in function <data/npc/scripts/doug.lua:7>
This is the error I get, what's the problem,?
http://otland.net/threads/problem-with-storage-id-and-quest-log.208109/#post-1992741Can you post that script here?
Thanks for your reply.
I have tried starting from 0 - I wanted this particular quest to be visible right from the beginning - so for the questline storage I used 9000, and put it's value to 1 with a script that runs when you first log in. It did not work, so: What is the relation between the main questline STORAGE, and each missions STORAGE. Do they have no relation? Like, they can all be different storages? Or can they be the SAME storage both for missions and for the main storyline?
As for missionstates: in this example its storageValue from 0 to 1, so the missionstates go from 0 to 1 - what if the storage values would be from let's say 3 to 5?
Would the missionstates go still from 0, to 2? Or would they go from 3 to 5?
I have editted the chest quest system and divided "normal" quest chests from ones that are chained to a longer questline, and make the chest open at storage=0, then change to storage=1. It did work, it seems the -1 caused problems [no idea why would it?], thank you!
As for the mission id's - I think you are a bit wrong here [If I did not misunderstand you]. It seems they go from 0 upwards, whatever the starting and ending storage values are - if I set them to something "out of bounds" [iteratively] the mission does not display, meaning: Say I have Starting and ending values of 2 and 3 - If I set them to mission ID 0 and 1, they work perfectly. But if I try using a mission ID of 3 [to link it to storage value of 3], the mission does not show
Here is my edited quest piece, it works now
<quest name="The Tutorial" startstorageid="2000" startstoragevalue="0">
<mission name="Facing the Rotworms" storageid="2000" startvalue="0" endvalue="1">
<missionstate id="0" description="Find the equipment chest, and fight the enemies guarding it."/>
<missionstate id="1" description="Mission complete!"/>
</mission>
<mission name="Strike the earth!" storageid="2000" startvalue="1" endvalue="2">
<missionstate id="0" description="Get a pick and strike the earth!"/>
<missionstate id="1" description="Mission complete!"/>
</mission>
<mission name="Helping the strange baker" storageid="2000" startvalue="2" endvalue="3">
<missionstate id="0" description="Help Bulba feeding his skel.. the villagers."/>
<missionstate id="1" description="Mission complete!"/>
</mission>
</quest>
Sorry for letting the code float around like that, couldn't find a CODE tag in the edit bar :/
The console was the first thing I checked, it gave no errors, just loaded the quests like a good girl she is
I also checked the storage values - there was nothing wrong with them either.
If it's not the questlog/XML having a problem with -1, I have no damn idea what caused it not showing correctly
this is bugged with multiple mission complete
when you have two mision its showing ok
but when you have 2 complete and 1 not
then you dont see 3 mission (2 complete)
anyone know how to fix?
where is problems
serverside or clientside?
all is correctThe feature works fine, it has been built into TFS/Tibia client for ages, you didn't do something correctly. Post your scripts and pics of problem and maybe I can help.
Problem is most likely related to how you are setting the storages, or how you defined stuff related to the particular quest in the XML
<quests>
<quest name="test quest" startstorageid="5001" startstoragevalue="1">
<mission name="mision name some name Test!" storageid="5002" startvalue="0" endvalue="2">
<missionstate id="0" description="descriptio 0"/>
<missionstate id="1" description="description 1"/>
<missionstate id="2" description="description quest completed"/>
</mission>
<mission name="mision 2" storageid="5002" startvalue="2" endvalue="3">
<missionstate id="2" description="asdqwe"/>
<missionstate id="3" description="Quest Completed"/>
</mission>
<mission name="mision 3" storageid="5002" startvalue="3" endvalue="4">
<missionstate id="3" description="qweqwe"/>
</mission>
<mission name="mision 4" storageid="5002" startvalue="4" endvalue="6">
<missionstate id="3" description="descriptipn"/>
</mission>
</quest>
</quests>
all is correct
here is my quest with mission
Code:<quests> <quest name="test quest" startstorageid="5001" startstoragevalue="1"> <mission name="mision name some name Test!" storageid="5002" startvalue="0" endvalue="2"> <missionstate id="0" description="descriptio 0"/> <missionstate id="1" description="description 1"/> <missionstate id="2" description="description quest completed"/> </mission> <mission name="mision 2" storageid="5002" startvalue="2" endvalue="3"> <missionstate id="2" description="asdqwe"/> <missionstate id="3" description="Quest Completed"/> </mission> <mission name="mision 3" storageid="5002" startvalue="3" endvalue="4"> <missionstate id="3" description="qweqwe"/> </mission> <mission name="mision 4" storageid="5002" startvalue="4" endvalue="6"> <missionstate id="3" description="descriptipn"/> </mission> </quest> </quests>
here is next problems bvecauyse
on <missionstate id="2" description="description quest completed"/>
i must put text if i dont put text mission then i got error please report to game master ......