Show
Ignore:
Timestamp:
11/19/08 13:27:40 (17 years ago)
Author:
yumileroy
Message:

[svn] * Merge Temp dev SVN with Assembla.
* Changes include:

  • Implementation of w12x's Outdoor PvP and Game Event Systems.
  • Temporary removal of IRC Chat Bot (until infinite loop when disabled is fixed).
  • All mangos -> trinity (to convert your mangos_string table, please run mangos_string_to_trinity_string.sql).
  • Improved Config cleanup.
  • And many more changes.

Original author: Seline
Date: 2008-10-14 11:57:03-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/QuestDef.h

    r37 r44  
    11/* 
    2  * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 
     2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 
     3 * 
     4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 
    35 * 
    46 * This program is free software; you can redistribute it and/or modify 
     
    911 * This program is distributed in the hope that it will be useful, 
    1012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1214 * GNU General Public License for more details. 
    1315 * 
    1416 * You should have received a copy of the GNU General Public License 
    1517 * along with this program; if not, write to the Free Software 
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1719 */ 
    1820 
    19 #ifndef MANGOSSERVER_QUEST_H 
    20 #define MANGOSSERVER_QUEST_H 
     21#ifndef TRINITYCORE_QUEST_H 
     22#define TRINITYCORE_QUEST_H 
    2123 
    2224#include "Platform/Define.h" 
     
    128130    QUEST_FLAGS_DAILY          = 4096,                      // Used to know quest is Daily one 
    129131 
    130     // Mangos flags for set SpecialFlags in DB if required but used only at server 
    131     QUEST_MANGOS_FLAGS_REPEATABLE           = 0x010000,     // Set by 1 in SpecialFlags from DB 
    132     QUEST_MANGOS_FLAGS_EXPLORATION_OR_EVENT = 0x020000,     // Set by 2 in SpecialFlags from DB (if reequired area explore, spell SPELL_EFFECT_QUEST_COMPLETE casting, table `*_script` command SCRIPT_COMMAND_QUEST_EXPLORED use, set from script DLL) 
    133     QUEST_MANGOS_FLAGS_DB_ALLOWED = 0xFFFF | QUEST_MANGOS_FLAGS_REPEATABLE | QUEST_MANGOS_FLAGS_EXPLORATION_OR_EVENT, 
    134  
    135     // Mangos flags for internal use only 
    136     QUEST_MANGOS_FLAGS_DELIVER              = 0x040000,     // Internal flag computed only 
    137     QUEST_MANGOS_FLAGS_SPEAKTO              = 0x080000,     // Internal flag computed only 
    138     QUEST_MANGOS_FLAGS_KILL_OR_CAST         = 0x100000,     // Internal flag computed only 
    139     QUEST_MANGOS_FLAGS_TIMED                = 0x200000,     // Internal flag computed only 
     132    // Trinity flags for set SpecialFlags in DB if required but used only at server 
     133    QUEST_TRINITY_FLAGS_REPEATABLE           = 0x010000,     // Set by 1 in SpecialFlags from DB 
     134    QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT = 0x020000,     // Set by 2 in SpecialFlags from DB (if reequired area explore, spell SPELL_EFFECT_QUEST_COMPLETE casting, table `*_script` command SCRIPT_COMMAND_QUEST_EXPLORED use, set from script DLL) 
     135    QUEST_TRINITY_FLAGS_DB_ALLOWED = 0xFFFF | QUEST_TRINITY_FLAGS_REPEATABLE | QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT, 
     136 
     137    // Trinity flags for internal use only 
     138    QUEST_TRINITY_FLAGS_DELIVER              = 0x040000,     // Internal flag computed only 
     139    QUEST_TRINITY_FLAGS_SPEAKTO              = 0x080000,     // Internal flag computed only 
     140    QUEST_TRINITY_FLAGS_KILL_OR_CAST         = 0x100000,     // Internal flag computed only 
     141    QUEST_TRINITY_FLAGS_TIMED                = 0x200000,     // Internal flag computed only 
    140142}; 
    141143 
     
    213215        uint32 GetQuestStartScript() const { return QuestStartScript; } 
    214216        uint32 GetQuestCompleteScript() const { return QuestCompleteScript; } 
    215         bool   IsRepeatable() const { return QuestFlags & QUEST_MANGOS_FLAGS_REPEATABLE; } 
     217        bool   IsRepeatable() const { return QuestFlags & QUEST_TRINITY_FLAGS_REPEATABLE; } 
    216218        bool   IsAutoComplete() const { return QuestMethod ? false : true; } 
    217219        uint32 GetFlags() const { return QuestFlags; }