daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CShopManager::Sell(LPCHARACTER ch, BYTE bCell, BYTE bCount) //shop_manager.cpp
  2. {
  3.     [...]
  4.  
  5.     const long long nTotalMoney = static_cast<long long>(ch->GetGold()) + static_cast<long long>(dwPrice);
  6.  
  7.     if (GOLD_MAX <= nTotalMoney)
  8.     {
  9.         sys_err("[OVERFLOW_GOLD] id %u name %s gold %lld", ch->GetPlayerID(), ch->GetName(), ch->GetGold());
  10.         ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You have too much yang in your inventory"));
  11.         return;
  12.     }
  13.  
  14.     sys_log(0, "SHOP: SELL: %s item name: %s(x%d):%u price: %lld", ch->GetName(), item->GetName(), bCount, item->GetID(), dwPrice);
RAW Paste Data
Top