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

[svn] *** Source Mangos ***
*Load npc_options at server startup, use cached data at creature gossip menu init.
* Also new .reload table command added
*Implement npc_option localization support, also store in DB BoxText/BoxMoney/Coded?
* Use characters.guid instead low guid value from characters.data in charcter enum data prepering for client.
* Fixed crash at .pinfo command use from console.
* Fixed windows ad.exe build
*Creature related code and DB cleanups.
* Rename 2 creature_template fields to more clean names and related code update also.
* Use enum values instead raw values for type_flags, use halper functions instead code repeating.
* Move tamed pet creating code to new function.

** Small code changes to make things compliant with above changes.
** Another rev with big changes so test away.

Original author: KingPin?
Date: 2008-11-05 09:22:56-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/NPCHandler.cpp

    r102 r168  
    298298    { 
    299299        _player->TalkedToCreature(unit->GetEntry(),unit->GetGUID()); 
    300         unit->prepareGossipMenu(_player,0); 
    301         unit->sendPreparedGossip( _player ); 
     300        unit->prepareGossipMenu(_player); 
     301        unit->sendPreparedGossip(_player); 
    302302    } 
    303303} 
     
    339339    { 
    340340 
    341         if(!Script->GossipSelectWithCode( _player, unit, _player->PlayerTalkClass->GossipOptionSender( option ), _player->PlayerTalkClass->GossipOptionAction( option ), code.c_str()) ) 
    342             unit->OnGossipSelect( _player, option ); 
     341        if (!Script->GossipSelectWithCode(_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction( option ), code.c_str())) 
     342            unit->OnGossipSelect (_player, option); 
    343343    } 
    344344    else 
    345345 
    346     if(!Script->GossipSelect( _player, unit, _player->PlayerTalkClass->GossipOptionSender( option ), _player->PlayerTalkClass->GossipOptionAction( option )) ) 
    347         unit->OnGossipSelect( _player, option ); 
     346    { 
     347        if (!Script->GossipSelect (_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction (option))) 
     348            unit->OnGossipSelect (_player, option); 
     349    } 
    348350} 
    349351