Changeset 149 for trunk/src/trinitycore

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

[svn] *Implement new player conditions CONDITION_NO_AURA, CONDITION_ACTIVE_EVENT
* Default behaviour of pets for creatures changed to REACT_DEFENSIVE
* Disallowed sending wrapped items as COD
* Prevent loading and saving single target auras for pet in same way as already implemented for player
* Correctly limit use some flask types to zones.
* Fixed extracting common.MPQ under *nix
* Many small xleanups and fixes.
** mangos merge rev.

TEST REV so be careful of creepy crawly bugs!

Original author: KingPin?
Date: 2008-11-02 16:53:46-06:00

Location:
trunk/src/trinitycore
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/Master.cpp

    r102 r149  
    458458    clearOnlineAccounts(); 
    459459 
    460     QueryResult* result = WorldDatabase.Query("SELECT version FROM db_version LIMIT 1"); 
    461     if(result) 
    462     { 
    463         Field* fields = result->Fetch(); 
    464  
    465         sLog.outString("Using %s", fields[0].GetString()); 
    466         delete result; 
    467     } 
    468     else 
    469         sLog.outString("Using unknown world database."); 
    470  
     460    sWorld.LoadDBVersion(); 
     461 
     462        sLog.outString("Using %s", sWorld.GetDBVersion()); 
    471463    return true; 
    472464} 
  • trunk/src/trinitycore/RASocket.cpp

    r112 r149  
    197197                    loginDatabase.escape_string(pw); 
    198198 
    199                     QueryResult *check = loginDatabase.PQuery("SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))", login.c_str(), pw.c_str()); 
     199                    QueryResult *check = loginDatabase.PQuery( 
     200                                                "SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))", 
     201                                                login.c_str(), pw.c_str()); 
     202 
    200203                    if(check) 
    201204                    {