szabolevi98

Untitled

Feb 10th, 2023
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. This tutorial is about to mirror mob_color and specular column from txt proto to db because Ymir skipped them at MirrorTableIntoDB functions.
  2.  
  3. If you're unsure about anything please download the new files and use kdiff/winmerge or notepad++ compare plugin to check.
  4. https://mega.nz/folder/pexwmTqa#w8fm44e-GXmj4mZXRbNI_g
  5.  
  6. -----------------------------------------
  7.  
  8. 1. file: db/ProtoReader.cpp
  9.  
  10. Search:
  11. //Mob_Color
  12. ++col;
  13.  
  14. Modify:
  15. str_to_number(mobTable->dwMobColor, csvTable.AsStringByIndex(col++));
  16.  
  17. Search:
  18. //column for 'Specular'
  19.  
  20. Modify:
  21. itemTable->bSpecular = dataArray[30];
  22.  
  23. -----------------------------------------
  24.  
  25. 2. file: db/ClientManagerBoot.cpp
  26.  
  27. Search 2x in bool CClientManager::MirrorMobTableIntoDB() function:
  28. "dam_multiply, summon, drain_sp, "
  29.  
  30. Modify 2x in bool CClientManager::MirrorMobTableIntoDB() function:
  31. "dam_multiply, summon, drain_sp, mob_color, "
  32.  
  33. Search 2x in bool CClientManager::MirrorMobTableIntoDB() function:
  34. "%f, %d, %d, "
  35.  
  36. Modify 2x in bool CClientManager::MirrorMobTableIntoDB() function:
  37. "%f, %d, %d, %d, "
  38.  
  39. Search 2x in bool CClientManager::MirrorMobTableIntoDB() function:
  40. t.fDamMultiply, t.dwSummonVnum, t.dwDrainSP,
  41.  
  42. Modify 2x in bool CClientManager::MirrorMobTableIntoDB() function:
  43. t.fDamMultiply, t.dwSummonVnum, t.dwDrainSP, t.dwMobColor,
  44.  
  45. Search 2x in bool CClientManager::MirrorItemTableIntoDB() function:
  46. "refined_vnum, refine_set, magic_pct, socket_pct, addon_type, "
  47.  
  48. Modify 2x in bool CClientManager::MirrorItemTableIntoDB() function:
  49. "refined_vnum, refine_set, magic_pct, socket_pct, addon_type, specular, "
  50.  
  51. WARNING: THIS WILL BE 4x IN THE FILE, ONLY MODIFY INSIDE MirrorItemTableIntoDB function!!!
  52. Search 2x in bool CClientManager::MirrorItemTableIntoDB() function:
  53. "%d, %d, %d, %d, %d, "
  54.  
  55. Modify 2x in bool CClientManager::MirrorItemTableIntoDB() function:
  56. "%d, %d, %d, %d, %d, %d, "
  57.  
  58. Search 2x in bool CClientManager::MirrorItemTableIntoDB() function:
  59. t.dwRefinedVnum, t.wRefineSet, t.bAlterToMagicItemPct, t.bGainSocketPct, t.sAddonType,
  60.  
  61. Modify 2x in bool CClientManager::MirrorItemTableIntoDB() function:
  62. t.dwRefinedVnum, t.wRefineSet, t.bAlterToMagicItemPct, t.bGainSocketPct, t.sAddonType, t.bSpecular,
Add Comment
Please, Sign In to add comment