Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (id->type == IT_WEAPON) {
- if (id->wlv == 1) {
- materials[0].material_id = ITEMID_PHRACON;
- materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[0].zeny_cost = 50;
- material_count = 1;
- } else if (id->wlv == 2) {
- materials[0].material_id = ITEMID_EMVERETARCON;
- materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[0].zeny_cost = 200;
- material_count = 1;
- } else if (itx->refine < 10) {
- materials[0].material_id = ITEMID_ORIDECON;
- materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[0].zeny_cost = id->wlv == 3 ? 5000 : 20000;
- materials[1].material_id = ITEMID_ENRICHED_ORIDECON;
- materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[1].zeny_cost = id->wlv == 3 ? 5000 : 20000;
- material_count = 2;
- if (itx->refine >= 7 && itx->refine >= 7 && itx->refine < 10) {
- materials[2].material_id = ITEMID_HD_ORIDECON;
- materials[2].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[2].zeny_cost = 20000;
- materials[3].material_id = ITEMID_E_ENRICHED_ORIDECON;
- materials[3].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[3].zeny_cost = 20000;
- material_count = 4;
- }
- } else {
- materials[0].material_id = ITEMID_BRADIUM;
- materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[0].zeny_cost = 100000;
- materials[1].material_id = ITEMID_HD_BRADIUM;
- materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[1].zeny_cost = 100000;
- materials[1].material_id = ITEMID_E_HD_BRADIUM;
- materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[1].zeny_cost = 100000;
- material_count = 3;
- }
- } else if (id->type == IT_ARMOR) {
- if (itx->refine < 10) {
- materials[0].material_id = ITEMID_ELUNIUM;
- materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[0].zeny_cost = 2000;
- materials[1].material_id = ITEMID_ENRICHED_ELUNIUM;
- materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[1].zeny_cost = 2000;
- material_count = 2;
- } else {
- materials[0].material_id = ITEMID_CARNIUM;
- materials[0].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[0].zeny_cost = 100000;
- materials[1].material_id = ITEMID_HD_CARNIUM;
- materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[1].zeny_cost = 100000;
- materials[1].material_id = ITEMID_E_HD_CARNIUM;
- materials[1].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[1].zeny_cost = 100000;
- material_count = 3;
- }
- if (itx->refine >= 7 && itx->refine < 10) {
- materials[2].material_id = ITEMID_HD_ELUNIUM;
- materials[2].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[2].zeny_cost = 20000;
- materials[3].material_id = ITEMID_E_ENRICHED_ELUNIUM;
- materials[3].success_rate = status_get_refine_chance(id->wlv, itx->refine);
- materials[3].zeny_cost = 20000;
- material_count = 4;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement