Changeset 28 for trunk/src/game/TradeHandler.cpp
- Timestamp:
- 11/19/08 13:24:39 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/TradeHandler.cpp
r2 r28 27 27 #include "Item.h" 28 28 #include "SocialMgr.h" 29 #include "Language.h" 29 30 30 31 enum TradeStatus … … 256 257 if( _player->tradeGold > _player->GetMoney() ) 257 258 { 258 SendNotification( "You do not have enough gold");259 SendNotification(LANG_NOT_ENOUGH_GOLD); 259 260 _player->pTrader->GetSession()->SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 260 261 _player->acceptTrade = false; … … 265 266 if( _player->pTrader->tradeGold > _player->pTrader->GetMoney() ) 266 267 { 267 _player->pTrader->GetSession( )->SendNotification( "You do not have enough gold");268 _player->pTrader->GetSession( )->SendNotification(LANG_NOT_ENOUGH_GOLD); 268 269 SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 269 270 _player->pTrader->acceptTrade = false; … … 339 340 if(!myCanCompleteTrade) 340 341 { 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); 343 344 SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 344 345 _player->pTrader->GetSession()->SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); … … 347 348 else if (!hisCanCompleteTrade) 348 349 { 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); 351 352 SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); 352 353 _player->pTrader->GetSession()->SendTradeStatus(TRADE_STATUS_BACK_TO_TRADE); … … 462 463 } 463 464 464 if( GetPlayer()->hasUnitState(UNIT_STAT_STUN DED) )465 if( GetPlayer()->hasUnitState(UNIT_STAT_STUNNED) ) 465 466 { 466 467 SendTradeStatus(TRADE_STATUS_YOU_STUNNED); … … 508 509 } 509 510 510 if( pOther->hasUnitState(UNIT_STAT_STUN DED) )511 if( pOther->hasUnitState(UNIT_STAT_STUNNED) ) 511 512 { 512 513 SendTradeStatus(TRADE_STATUS_TARGET_STUNNED);