From The Mana World
(/* Server Side of Quest Log)
 
m (Outdated!)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Category:Outdated}}


== Quest Log in Server Data ==
== Quest Log in Server Data (TMWA) ==


Quest ID: var id used by client
Quest ID: var id used by client
Line 29: Line 30:
     5,QL_VINCENT,QUEST_SouthTulimshar,4,2
     5,QL_VINCENT,QUEST_SouthTulimshar,4,2
     6,QL_HIDENSEEK,QUEST_NorthTulimshar,0,8
     6,QL_HIDENSEEK,QUEST_NorthTulimshar,0,8
The var used in the quest log can be set with just the value and the bitmasking is taken care of in the server.
    L_Carpet:
    mes "[Sorfina]";
    mes "\"Try to take a few steps and walk to that carpet over there.";
    mes "Press [###keyMoveUp;] to move up, press [###keyMoveDown;] to move down, ";
    mes "press [###keyMoveLeft;] to move left, press [###keyMoveRight;] to move right ";
    mes " or click on the place you want to go to.\"";
    set QL_BEGIN, 1;
    goto L_Close;
Quest log file: [https://github.com/themanaworld/tmwa-server-data/blob/master/world/map/db/quest-log.txt Quest log]
Source script [https://github.com/themanaworld/tmwa-server-data/blob/master/world/map/npc/029-2/sorfina.txt Sorfina]

Latest revision as of 19:23, 23 January 2022

These are articles that require updating, moving to archive or deletion (see also Template:Delete).

Quest Log in Server Data (TMWA)

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
   //Quest Log
   //Quest ID: var id used by client
   //CommonVar: Used in get & to set
   //ServerVar: Server Varaible value is stored
   //SHIFT: Posistion shifted. (SHIFT * MASK)
   //MASK: Size of shift to make. ((1 << MASK) - 1) << (SHIFT * MASK)
   //Quest ID,CommonVar,ServerVar,SHIFT,MASK
   1,QL_BEGIN,STARTAREA,0,4
   2,QL_VALON,STARTAREA,1,4
   3,QL_MORGAN,STARTAREA,3,4
   4,QL_ZEGAS,STARTAREA,4,4
   5,QL_VINCENT,QUEST_SouthTulimshar,4,2
   6,QL_HIDENSEEK,QUEST_NorthTulimshar,0,8

The var used in the quest log can be set with just the value and the bitmasking is taken care of in the server.

   L_Carpet:
   mes "[Sorfina]";
   mes "\"Try to take a few steps and walk to that carpet over there.";
   mes "Press [###keyMoveUp;] to move up, press [###keyMoveDown;] to move down, ";
   mes "press [###keyMoveLeft;] to move left, press [###keyMoveRight;] to move right ";
   mes " or click on the place you want to go to.\"";
   set QL_BEGIN, 1;
   goto L_Close;

Quest log file: Quest log Source script Sorfina