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

Quests in Quest log

watkins577

As3, lua, xml scripter
Joined
Sep 20, 2008
Messages
130
Reaction score
0
Ive put a quest in the quests.xml folder, so it shows up in the quest log. Unfortunately, it doesnt work like it should. (Btw this is the first time Ive used the quest log thing...

Heres the xml file..

Code:
<?xml version="1.0" encoding="UTF-8"?>
<quests>
  <quest name="The tomes" startstorageid="4000" startstoragevalue="1">
    <mission name="Purple" storageid="1982" startvalue="1" endvalue="2">
      <missionstate id="0" description="Collect the Purple Tome, it should be in possession of minotaurs"/>
    </mission>
    <mission name="Green" storageid="1983" startvalue="2" endvalue="3">
      <missionstate id="1" description="Collect the Green Tome, it should be in possession of dragons"/>
    </mission>
    <mission name="Blue" storageid="1984" startvalue="3" endvalue="4">
      <missionstate id="2" description="Collect the Blue Tome, it should be in possession of giant spiders"/>
    </mission>
    <mission name="Grey" storageid="1985" startvalue="4" endvalue="5">
      <missionstate id="3" description="Collect the Grey Tome, it should be in possession of hydras"/>
    </mission>
    <mission name="Red" storageid="1986" startvalue="5" endvalue="6">
      <missionstate id="4" description="Collect the Red Tome, it should be in possession of demons"/>
    </mission>
  </quest>
</quests>

Atm it doesnt show quests until their completed (AFAIK), and then it doesnt show (completed) at the end. Any help will be grateful.

Thanks :)

BTW the mission storage id is the id of the tomes, as you get them from chests, with the uniqueid of the tomes.
 
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<quests>
  <quest name="The tomes" startstorageid="4000" startstoragevalue="1">
    <mission name="Purple" storageid="1982" startvalue="0" endvalue="1">
      <missionstate id="0" description="Collect the Purple Tome, it should be in possession of minotaurs"/>
      <missionstate id="1" description="You have collected the Purple tome"/>
    </mission>
    <mission name="Green" storageid="1983" startvalue="0" endvalue="1">
      <missionstate id="0" description="Collect the Green Tome, it should be in possession of dragons"/>
      <missionstate id="1" description="You have collected the Green tome"/>
    </mission>
    <mission name="Blue" storageid="1984" startvalue="0" endvalue="1">
      <missionstate id="0" description="Collect the Blue Tome, it should be in possession of giant spiders"/>
      <missionstate id="1" description="You have collected the Blue tome"/>
    </mission>
    <mission name="Grey" storageid="1985" startvalue="0" endvalue="1">
      <missionstate id="0" description="Collect the Grey Tome, it should be in possession of hydras"/>
      <missionstate id="1" description="You have collected the Grey tome"/>
    </mission>
    <mission name="Red" storageid="1986" startvalue="0" endvalue="1">
      <missionstate id="0" description="Collect the Red Tome, it should be in possession of demons"/>
      <missionstate id="1" description="You have collected the Red tome"/>
    </mission>
  </quest>
</quests>
Keep in mind that you will have to set those storagevalues to 0 when the player gets the quest called "The tomes", something like this:
Lua:
for i = 1982, 1986 do
setPlayerStorageValue(cid, i, 0)
end
 
Back
Top