Advertisement
Guest User

cmd_general.cpp

a guest
Jan 16th, 2018
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. ACMD(do_shop_yang)
  2. {
  3.     [...]
  4.  
  5. #ifndef FULL_YANG
  6.                     long long nTotalMoney = ch->GetGold() + gold;
  7.  
  8.                     if (GOLD_MAX <= nTotalMoney)
  9.                     {
  10.                         sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", ch->GetPlayerID(), ch->GetName());
  11.                         ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You have too much yang in your inventory));
  12.                         return;
  13.                     }
  14. #endif
  15.  
  16. ///////////////////////////////////////////////////////////////////////////////////
  17.  
  18. ACMD(do_shop_update_item)
  19. {
  20.     [...]
  21.  
  22.                     if (GOLD_MAX <= nTotalMoney)
  23.                 {
  24.                     sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", ch->GetPlayerID(), ch->GetName());
  25.                     ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("20ľď łÉŔ» ĂĘ°úÇĎż© »óÁˇŔ» ż­Ľö°ˇ ľř˝Ŕ´Ď´Ů"));
  26.                     return;
  27.                 }
  28.  
  29. ///////////////////////////////////////////////////////////////////////////////////
  30.  
  31. ACMD(do_gift_show)
  32. {
  33.     [...]
  34.  
  35. #ifndef FULL_YANG
  36.                 long long nTotalMoney = ch->GetGold()+count;
  37.  
  38.                 if (GOLD_MAX <= nTotalMoney)
  39.                 {
  40.                     sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", ch->GetPlayerID(), ch->GetName());
  41.                     ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("20ľď łÉŔ» ĂĘ°úÇĎż© »óÁˇŔ» ż­Ľö°ˇ ľř˝Ŕ´Ď´Ů"));
  42.                     return true;
  43.                 }
  44. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement