Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Main.h"
- void Packets::Gema_de_Diamante(int clientid, int SrcSlot, int DstSlot)
- {
- Atualizar *p;
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- static int ExtremeDiamante[114] = {2451, 2455, 2459, 2463, 2467, 2471, 2475, 2479, 2483, 2487, 2491, 2511, 2515, 2519, 2523, 2527, 2531, 2535, 2539, 2543, 2547, 2551, 2571, 2575, 2579, 2583, 2587, 2591, 2595, 2599, 2603, 2607, 2611, 2631, 2635, 2639, 2643, 2647, 2651, 2655, 2659, 2663, 2667, 2671, 2691, 2695, 2699, 2703, 2707, 2711, 2715, 2719, 2723, 2727, 2731, 2751, 2755, 2759, 2763, 2767, 2771, 2775, 2779, 2783, 2787, 2791, 2811, 2815, 2819, 2823, 2827, 2831, 2835, 2839, 2843, 2847, 2851, 2855, 2859, 2863, 2871, 2875, 2879, 2883, 2887, 2891, 2895, 2911, 2915, 2919, 2923, 2927, 2931, 2935, 3601, 3605, 3621, 3625, 3641, 3645, 3661, 3665, 3681, 3685, 3701, 3705, 3721, 3725, 3729, 3733, 3761, 3765, 3781, 3785};
- static int ExtremeEsmeralda[114] = {2452, 2456, 2460, 2464, 2468, 2472,2476, 2480, 2484, 2488, 2492, 2512, 2516, 2520, 2524, 2528, 2532, 2536, 2540, 2544, 2548, 2552, 2572, 2576, 2580, 2584, 2588, 2592, 2596, 2600, 2604, 2608, 2612, 2632, 2636, 2640, 2644, 2648, 2652, 2656, 2660, 2664, 2668, 2672, 2692, 2696, 2700, 2704, 2708, 2712, 2716, 2720, 2724, 2728, 2732, 2752, 2756, 2760, 2764, 2768, 2772, 2776, 2780, 2784, 2788, 2792, 2812, 2816, 2820, 2824, 2828, 2832, 2836, 2840, 2844, 2848, 2852, 2856, 2860, 2864, 2872, 2876, 2880, 2884, 2888, 2892, 2896, 2912, 2916, 2920, 2924, 2928, 2932, 2936, 3602, 3606, 3622, 3626, 3642, 3646, 3662, 3666, 3682, 3686, 3702, 3706, 3722, 3726, 3730, 3734, 3762, 3766, 3782, 3786};
- static int ExtremeCoral[114] = {2453, 2457, 2461, 2465, 2469, 2473, 2477, 2481,2485, 2489, 2493, 2513, 2517, 2521, 2525, 2529, 2533, 2537, 2541, 2545, 2549, 2553, 2573, 2577, 2581, 2585, 2589, 2593, 2597, 2601, 2605, 2609, 2613, 2633, 2637, 2641, 2645, 2649, 2653, 2657, 2661, 2665, 2669, 2673, 2693, 2697, 2701, 2705, 2709, 2713, 2717, 2721, 2725, 2729, 2733, 2753, 2757, 2761, 2765, 2769, 2773, 2777, 2781, 2785, 2789, 2793, 2813, 2817, 2821, 2825, 2829, 2833, 2837, 2841, 2845, 2849, 2853, 2857, 2861, 2865, 2873, 2877, 2881, 2885, 2889, 2893, 2897, 2913, 2917, 2921, 2925, 2929, 2933, 2937, 3603, 3607, 3623, 3627, 3643, 3647, 3663, 3667, 3683, 3687, 3703, 3707, 3723, 3727, 3731, 3735, 3763, 3767, 3783, 3787};
- static int ExtremeGarnet[114] = {2454, 2458,2462, 2466, 2470, 2474,2478, 2482, 2486, 2490, 2494, 2514, 2518, 2522, 2526, 2530, 2534, 2538, 2542, 2546, 2550, 2554, 2574, 2578, 2582, 2586, 2590, 2594, 2598, 2602, 2606, 2610, 2614, 2634, 2638, 2642, 2646, 2650, 2654, 2658, 2662, 2666, 2670, 2674, 2694, 2698, 2702, 2706, 2710, 2714, 2718, 2722, 2726, 2730, 2734, 2754, 2758, 2762, 2766, 2770, 2774, 2778, 2782, 2786, 2790, 2794, 2814, 2818, 2822, 2826, 2830, 2834, 2838, 2842, 2846, 2850, 2854, 2858, 2862, 2866, 2874, 2878, 2882, 2886, 2890, 2894, 2898, 2914, 2918, 2922, 2926, 2930, 2934, 2938, 3604, 3608, 3624, 3628, 3644, 3648, 3664, 3668, 3684, 3688, 3704, 3708, 3724, 3728, 3732, 3736, 3764, 3768, 3784, 3788};
- int refinação11 = player->Equip[DstSlot].EF1;
- int refinação12 = player->Equip[DstSlot].EFV1;
- int refinação21 = player->Equip[DstSlot].EF2;
- int refinação22 = player->Equip[DstSlot].EFV2;
- int refinação31 = player->Equip[DstSlot].EF3;
- int refinação32 = player->Equip[DstSlot].EFV3;
- if(((DstSlot > 0) && (DstSlot < 6)) || ((DstSlot > 6) && (DstSlot < 9)) || (DstSlot > 15))
- {
- if((player->Equip[DstSlot].Index >= 3500 && player->Equip[DstSlot].Index <= 3507) || player->Equip[DstSlot].Index == 3303)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else
- {
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 230;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 234;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 238;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 242;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 246;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 250;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 230;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 234;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 238;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 242;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 246;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 250;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 230;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 234;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 238;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 242;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 246;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 250;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- }
- else if(DstSlot == 6)// Arma
- {
- for(int i=0;i<114;i++)
- if(player->Equip[DstSlot].Index == ExtremeDiamante[i])
- {
- player->Equip[DstSlot].Index = player->Equip[DstSlot].Index;
- }
- else if(player->Equip[DstSlot].Index == ExtremeEsmeralda[i])
- {
- player->Equip[DstSlot].Index -= 1;
- }
- else if(player->Equip[DstSlot].Index == ExtremeCoral[i])
- {
- player->Equip[DstSlot].Index -= 2;
- }
- else if(player->Equip[DstSlot].Index == ExtremeGarnet[i])
- {
- player->Equip[DstSlot].Index -= 3;
- }
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 230;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 234;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 238;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 242;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 246;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 250;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 230;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 234;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 238;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 242;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 246;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 250;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 230;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 234;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 238;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 242;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 246;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 250;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- return;
- }
- void Packets::Gema_de_Esmeralda(int clientid, int SrcSlot, int DstSlot)
- {
- Atualizar *p;
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- static int ExtremeDiamante[114] = {2451, 2455, 2459, 2463, 2467, 2471, 2475, 2479, 2483, 2487, 2491, 2511, 2515, 2519, 2523, 2527, 2531, 2535, 2539, 2543, 2547, 2551, 2571, 2575, 2579, 2583, 2587, 2591, 2595, 2599, 2603, 2607, 2611, 2631, 2635, 2639, 2643, 2647, 2651, 2655, 2659, 2663, 2667, 2671, 2691, 2695, 2699, 2703, 2707, 2711, 2715, 2719, 2723, 2727, 2731, 2751, 2755, 2759, 2763, 2767, 2771, 2775, 2779, 2783, 2787, 2791, 2811, 2815, 2819, 2823, 2827, 2831, 2835, 2839, 2843, 2847, 2851, 2855, 2859, 2863, 2871, 2875, 2879, 2883, 2887, 2891, 2895, 2911, 2915, 2919, 2923, 2927, 2931, 2935, 3601, 3605, 3621, 3625, 3641, 3645, 3661, 3665, 3681, 3685, 3701, 3705, 3721, 3725, 3729, 3733, 3761, 3765, 3781, 3785};
- static int ExtremeEsmeralda[114] = {2452, 2456, 2460, 2464, 2468, 2472,2476, 2480, 2484, 2488, 2492, 2512, 2516, 2520, 2524, 2528, 2532, 2536, 2540, 2544, 2548, 2552, 2572, 2576, 2580, 2584, 2588, 2592, 2596, 2600, 2604, 2608, 2612, 2632, 2636, 2640, 2644, 2648, 2652, 2656, 2660, 2664, 2668, 2672, 2692, 2696, 2700, 2704, 2708, 2712, 2716, 2720, 2724, 2728, 2732, 2752, 2756, 2760, 2764, 2768, 2772, 2776, 2780, 2784, 2788, 2792, 2812, 2816, 2820, 2824, 2828, 2832, 2836, 2840, 2844, 2848, 2852, 2856, 2860, 2864, 2872, 2876, 2880, 2884, 2888, 2892, 2896, 2912, 2916, 2920, 2924, 2928, 2932, 2936, 3602, 3606, 3622, 3626, 3642, 3646, 3662, 3666, 3682, 3686, 3702, 3706, 3722, 3726, 3730, 3734, 3762, 3766, 3782, 3786};
- static int ExtremeCoral[114] = {2453, 2457, 2461, 2465, 2469, 2473, 2477, 2481,2485, 2489, 2493, 2513, 2517, 2521, 2525, 2529, 2533, 2537, 2541, 2545, 2549, 2553, 2573, 2577, 2581, 2585, 2589, 2593, 2597, 2601, 2605, 2609, 2613, 2633, 2637, 2641, 2645, 2649, 2653, 2657, 2661, 2665, 2669, 2673, 2693, 2697, 2701, 2705, 2709, 2713, 2717, 2721, 2725, 2729, 2733, 2753, 2757, 2761, 2765, 2769, 2773, 2777, 2781, 2785, 2789, 2793, 2813, 2817, 2821, 2825, 2829, 2833, 2837, 2841, 2845, 2849, 2853, 2857, 2861, 2865, 2873, 2877, 2881, 2885, 2889, 2893, 2897, 2913, 2917, 2921, 2925, 2929, 2933, 2937, 3603, 3607, 3623, 3627, 3643, 3647, 3663, 3667, 3683, 3687, 3703, 3707, 3723, 3727, 3731, 3735, 3763, 3767, 3783, 3787};
- static int ExtremeGarnet[114] = {2454, 2458,2462, 2466, 2470, 2474,2478, 2482, 2486, 2490, 2494, 2514, 2518, 2522, 2526, 2530, 2534, 2538, 2542, 2546, 2550, 2554, 2574, 2578, 2582, 2586, 2590, 2594, 2598, 2602, 2606, 2610, 2614, 2634, 2638, 2642, 2646, 2650, 2654, 2658, 2662, 2666, 2670, 2674, 2694, 2698, 2702, 2706, 2710, 2714, 2718, 2722, 2726, 2730, 2734, 2754, 2758, 2762, 2766, 2770, 2774, 2778, 2782, 2786, 2790, 2794, 2814, 2818, 2822, 2826, 2830, 2834, 2838, 2842, 2846, 2850, 2854, 2858, 2862, 2866, 2874, 2878, 2882, 2886, 2890, 2894, 2898, 2914, 2918, 2922, 2926, 2930, 2934, 2938, 3604, 3608, 3624, 3628, 3644, 3648, 3664, 3668, 3684, 3688, 3704, 3708, 3724, 3728, 3732, 3736, 3764, 3768, 3784, 3788};
- int refinação11 = player->Equip[DstSlot].EF1;
- int refinação12 = player->Equip[DstSlot].EFV1;
- int refinação21 = player->Equip[DstSlot].EF2;
- int refinação22 = player->Equip[DstSlot].EFV2;
- int refinação31 = player->Equip[DstSlot].EF3;
- int refinação32 = player->Equip[DstSlot].EFV3;
- if(((DstSlot > 0) && (DstSlot < 6)) || ((DstSlot > 6) && (DstSlot < 9)) || (DstSlot > 15))
- {
- if((player->Equip[DstSlot].Index >= 3500 && player->Equip[DstSlot].Index <= 3507) || player->Equip[DstSlot].Index == 3303)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else
- {
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 231;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 235;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 239;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 243;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 247;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 251;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 231;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 235;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 239;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 243;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 247;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 251;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 231;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 235;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 239;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 243;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 251;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- }
- else if(DstSlot == 6)// Arma
- {
- for(int i=0;i<114;i++)
- if(player->Equip[DstSlot].Index == ExtremeDiamante[i])
- {
- player->Equip[DstSlot].Index += 1;
- }
- else if(player->Equip[DstSlot].Index == ExtremeEsmeralda[i])
- {
- player->Equip[DstSlot].Index = player->Equip[DstSlot].Index;
- }
- else if(player->Equip[DstSlot].Index == ExtremeCoral[i])
- {
- player->Equip[DstSlot].Index -= 1;
- }
- else if(player->Equip[DstSlot].Index == ExtremeGarnet[i])
- {
- player->Equip[DstSlot].Index -= 2;
- }
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 231;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 235;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 239;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 243;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 247;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 251;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 231;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 235;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 239;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 243;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 247;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 251;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 231;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 235;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 239;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 243;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 247;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 251;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- return;
- }
- void Packets::Gema_de_Coral(int clientid, int SrcSlot, int DstSlot)
- {
- Atualizar *p;
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- static int ExtremeDiamante[114] = {2451, 2455, 2459, 2463, 2467, 2471, 2475, 2479, 2483, 2487, 2491, 2511, 2515, 2519, 2523, 2527, 2531, 2535, 2539, 2543, 2547, 2551, 2571, 2575, 2579, 2583, 2587, 2591, 2595, 2599, 2603, 2607, 2611, 2631, 2635, 2639, 2643, 2647, 2651, 2655, 2659, 2663, 2667, 2671, 2691, 2695, 2699, 2703, 2707, 2711, 2715, 2719, 2723, 2727, 2731, 2751, 2755, 2759, 2763, 2767, 2771, 2775, 2779, 2783, 2787, 2791, 2811, 2815, 2819, 2823, 2827, 2831, 2835, 2839, 2843, 2847, 2851, 2855, 2859, 2863, 2871, 2875, 2879, 2883, 2887, 2891, 2895, 2911, 2915, 2919, 2923, 2927, 2931, 2935, 3601, 3605, 3621, 3625, 3641, 3645, 3661, 3665, 3681, 3685, 3701, 3705, 3721, 3725, 3729, 3733, 3761, 3765, 3781, 3785};
- static int ExtremeEsmeralda[114] = {2452, 2456, 2460, 2464, 2468, 2472,2476, 2480, 2484, 2488, 2492, 2512, 2516, 2520, 2524, 2528, 2532, 2536, 2540, 2544, 2548, 2552, 2572, 2576, 2580, 2584, 2588, 2592, 2596, 2600, 2604, 2608, 2612, 2632, 2636, 2640, 2644, 2648, 2652, 2656, 2660, 2664, 2668, 2672, 2692, 2696, 2700, 2704, 2708, 2712, 2716, 2720, 2724, 2728, 2732, 2752, 2756, 2760, 2764, 2768, 2772, 2776, 2780, 2784, 2788, 2792, 2812, 2816, 2820, 2824, 2828, 2832, 2836, 2840, 2844, 2848, 2852, 2856, 2860, 2864, 2872, 2876, 2880, 2884, 2888, 2892, 2896, 2912, 2916, 2920, 2924, 2928, 2932, 2936, 3602, 3606, 3622, 3626, 3642, 3646, 3662, 3666, 3682, 3686, 3702, 3706, 3722, 3726, 3730, 3734, 3762, 3766, 3782, 3786};
- static int ExtremeCoral[114] = {2453, 2457, 2461, 2465, 2469, 2473, 2477, 2481,2485, 2489, 2493, 2513, 2517, 2521, 2525, 2529, 2533, 2537, 2541, 2545, 2549, 2553, 2573, 2577, 2581, 2585, 2589, 2593, 2597, 2601, 2605, 2609, 2613, 2633, 2637, 2641, 2645, 2649, 2653, 2657, 2661, 2665, 2669, 2673, 2693, 2697, 2701, 2705, 2709, 2713, 2717, 2721, 2725, 2729, 2733, 2753, 2757, 2761, 2765, 2769, 2773, 2777, 2781, 2785, 2789, 2793, 2813, 2817, 2821, 2825, 2829, 2833, 2837, 2841, 2845, 2849, 2853, 2857, 2861, 2865, 2873, 2877, 2881, 2885, 2889, 2893, 2897, 2913, 2917, 2921, 2925, 2929, 2933, 2937, 3603, 3607, 3623, 3627, 3643, 3647, 3663, 3667, 3683, 3687, 3703, 3707, 3723, 3727, 3731, 3735, 3763, 3767, 3783, 3787};
- static int ExtremeGarnet[114] = {2454, 2458,2462, 2466, 2470, 2474,2478, 2482, 2486, 2490, 2494, 2514, 2518, 2522, 2526, 2530, 2534, 2538, 2542, 2546, 2550, 2554, 2574, 2578, 2582, 2586, 2590, 2594, 2598, 2602, 2606, 2610, 2614, 2634, 2638, 2642, 2646, 2650, 2654, 2658, 2662, 2666, 2670, 2674, 2694, 2698, 2702, 2706, 2710, 2714, 2718, 2722, 2726, 2730, 2734, 2754, 2758, 2762, 2766, 2770, 2774, 2778, 2782, 2786, 2790, 2794, 2814, 2818, 2822, 2826, 2830, 2834, 2838, 2842, 2846, 2850, 2854, 2858, 2862, 2866, 2874, 2878, 2882, 2886, 2890, 2894, 2898, 2914, 2918, 2922, 2926, 2930, 2934, 2938, 3604, 3608, 3624, 3628, 3644, 3648, 3664, 3668, 3684, 3688, 3704, 3708, 3724, 3728, 3732, 3736, 3764, 3768, 3784, 3788};
- int refinação11 = player->Equip[DstSlot].EF1;
- int refinação12 = player->Equip[DstSlot].EFV1;
- int refinação21 = player->Equip[DstSlot].EF2;
- int refinação22 = player->Equip[DstSlot].EFV2;
- int refinação31 = player->Equip[DstSlot].EF3;
- int refinação32 = player->Equip[DstSlot].EFV3;
- if(((DstSlot > 0) && (DstSlot < 6)) || ((DstSlot > 6) && (DstSlot < 9)) || (DstSlot > 15))
- {
- if((player->Equip[DstSlot].Index >= 3500 && player->Equip[DstSlot].Index <= 3507) || player->Equip[DstSlot].Index == 3303)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else
- {
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 232;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 236;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 240;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 244;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 252;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 232;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 236;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 240;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 244;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 252;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 232;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 236;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 240;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 244;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 252;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- }
- else if(DstSlot == 6)// Arma
- {
- for(int i=0;i<114;i++)
- if(player->Equip[DstSlot].Index == ExtremeDiamante[i])
- {
- player->Equip[DstSlot].Index += 2;
- }
- else if(player->Equip[DstSlot].Index == ExtremeEsmeralda[i])
- {
- player->Equip[DstSlot].Index += 1;
- }
- else if(player->Equip[DstSlot].Index == ExtremeCoral[i])
- {
- player->Equip[DstSlot].Index = player->Equip[DstSlot].Index;
- }
- else if(player->Equip[DstSlot].Index == ExtremeGarnet[i])
- {
- player->Equip[DstSlot].Index -= 1;
- }
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 232;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 236;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 240;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 244;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 252;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 232;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 236;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 240;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 244;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 252;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 232;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 236;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 240;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 244;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 248;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 252;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- return;
- }
- void Packets::Gema_de_Garnet(int clientid, int SrcSlot, int DstSlot)
- {
- Atualizar *p;
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- static int ExtremeDiamante[114] = {2451, 2455, 2459, 2463, 2467, 2471, 2475, 2479, 2483, 2487, 2491, 2511, 2515, 2519, 2523, 2527, 2531, 2535, 2539, 2543, 2547, 2551, 2571, 2575, 2579, 2583, 2587, 2591, 2595, 2599, 2603, 2607, 2611, 2631, 2635, 2639, 2643, 2647, 2651, 2655, 2659, 2663, 2667, 2671, 2691, 2695, 2699, 2703, 2707, 2711, 2715, 2719, 2723, 2727, 2731, 2751, 2755, 2759, 2763, 2767, 2771, 2775, 2779, 2783, 2787, 2791, 2811, 2815, 2819, 2823, 2827, 2831, 2835, 2839, 2843, 2847, 2851, 2855, 2859, 2863, 2871, 2875, 2879, 2883, 2887, 2891, 2895, 2911, 2915, 2919, 2923, 2927, 2931, 2935, 3601, 3605, 3621, 3625, 3641, 3645, 3661, 3665, 3681, 3685, 3701, 3705, 3721, 3725, 3729, 3733, 3761, 3765, 3781, 3785};
- static int ExtremeEsmeralda[114] = {2452, 2456, 2460, 2464, 2468, 2472,2476, 2480, 2484, 2488, 2492, 2512, 2516, 2520, 2524, 2528, 2532, 2536, 2540, 2544, 2548, 2552, 2572, 2576, 2580, 2584, 2588, 2592, 2596, 2600, 2604, 2608, 2612, 2632, 2636, 2640, 2644, 2648, 2652, 2656, 2660, 2664, 2668, 2672, 2692, 2696, 2700, 2704, 2708, 2712, 2716, 2720, 2724, 2728, 2732, 2752, 2756, 2760, 2764, 2768, 2772, 2776, 2780, 2784, 2788, 2792, 2812, 2816, 2820, 2824, 2828, 2832, 2836, 2840, 2844, 2848, 2852, 2856, 2860, 2864, 2872, 2876, 2880, 2884, 2888, 2892, 2896, 2912, 2916, 2920, 2924, 2928, 2932, 2936, 3602, 3606, 3622, 3626, 3642, 3646, 3662, 3666, 3682, 3686, 3702, 3706, 3722, 3726, 3730, 3734, 3762, 3766, 3782, 3786};
- static int ExtremeCoral[114] = {2453, 2457, 2461, 2465, 2469, 2473, 2477, 2481,2485, 2489, 2493, 2513, 2517, 2521, 2525, 2529, 2533, 2537, 2541, 2545, 2549, 2553, 2573, 2577, 2581, 2585, 2589, 2593, 2597, 2601, 2605, 2609, 2613, 2633, 2637, 2641, 2645, 2649, 2653, 2657, 2661, 2665, 2669, 2673, 2693, 2697, 2701, 2705, 2709, 2713, 2717, 2721, 2725, 2729, 2733, 2753, 2757, 2761, 2765, 2769, 2773, 2777, 2781, 2785, 2789, 2793, 2813, 2817, 2821, 2825, 2829, 2833, 2837, 2841, 2845, 2849, 2853, 2857, 2861, 2865, 2873, 2877, 2881, 2885, 2889, 2893, 2897, 2913, 2917, 2921, 2925, 2929, 2933, 2937, 3603, 3607, 3623, 3627, 3643, 3647, 3663, 3667, 3683, 3687, 3703, 3707, 3723, 3727, 3731, 3735, 3763, 3767, 3783, 3787};
- static int ExtremeGarnet[114] = {2454, 2458,2462, 2466, 2470, 2474,2478, 2482, 2486, 2490, 2494, 2514, 2518, 2522, 2526, 2530, 2534, 2538, 2542, 2546, 2550, 2554, 2574, 2578, 2582, 2586, 2590, 2594, 2598, 2602, 2606, 2610, 2614, 2634, 2638, 2642, 2646, 2650, 2654, 2658, 2662, 2666, 2670, 2674, 2694, 2698, 2702, 2706, 2710, 2714, 2718, 2722, 2726, 2730, 2734, 2754, 2758, 2762, 2766, 2770, 2774, 2778, 2782, 2786, 2790, 2794, 2814, 2818, 2822, 2826, 2830, 2834, 2838, 2842, 2846, 2850, 2854, 2858, 2862, 2866, 2874, 2878, 2882, 2886, 2890, 2894, 2898, 2914, 2918, 2922, 2926, 2930, 2934, 2938, 3604, 3608, 3624, 3628, 3644, 3648, 3664, 3668, 3684, 3688, 3704, 3708, 3724, 3728, 3732, 3736, 3764, 3768, 3784, 3788};
- int refinação11 = player->Equip[DstSlot].EF1;
- int refinação12 = player->Equip[DstSlot].EFV1;
- int refinação21 = player->Equip[DstSlot].EF2;
- int refinação22 = player->Equip[DstSlot].EFV2;
- int refinação31 = player->Equip[DstSlot].EF3;
- int refinação32 = player->Equip[DstSlot].EFV3;
- if(((DstSlot > 0) && (DstSlot < 6)) || ((DstSlot > 6) && (DstSlot < 9)) || (DstSlot > 15))
- {
- if((player->Equip[DstSlot].Index >= 3500 && player->Equip[DstSlot].Index <= 3507) || player->Equip[DstSlot].Index == 3303)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else
- {
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 233;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 237;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 241;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 245;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 249;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 253;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 233;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 237;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 241;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 245;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 249;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 253;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 233;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 237;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 241;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 245;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 249;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 253;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- }
- else if(DstSlot == 6)// Arma
- {
- for(int i=0;i<114;i++)
- if(player->Equip[DstSlot].Index == ExtremeDiamante[i])
- {
- player->Equip[DstSlot].Index += 3;
- }
- else if(player->Equip[DstSlot].Index == ExtremeEsmeralda[i])
- {
- player->Equip[DstSlot].Index += 2;
- }
- else if(player->Equip[DstSlot].Index == ExtremeCoral[i])
- {
- player->Equip[DstSlot].Index += 1;
- }
- else if(player->Equip[DstSlot].Index == ExtremeGarnet[i])
- {
- player->Equip[DstSlot].Index = player->Equip[DstSlot].Index;
- }
- if((refinação11 == 43) || (refinação11 >= 116 && refinação11 <= 125))
- {
- if(refinação12 <= 9)
- {
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 233;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 237;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 241;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 245;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 249;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação12 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 253;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação21 == 43) || (refinação21 >= 116 && refinação21 <= 125))
- {
- if(refinação22 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação22 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 233;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 237;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 241;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 245;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 249;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação22 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 254;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else if((refinação31 == 43) || (refinação31 >= 116 && refinação31 <= 125))
- {
- if(refinação32 <= 9)
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- else if(refinação32 < 234)// +10
- {
- player->Equip[DstSlot].EFV1 = 233;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 238)// +11
- {
- player->Equip[DstSlot].EFV1 = 237;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 242)// +12
- {
- player->Equip[DstSlot].EFV1 = 241;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 246)// +13
- {
- player->Equip[DstSlot].EFV1 = 245;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 250)// +14
- {
- player->Equip[DstSlot].EFV1 = 249;
- p->SendItens(clientid,DstSlot);
- }
- else if(refinação32 < 254)// +15
- {
- player->Equip[DstSlot].EFV1 = 253;
- p->SendItens(clientid,DstSlot);
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- p->DeleteItem(clientid,SrcSlot);
- return;
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- }
- else
- {
- p->SendClientMsg(clientid,"Uso inadequado.");
- p->SendALL(clientid);
- return;
- }
- return;
- }
Add Comment
Please, Sign In to add comment