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

[svn] * Updated to 6743 and 685

Moved language id used by Arena to a higher place to solve conflicts
Added the empty script folders

Original author: Neo2003
Date: 2008-10-09 08:42:22-05:00

Files:
1 modified

Legend:

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

    r2 r28  
    2727#include "Item.h" 
    2828#include "SocialMgr.h" 
     29#include "Language.h" 
    2930 
    3031enum TradeStatus 
     
    256257    if( _player->tradeGold > _player->GetMoney() ) 
    257258    { 
    258         SendNotification( "You do not have enough gold" ); 
     259        SendNotification(LANG_NOT_ENOUGH_GOLD); 
    259260        _player->pTrader->GetSession()->SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 
    260261        _player->acceptTrade = false; 
     
    265266    if( _player->pTrader->tradeGold > _player->pTrader->GetMoney() ) 
    266267    { 
    267         _player->pTrader->GetSession( )->SendNotification( "You do not have enough gold" ); 
     268        _player->pTrader->GetSession( )->SendNotification(LANG_NOT_ENOUGH_GOLD); 
    268269        SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 
    269270        _player->pTrader->acceptTrade = false; 
     
    339340        if(!myCanCompleteTrade) 
    340341        { 
    341             SendNotification("You do not have enough free slots"); 
    342             GetPlayer( )->pTrader->GetSession( )->SendNotification("Your partner does not have enough free bag slots"); 
     342            SendNotification(LANG_NOT_FREE_TRADE_SLOTS); 
     343            GetPlayer( )->pTrader->GetSession( )->SendNotification(LANG_NOT_PARTNER_FREE_TRADE_SLOTS); 
    343344            SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 
    344345            _player->pTrader->GetSession()->SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 
     
    347348        else if (!hisCanCompleteTrade) 
    348349        { 
    349             SendNotification("Your partner does not have enough free bag slots"); 
    350             GetPlayer()->pTrader->GetSession()->SendNotification("You do not have enough free slots"); 
     350            SendNotification(LANG_NOT_PARTNER_FREE_TRADE_SLOTS); 
     351            GetPlayer()->pTrader->GetSession()->SendNotification(LANG_NOT_FREE_TRADE_SLOTS); 
    351352            SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 
    352353            _player->pTrader->GetSession()->SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 
     
    462463    } 
    463464 
    464     if( GetPlayer()->hasUnitState(UNIT_STAT_STUNDED) ) 
     465    if( GetPlayer()->hasUnitState(UNIT_STAT_STUNNED) ) 
    465466    { 
    466467        SendTradeStatus(TRADE_STATUS_YOU_STUNNED); 
     
    508509    } 
    509510 
    510     if( pOther->hasUnitState(UNIT_STAT_STUNDED) ) 
     511    if( pOther->hasUnitState(UNIT_STAT_STUNNED) ) 
    511512    { 
    512513        SendTradeStatus(TRADE_STATUS_TARGET_STUNNED);