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/CharacterHandler.cpp

    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 
     
    733735        sWorld.ShutdownMsg(true,pCurrChar); 
    734736 
    735         if(sWorld.getConfig(CONFIG_ALWAYS_MAXSKILL)) // Max weapon skill when logging in 
    736                 pCurrChar->UpdateSkillsToMaxSkillsForLevel(); 
    737  
    738         //ImpConfig - Check if player has logged in before 
    739         QueryResult *result = CharacterDatabase.PQuery("SELECT guid FROM has_logged_in_before WHERE guid = %u",pCurrChar->GetGUIDLow()); 
    740         if(!result) 
    741         { 
    742         sLog.outBasic("Character '%s' logging in for first time, applying skills and stuff",pCurrChar->GetName()); 
    743         CharacterDatabase.PExecute("INSERT INTO has_logged_in_before VALUES (%u)",pCurrChar->GetGUIDLow()); 
    744  
    745         //Reputations if "StartAllReputation" is enabled, -- TODO: Fix this in a better way 
    746         if(sWorld.getConfig(CONFIG_START_ALL_REP)) 
    747         { 
    748                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(942),42999); 
    749                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(935),42999); 
    750                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(936),42999); 
    751                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(1011),42999); 
    752                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(970),42999); 
    753                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(967),42999); 
    754                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(989),42999); 
    755                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(932),42999); 
    756                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(934),42999); 
    757                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(1038),42999); 
    758                 pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(1077),42999); 
    759  
    760                 // Factions depending on team, like cities and some more stuff 
    761                 switch(pCurrChar->GetTeam()) 
    762                 { 
    763                 case ALLIANCE: 
    764                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(72),42999); 
    765                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(47),42999); 
    766                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(69),42999); 
    767                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(930),42999); 
    768                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(730),42999); 
    769                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(978),42999); 
    770                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(54),42999); 
    771                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(946),42999); 
    772                         break; 
    773                 case HORDE: 
    774                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(76),42999); 
    775                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(68),42999); 
    776                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(81),42999); 
    777                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(911),42999); 
    778                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(729),42999); 
    779                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(941),42999); 
    780                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(530),42999); 
    781                         pCurrChar->SetFactionReputation(sFactionStore.LookupEntry(947),42999); 
    782                         break; 
    783                 } 
    784         } 
    785         } 
    786         else 
    787                 sLog.outBasic("Character '%s' has logged in before",pCurrChar->GetName()); 
    788  
    789         if(sWorld.getConfig(CONFIG_START_ALL_TAXI)) 
    790                 pCurrChar->SetTaxiCheater(true); 
     737    if(sWorld.getConfig(CONFIG_START_ALL_TAXI)) 
     738        pCurrChar->SetTaxiCheater(true); 
    791739 
    792740