Advertisement
Guest User

Untitled

a guest
May 24th, 2020
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.73 KB | None | 0 0
  1. // Balanceamento
  2. if (MOB.Class == 0) // TK
  3. {
  4.  
  5. if (MOB.LearnedSkill & (1 << 7)) // 8ª Confiança
  6. {
  7. int lidx = MOB.Equip[6].sIndex;
  8. int ridx = MOB.Equip[7].sIndex;
  9.  
  10. if (lidx > 0 && lidx < MAX_ITEMLIST)
  11. {
  12. int ltype = g_pItemList[lidx].nUnique;
  13.  
  14. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 31) // Cetro
  15. {
  16. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  17.  
  18. if (totalmg >= MAX_DAMAGE_MG)
  19. MOB.Magic = MAX_DAMAGE_MG;
  20. else
  21. MOB.Magic = totalmg;
  22. }
  23.  
  24. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 32) // Cajados
  25. {
  26. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  27.  
  28. if (totalmg >= MAX_DAMAGE_MG)
  29. MOB.Magic = MAX_DAMAGE_MG;
  30. else
  31. MOB.Magic = totalmg;
  32. }
  33.  
  34. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 21) // Lanças
  35. {
  36. int totalmg = ((MOB.Magic / 100) * 35) + MOB.Magic;
  37.  
  38. if (totalmg >= MAX_DAMAGE_MG)
  39. MOB.Magic = MAX_DAMAGE_MG;
  40. else
  41. MOB.Magic = totalmg;
  42. }
  43.  
  44. if (ridx > 0 && ridx < MAX_ITEMLIST)
  45. {
  46. int rtype = g_pItemList[ridx].nUnique;
  47.  
  48. }
  49.  
  50. }
  51. }
  52.  
  53. if (MOB.LearnedSkill & (1 << 15)) // 8ª Trans
  54. {
  55. int lidx = MOB.Equip[6].sIndex;
  56. int ridx = MOB.Equip[7].sIndex;
  57.  
  58. if (lidx > 0 && lidx < MAX_ITEMLIST)
  59. {
  60. int ltype = g_pItemList[lidx].nUnique;
  61.  
  62. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 41) // Garra
  63. {
  64. int addgarra = ((MOB.CurrentScore.Dex * 22 / 100) + (MOB.CurrentScore.Str * 28 / 100)) + MOB.CurrentScore.Damage;
  65. MOB.CurrentScore.Damage = addgarra;
  66. }
  67.  
  68. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 101) // Arco
  69. {
  70. int addarco = ((MOB.CurrentScore.Dex * 25 / 100) + (MOB.CurrentScore.Str * 30 / 100)) + MOB.CurrentScore.Damage;
  71. MOB.CurrentScore.Damage = addarco;
  72. }
  73.  
  74. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 13) // Arco
  75. {
  76. int addarco = ((MOB.CurrentScore.Dex * 28 / 100) + (MOB.CurrentScore.Str * 32 / 100)) + MOB.CurrentScore.Damage;
  77. MOB.CurrentScore.Damage = addarco;
  78. }
  79.  
  80. /*if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 1) // Caliburn
  81. {
  82. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  83. MOB.CurrentScore.Damage = addcali;
  84. }
  85.  
  86. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 11) // Balmungs
  87. {
  88. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  89. MOB.CurrentScore.Damage = addbalm;
  90. }*/
  91. }
  92.  
  93. if (ridx > 0 && ridx < MAX_ITEMLIST)
  94. {
  95. int rtype = g_pItemList[ridx].nUnique;
  96.  
  97. /*if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 1) // Caliburn
  98. {
  99. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  100. MOB.CurrentScore.Damage = addcali;
  101. }
  102.  
  103. if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 11) // Balmungs
  104. {
  105. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  106. MOB.CurrentScore.Damage = addbalm;
  107. }*/
  108. }
  109. }
  110.  
  111. if (MOB.LearnedSkill & (1 << 23)) // 8ª Espada Mágica
  112. {
  113. int lidx = MOB.Equip[6].sIndex;
  114. int ridx = MOB.Equip[7].sIndex;
  115.  
  116. if (lidx > 0 && lidx < MAX_ITEMLIST)
  117. {
  118. int ltype = g_pItemList[lidx].nUnique;
  119.  
  120. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 31) // Cetro
  121. {
  122. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  123.  
  124. if (totalmg >= MAX_DAMAGE_MG)
  125. MOB.Magic = MAX_DAMAGE_MG;
  126. else
  127. MOB.Magic = totalmg;
  128. }
  129.  
  130. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 32) // Cajados
  131. {
  132. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  133.  
  134. if (totalmg >= MAX_DAMAGE_MG)
  135. MOB.Magic = MAX_DAMAGE_MG;
  136. else
  137. MOB.Magic = totalmg;
  138. }
  139.  
  140. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 21) // Lanças
  141. {
  142. int totalmg = ((MOB.Magic / 100) * 35) + MOB.Magic;
  143.  
  144. if (totalmg >= MAX_DAMAGE_MG)
  145. MOB.Magic = MAX_DAMAGE_MG;
  146. else
  147. MOB.Magic = totalmg;
  148. }
  149.  
  150. if (ridx > 0 && ridx < MAX_ITEMLIST)
  151. {
  152. int rtype = g_pItemList[ridx].nUnique;
  153.  
  154. }
  155.  
  156. }
  157. }
  158.  
  159. }
  160.  
  161. if (MOB.Class == 1) // FM
  162. {
  163.  
  164. if (MOB.LearnedSkill & (1 << 15)) // 8ª Black
  165. {
  166. int lidx = MOB.Equip[6].sIndex;
  167. int ridx = MOB.Equip[7].sIndex;
  168.  
  169. if (lidx > 0 && lidx < MAX_ITEMLIST)
  170. {
  171. int ltype = g_pItemList[lidx].nUnique;
  172.  
  173. /*if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 41) // Garra
  174. {
  175. int addgarra = ((MOB.CurrentScore.Dex * 24 / 100) + (MOB.CurrentScore.Str * 34 / 100)) + MOB.CurrentScore.Damage;
  176. MOB.CurrentScore.Damage = addgarra;
  177. }
  178.  
  179. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 101) // Arco
  180. {
  181. int addarco = ((MOB.CurrentScore.Dex * 32 / 100) + (MOB.CurrentScore.Str * 38 / 100)) + MOB.CurrentScore.Damage;
  182. MOB.CurrentScore.Damage = addarco;
  183. }
  184.  
  185. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 1) // Caliburn
  186. {
  187. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  188. MOB.CurrentScore.Damage = addcali;
  189. }
  190.  
  191. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 11) // Balmungs
  192. {
  193. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  194. MOB.CurrentScore.Damage = addbalm;
  195. }*/
  196.  
  197. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 31) // Cetro
  198. {
  199. int totalmg = ((MOB.Magic / 100) * 32) + MOB.Magic;
  200.  
  201. if (totalmg >= MAX_DAMAGE_MG)
  202. MOB.Magic = MAX_DAMAGE_MG;
  203. else
  204. MOB.Magic = totalmg;
  205. }
  206.  
  207. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 32) // Cajados
  208. {
  209. int totalmg = ((MOB.Magic / 100) * 35) + MOB.Magic;
  210.  
  211. if (totalmg >= MAX_DAMAGE_MG)
  212. MOB.Magic = MAX_DAMAGE_MG;
  213. else
  214. MOB.Magic = totalmg;
  215. }
  216.  
  217. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 21) // Lanças
  218. {
  219. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  220.  
  221. if (totalmg >= MAX_DAMAGE_MG)
  222. MOB.Magic = MAX_DAMAGE_MG;
  223. else
  224. MOB.Magic = totalmg;
  225. }
  226. }
  227. if (ridx > 0 && ridx < MAX_ITEMLIST)
  228. {
  229. int rtype = g_pItemList[ridx].nUnique;
  230.  
  231. /*if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 1) // Caliburn
  232. {
  233. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  234. MOB.CurrentScore.Damage = addcali;
  235. }
  236.  
  237. if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 11) // Balmungs
  238. {
  239. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  240. MOB.CurrentScore.Damage = addbalm;
  241. }*/
  242. }
  243.  
  244. }
  245.  
  246. if (MOB.LearnedSkill & (1 << 23)) // 8ª Magia Especial
  247. {
  248. int lidx = MOB.Equip[6].sIndex;
  249. int ridx = MOB.Equip[7].sIndex;
  250.  
  251. if (lidx > 0 && lidx < MAX_ITEMLIST)
  252. {
  253. int ltype = g_pItemList[lidx].nUnique;
  254.  
  255. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 41) // Garra
  256. {
  257. int addgarra = ((MOB.CurrentScore.Dex * 28 / 100) + (MOB.CurrentScore.Str * 36 / 100)) + MOB.CurrentScore.Damage;
  258. MOB.CurrentScore.Damage = addgarra;
  259. }
  260.  
  261. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 101) // Arco
  262. {
  263. int addarco = ((MOB.CurrentScore.Dex * 32 / 100) + (MOB.CurrentScore.Str * 38 / 100)) + MOB.CurrentScore.Damage;
  264. MOB.CurrentScore.Damage = addarco;
  265. }
  266.  
  267. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 1) // Caliburn
  268. {
  269. int addcali = ((MOB.CurrentScore.Dex * 16 / 100) + (MOB.CurrentScore.Str * 19 / 100)) + MOB.CurrentScore.Damage;
  270. MOB.CurrentScore.Damage = addcali;
  271. }
  272.  
  273. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 11) // Balmungs
  274. {
  275. int addbalm = ((MOB.CurrentScore.Dex * 16 / 100) + (MOB.CurrentScore.Str * 19 / 100)) + MOB.CurrentScore.Damage;
  276. MOB.CurrentScore.Damage = addbalm;
  277. }
  278.  
  279. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 31) // Cetro
  280. {
  281. int totalmg = ((MOB.Magic / 100) * 40) + MOB.Magic;
  282.  
  283. if (totalmg >= MAX_DAMAGE_MG)
  284. MOB.Magic = MAX_DAMAGE_MG;
  285. else
  286. MOB.Magic = totalmg;
  287. }
  288.  
  289. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 32) // Cajados
  290. {
  291. int totalmg = ((MOB.Magic / 100) * 35) + MOB.Magic;
  292.  
  293. if (totalmg >= MAX_DAMAGE_MG)
  294. MOB.Magic = MAX_DAMAGE_MG;
  295. else
  296. MOB.Magic = totalmg;
  297. }
  298.  
  299. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 21) // Lanças
  300. {
  301. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  302.  
  303. if (totalmg >= MAX_DAMAGE_MG)
  304. MOB.Magic = MAX_DAMAGE_MG;
  305. else
  306. MOB.Magic = totalmg;
  307. }
  308. }
  309. if (ridx > 0 && ridx < MAX_ITEMLIST)
  310. {
  311. int rtype = g_pItemList[ridx].nUnique;
  312.  
  313. if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 1) // Caliburn
  314. {
  315. int addcali = ((MOB.CurrentScore.Dex * 16 / 100) + (MOB.CurrentScore.Str * 19 / 100)) + MOB.CurrentScore.Damage;
  316. MOB.CurrentScore.Damage = addcali;
  317. }
  318.  
  319. if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 11) // Balmungs
  320. {
  321. int addbalm = ((MOB.CurrentScore.Dex * 16 / 100) + (MOB.CurrentScore.Str * 19 / 100)) + MOB.CurrentScore.Damage;
  322. MOB.CurrentScore.Damage = addbalm;
  323. }
  324. }
  325.  
  326. }
  327.  
  328. }
  329.  
  330. if (MOB.Class == 2) //BM
  331. {
  332.  
  333. if (MOB.LearnedSkill & (1 << 7)) // BM Elemental
  334. {
  335. int lidx = MOB.Equip[6].sIndex;
  336. int ridx = MOB.Equip[7].sIndex;
  337.  
  338. if (lidx > 0 && lidx < MAX_ITEMLIST)
  339. {
  340. int ltype = g_pItemList[lidx].nUnique;
  341.  
  342. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 41) // Garra
  343. {
  344. int addgarra = ((MOB.CurrentScore.Dex * 24 / 100) + (MOB.CurrentScore.Str * 34 / 100)) + MOB.CurrentScore.Damage;
  345. MOB.CurrentScore.Damage = addgarra;
  346. }
  347.  
  348. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 101) // Arco
  349. {
  350. int addarco = ((MOB.CurrentScore.Dex * 32 / 100) + (MOB.CurrentScore.Str * 38 / 100)) + MOB.CurrentScore.Damage;
  351. MOB.CurrentScore.Damage = addarco;
  352. }
  353.  
  354. /*if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 1) // Caliburn
  355. {
  356. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  357. MOB.CurrentScore.Damage = addcali;
  358. }
  359.  
  360. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 11) // Balmungs
  361. {
  362. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  363. MOB.CurrentScore.Damage = addbalm;
  364. }*/
  365.  
  366. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 31) // Cetro
  367. {
  368. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  369.  
  370. if (totalmg >= MAX_DAMAGE_MG)
  371. MOB.Magic = MAX_DAMAGE_MG;
  372. else
  373. MOB.Magic = totalmg;
  374. }
  375.  
  376. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 32) // Cajados
  377. {
  378. int totalmg = ((MOB.Magic / 100) * 30) + MOB.Magic;
  379.  
  380. if (totalmg >= MAX_DAMAGE_MG)
  381. MOB.Magic = MAX_DAMAGE_MG;
  382. else
  383. MOB.Magic = totalmg;
  384. }
  385.  
  386. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 21) // Lanças
  387. {
  388. int totalmg = ((MOB.Magic / 100) * 35) + MOB.Magic;
  389.  
  390. if (totalmg >= MAX_DAMAGE_MG)
  391. MOB.Magic = MAX_DAMAGE_MG;
  392. else
  393. MOB.Magic = totalmg;
  394. }
  395. }
  396. if (ridx > 0 && ridx < MAX_ITEMLIST)
  397. {
  398. int rtype = g_pItemList[ridx].nUnique;
  399.  
  400. /*if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 1) // Caliburn
  401. {
  402. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  403. MOB.CurrentScore.Damage = addcali;
  404. }
  405.  
  406. if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 11) // Balmungs
  407. {
  408. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  409. MOB.CurrentScore.Damage = addbalm;
  410. }*/
  411. }
  412.  
  413. }
  414.  
  415. if (MOB.LearnedSkill & (1 << 23)) // BM Natureza
  416. {
  417. int lidx = MOB.Equip[6].sIndex;
  418. int ridx = MOB.Equip[7].sIndex;
  419.  
  420. if (lidx > 0 && lidx < MAX_ITEMLIST)
  421. {
  422. int ltype = g_pItemList[lidx].nUnique;
  423.  
  424. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 41) // Garra
  425. {
  426. int addgarra = ((MOB.CurrentScore.Dex * 24 / 100) + (MOB.CurrentScore.Str * 34 / 100)) + MOB.CurrentScore.Damage;
  427. MOB.CurrentScore.Damage = addgarra;
  428. }
  429.  
  430. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 101) // Arco
  431. {
  432. int addarco = ((MOB.CurrentScore.Dex * 32 / 100) + (MOB.CurrentScore.Str * 38 / 100)) + MOB.CurrentScore.Damage;
  433. MOB.CurrentScore.Damage = addarco;
  434. }
  435.  
  436. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 103) // Arco
  437. {
  438. int addarco = ((MOB.CurrentScore.Dex * 32 / 100) + (MOB.CurrentScore.Str * 38 / 100)) + MOB.CurrentScore.Damage;
  439. MOB.CurrentScore.Damage = addarco;
  440. }
  441.  
  442. /*if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 1) // Caliburn
  443. {
  444. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  445. MOB.CurrentScore.Damage = addcali;
  446. }
  447.  
  448. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 11) // Balmungs
  449. {
  450. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  451. MOB.CurrentScore.Damage = addbalm;
  452. }*/
  453.  
  454. if (ltype == 192 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 31) // Cetro
  455. {
  456. int totalmg = ((MOB.Magic / 100) * 20) + MOB.Magic;
  457.  
  458. if (totalmg >= MAX_DAMAGE_MG)
  459. MOB.Magic = MAX_DAMAGE_MG;
  460. else
  461. MOB.Magic = totalmg;
  462. }
  463.  
  464. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 32) // Cajados
  465. {
  466. int totalmg = ((MOB.Magic / 100) * 20) + MOB.Magic;
  467.  
  468. if (totalmg >= MAX_DAMAGE_MG)
  469. MOB.Magic = MAX_DAMAGE_MG;
  470. else
  471. MOB.Magic = totalmg;
  472. }
  473.  
  474. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 21) // Lanças
  475. {
  476. int totalmg = ((MOB.Magic / 100) * 25) + MOB.Magic;
  477.  
  478. if (totalmg >= MAX_DAMAGE_MG)
  479. MOB.Magic = MAX_DAMAGE_MG;
  480. else
  481. MOB.Magic = totalmg;
  482. }
  483. }
  484. if (ridx > 0 && ridx < MAX_ITEMLIST)
  485. {
  486. int rtype = g_pItemList[ridx].nUnique;
  487.  
  488. /*if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 1) // Caliburn
  489. {
  490. int addcali = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  491. MOB.CurrentScore.Damage = addcali;
  492. }
  493.  
  494. if (rtype == 192 || BASE_GetItemAbility(&MOB.Equip[7], EF_WTYPE) == 11) // Balmungs
  495. {
  496. int addbalm = ((MOB.CurrentScore.Dex * 13 / 100) + (MOB.CurrentScore.Str * 16 / 100)) + MOB.CurrentScore.Damage;
  497. MOB.CurrentScore.Damage = addbalm;
  498. }*/
  499. }
  500.  
  501. }
  502. }
  503.  
  504. if (MOB.Class == 3) // HT
  505. {
  506. //Agressividade
  507. if (MOB.LearnedSkill & (1 << 3)) // 2
  508. {
  509. int lidx = MOB.Equip[6].sIndex;
  510.  
  511. if (lidx > 0 && lidx < MAX_ITEMLIST)
  512. {
  513. int ltype = g_pItemList[lidx].nUnique;
  514.  
  515. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 41) // Garra
  516. {
  517. int addgarra = ((MOB.CurrentScore.Dex * 22 / 100) + (MOB.CurrentScore.Str * 32 / 100)) + MOB.CurrentScore.Damage;
  518. MOB.CurrentScore.Damage = addgarra;
  519. }
  520.  
  521. if (ltype == 64 || BASE_GetItemAbility(&MOB.Equip[6], EF_WTYPE) == 101) // Arco
  522. {
  523. int addarco = ((MOB.CurrentScore.Dex * 27 / 100) + (MOB.CurrentScore.Str * 33 / 100)) + MOB.CurrentScore.Damage;
  524. MOB.CurrentScore.Damage = addarco;
  525. }
  526. }
  527. }
  528.  
  529. //Tempestade de Raios Bonus em Dano
  530. if (MOB.LearnedSkill & (1 << 8)) // 7
  531. MOB.CurrentScore.Damage += 200;
  532.  
  533.  
  534. //Visão do Caçador
  535. if (MOB.LearnedSkill & (1 << 18))
  536. {
  537. int criticaladd = ((special3 + 1) / 10) + (MOB.CurrentScore.Dex / 75);
  538.  
  539. if (criticaladd < 4)
  540. criticaladd = 4;
  541.  
  542. Critical += criticaladd;
  543. }
  544.  
  545. //Proteção das sombras
  546. if (MOB.LearnedSkill & (1 << 23)) // 22
  547. {
  548. int sombraadd = (special3 / 3) + 10;
  549. MOB.CurrentScore.Ac += sombraadd;
  550. }
  551. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement