Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. if (id->type == IT_WEAPON) {
  2. if (id->wlv == 1) {
  3. materials[0].material_id = ITEMID_PHRACON;
  4. materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  5. materials[0].zeny_cost = 50;
  6. material_count = 1;
  7. } else if (id->wlv == 2) {
  8. materials[0].material_id = ITEMID_EMVERETARCON;
  9. materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  10. materials[0].zeny_cost = 200;
  11. material_count = 1;
  12. } else if (itx->refine < 10) {
  13. materials[0].material_id = ITEMID_ORIDECON;
  14. materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  15. materials[0].zeny_cost = id->wlv == 3 ? 5000 : 20000;
  16. materials[1].material_id = ITEMID_ENRICHED_ORIDECON;
  17. materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  18. materials[1].zeny_cost = id->wlv == 3 ? 5000 : 20000;
  19. material_count = 2;
  20.  
  21. if (itx->refine >= 7 && itx->refine >= 7 && itx->refine < 10) {
  22. materials[2].material_id = ITEMID_HD_ORIDECON;
  23. materials[2].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  24. materials[2].zeny_cost = 20000;
  25. materials[3].material_id = ITEMID_E_ENRICHED_ORIDECON;
  26. materials[3].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  27. materials[3].zeny_cost = 20000;
  28. material_count = 4;
  29. }
  30. } else {
  31. materials[0].material_id = ITEMID_BRADIUM;
  32. materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  33. materials[0].zeny_cost = 100000;
  34. materials[1].material_id = ITEMID_HD_BRADIUM;
  35. materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  36. materials[1].zeny_cost = 100000;
  37. materials[1].material_id = ITEMID_E_HD_BRADIUM;
  38. materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  39. materials[1].zeny_cost = 100000;
  40. material_count = 3;
  41. }
  42. } else if (id->type == IT_ARMOR) {
  43. if (itx->refine < 10) {
  44. materials[0].material_id = ITEMID_ELUNIUM;
  45. materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  46. materials[0].zeny_cost = 2000;
  47. materials[1].material_id = ITEMID_ENRICHED_ELUNIUM;
  48. materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  49. materials[1].zeny_cost = 2000;
  50. material_count = 2;
  51. } else {
  52. materials[0].material_id = ITEMID_CARNIUM;
  53. materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  54. materials[0].zeny_cost = 100000;
  55. materials[1].material_id = ITEMID_HD_CARNIUM;
  56. materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  57. materials[1].zeny_cost = 100000;
  58. materials[1].material_id = ITEMID_E_HD_CARNIUM;
  59. materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  60. materials[1].zeny_cost = 100000;
  61. material_count = 3;
  62. }
  63.  
  64. if (itx->refine >= 7 && itx->refine < 10) {
  65. materials[2].material_id = ITEMID_HD_ELUNIUM;
  66. materials[2].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  67. materials[2].zeny_cost = 20000;
  68. materials[3].material_id = ITEMID_E_ENRICHED_ELUNIUM;
  69. materials[3].success_rate = status_get_refine_chance(id->wlv, itx->refine);
  70. materials[3].zeny_cost = 20000;
  71. material_count = 4;
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement