Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.Cauta in char.cpp si anuleaza functia de mai jos:
- void CHARACTER::DetermineDropMetinStone()
- {
- const int METIN_STONE_NUM = 17;
- static DWORD c_adwMetin[METIN_STONE_NUM] =
- {
- 28012,
- 28030,
- 28031,
- 28032,
- 28033,
- 28034,
- 28035,
- 28036,
- 28037,
- 28038,
- 28039,
- 28040,
- 28041,
- 28042,
- 28043,
- 28044,
- 28045,
- };
- DWORD stone_num = GetRaceNum();
- int idx = std::lower_bound(aStoneDrop, aStoneDrop+STONE_INFO_MAX_NUM, stone_num) - aStoneDrop;
- if (idx >= STONE_INFO_MAX_NUM || aStoneDrop[idx].dwMobVnum != stone_num)
- {
- m_dwDropMetinStone = 0;
- }
- else
- {
- const SStoneDropInfo & info = aStoneDrop[idx];
- m_bDropMetinStonePct = info.iDropPct;
- {
- m_dwDropMetinStone = c_adwMetin[number(0, METIN_STONE_NUM - 1)];
- int iGradePct = number(1, 100);
- for (int iStoneLevel = 0; iStoneLevel < STONE_LEVEL_MAX_NUM; iStoneLevel ++)
- {
- int iLevelGradePortion = info.iLevelPct[iStoneLevel];
- if (iGradePct <= iLevelGradePortion)
- {
- break;
- }
- else
- {
- iGradePct -= iLevelGradePortion;
- m_dwDropMetinStone += 100; // ¥ì©ö +a -> +(a+1)AI ¥ìE¢Ò¡×¢¬¢Ò¢¥U 100¨ú¢¯ Ao¡Æ¢®
- }
- }
- }
- }
- }
- 2.Cauta in char.cpp si anuleaza functia de mai jos:
- if (IsStone())
- {
- // DetermineDropMetinStone();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement