Advertisement
Kapa3a

Drop pietre+4

Nov 2nd, 2023
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.30 KB | Source Code | 0 0
  1. 1.Cauta in char.cpp si anuleaza functia de mai jos:
  2.  
  3. void CHARACTER::DetermineDropMetinStone()
  4. {
  5.     const int METIN_STONE_NUM = 17;
  6.     static DWORD c_adwMetin[METIN_STONE_NUM] =
  7.     {
  8.         28012,
  9.         28030,
  10.         28031,
  11.         28032,
  12.         28033,
  13.         28034,
  14.         28035,
  15.         28036,
  16.         28037,
  17.         28038,
  18.         28039,
  19.         28040,
  20.         28041,
  21.         28042,
  22.         28043,
  23.         28044,
  24.         28045,
  25.     };
  26.     DWORD stone_num = GetRaceNum();
  27.     int idx = std::lower_bound(aStoneDrop, aStoneDrop+STONE_INFO_MAX_NUM, stone_num) - aStoneDrop;
  28.     if (idx >= STONE_INFO_MAX_NUM || aStoneDrop[idx].dwMobVnum != stone_num)
  29.     {
  30.         m_dwDropMetinStone = 0;
  31.     }
  32.     else
  33.     {
  34.         const SStoneDropInfo & info = aStoneDrop[idx];
  35.         m_bDropMetinStonePct = info.iDropPct;
  36.         {
  37.             m_dwDropMetinStone = c_adwMetin[number(0, METIN_STONE_NUM - 1)];
  38.             int iGradePct = number(1, 100);
  39.             for (int iStoneLevel = 0; iStoneLevel < STONE_LEVEL_MAX_NUM; iStoneLevel ++)
  40.             {
  41.                 int iLevelGradePortion = info.iLevelPct[iStoneLevel];
  42.                 if (iGradePct <= iLevelGradePortion)
  43.                 {
  44.                     break;
  45.                 }
  46.                 else
  47.                 {
  48.                     iGradePct -= iLevelGradePortion;
  49.                     m_dwDropMetinStone += 100; // ¥ì©ö +a -> +(a+1)AI ¥ìE¢Ò¡×¢¬¢Ò¢¥U 100¨ú¢¯ Ao¡Æ¢®
  50.                 }
  51.             }
  52.         }
  53.     }
  54. }
  55.  
  56. 2.Cauta in char.cpp si anuleaza functia de mai jos:
  57.  
  58.     if (IsStone())
  59.     {
  60.         // DetermineDropMetinStone();
  61.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement