From The Mana World

Current

 Condensing and creating sanity in an otherwise mad, mad, world.

TMW-Herc

Moving Tutorial

Quest Log

[TEST]

Client Data

quests.xml

   <quests>
       
           <effect map="Map.tmx" npc="NpcIdServerDataUses" value="QuestValue(s)" effect="EffectId"/>
           <quest name="Name" group="GroupName" (in)complete="QuestValue">
               <name>Name</name>
               <text>Quest Info</text>
           </quest>
       
   </quests>

Working Example: Quest Log Client Data

Server Data

Quest ID: var id used by client

CommonVar: Used in getq & to set

ServerVar: Server Varaible value is stored

SHIFT: Posistion shifted. (SHIFT * MASK)

MASK: Size of shift to make. ((1 << MASK) - 1) << (SHIFT * MASK)

From world/map/conf/tmwa-map.conf -> quest_db: db/quest-log.txt:

   Quest ID,CommonVar,ServerVar,SHIFT,MASK

Working Example: Quest log Server Data

TMWA

Working Example: Quest Log TMWA

Conversion / Creation

  • All Quest Log Vars will start with QL_ prefix
  • Check they are unique within the source

Existing

  • Quest isn't bitmasked
  • Quest is bitmasked
  • Quest is bitmasked but uses single bit shifts

New

  • Pick an open Bitmask on an existing var
  • Create VR var to shift into that var
  • set VR, int; Bit masking takes care of the rest

Professions

[WIP]