Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================
- //= super_enchant 0.1 ver. ===================================
- //============================================================
- //= Unofficial Release by ====================================
- //= Dimas_Shotta93 ===========================================
- //============================================================
- //= selectable slot for enchant costume. =====================
- //= 1st slot ( class stone lv1) ==============================
- //= 2nd slot ( class stone lv2) ==============================
- //= 3rd slot ( cpstuem stone ) ===============================
- //= 4th slot ( effect stone ) ================================
- //= Feel free to change the or costumize it ==================
- //============================================================
- prt_in,36,95,2 script Enchant Master 810,{
- mes "[Enchant Master]";
- mes "Hi!!";
- mes "I can enchant every costume that you wear,";
- mes "i just need ^FF000010 silvervine fruit^000000 to do it.";
- next;
- mes "[Enchant Master]";
- mes "i also can reset your enchatment.";
- mes "because i am so generous, i dont charge anything to reset the enchantment.";
- mes "what do you wanna do?";
- next;
- switch(select("Modify Costume.","Reset Costume.")){
- next;
- case 1:
- mes "[Enchant Master]";
- mes "please select the costume!";
- switch(select("Costume Upper.","Costume Middle.","Costume Lower.","Costume Garment.")){
- next;
- case 1:
- .@hg = getequipid(EQI_COSTUME_HEAD_TOP); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_HEAD_TOP); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_HEAD_TOP,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_HEAD_TOP,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_HEAD_TOP,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_HEAD_TOP,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_HEAD_TOP) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,1,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,2,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,3,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your upper costume is "+getitemname(getequipid(EQI_COSTUME_HEAD_TOP))+"!";
- next;
- mes "[Enchant Master]";
- mes "Now select the slot!";
- mes "1st slot is for ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is for ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is for ^FF0000Special Abilities.^000000";
- mes "4th slot is for ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.")){
- case 1:
- setArray .enchant_id1[0],29423,29428,29432,29460,29464,29468,29477,29481,29485,29513,29517,29521,29651,29655,29659,29664,29668;
- if(.@card[0]) {
- mes "[Enchant Master]";
- mes "you have to reset the first slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id1); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id1[.@e])+ ( (.enchant_id1[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id1[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_TOP;
- .@card[0] = .enchant_id[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 2:
- setArray .enchant_id2[0],29613,29617,29621,310000,310004,310008,310181,310187,310191,310258,310262,310266;
- if(.@card[1]) {
- mes "[Enchant Master]";
- mes "you have to reset the second slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id2); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id2[.@e])+ ( (.enchant_id2[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id2[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_TOP;
- .@card[1] = .enchant_id2[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 3:
- setArray .enchant_id3[0],29156,29159,29359,29028,29030,29053,29121,29125;
- if(.@card[2]) {
- mes "[Enchant Master]";
- mes "you have to reset the third slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id3); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id3[.@e])+ ( (.enchant_id3[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id3[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_TOP;
- .@card[2] = .enchant_id3[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 4:
- setArray .enchant_id4[0],29160,29161,29162,29224,29225,29041,29142,29143,29144,29226;
- if(.@card[3]) {
- mes "[Enchant Master]";
- mes "you have to reset the fourth slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id4); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id4[.@e])+ ( (.enchant_id4[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id4[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_TOP;
- .@card[3] = .enchant_id4[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- }
- case 2:
- .@hg = getequipid(EQI_COSTUME_HEAD_MID); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_HEAD_MID); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_HEAD_MID,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_HEAD_MID,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_HEAD_MID,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_HEAD_MID,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_HEAD_MID) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,1,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,2,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,3,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your middle costume is "+getitemname(getequipid(EQI_COSTUME_HEAD_MID))+"!";
- next;
- mes "[Enchant Master]";
- mes "Now select the slot!";
- mes "1st slot is for ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is for ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is for ^FF0000Special Abilities.^000000";
- mes "4th slot is for ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.")){
- case 1:
- setArray .enchant_id1[0],29424,29429,29433,29461,29465,29469,29478,29482,29486,29514,29518,29522,29652,29656,29660,29663,29665,29669;
- if(.@card[0]) {
- mes "[Enchant Master]";
- mes "you have to reset the second slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id1); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id1[.@e])+ ( (.enchant_id1[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id1[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_MID;
- .@card[0] = .enchant_id1[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 2:
- setArray .enchant_id2[0],29612,29616,29620,310001,310005,310009,310182,310186,310190,310259,310263,310267;
- if(.@card[1]) {
- mes "[Enchant Master]";
- mes "you have to reset the second slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id2); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id2[.@e])+ ( (.enchant_id2[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id2[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_MID;
- .@card[1] = .enchant_id2[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 3:
- setArray .enchant_id3[0],29157,29047,29054,29122,29126,29145;
- if(.@card[2]) {
- mes "[Enchant Master]";
- mes "you have to reset the third slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id3); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id3[.@e])+ ( (.enchant_id3[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id3[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_MID;
- .@card[2] = .enchant_id3[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 4:
- setArray .enchant_id4[0],29160,29161,29162,29224,29225,29041,29142,29143,29144,29226;
- if(.@card[3]) {
- mes "you have to reset the fourth slot to continue!";
- close;
- }
- mes "[Enchant Master]";
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id4); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id4[.@e])+ ( (.enchant_id4[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id4[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_MID;
- .@card[3] = .enchant_id4[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- }
- case 3:
- .@hg = getequipid(EQI_COSTUME_HEAD_LOW); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_HEAD_LOW); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_HEAD_LOW,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_HEAD_LOW,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_HEAD_LOW,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_HEAD_LOW,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_HEAD_LOW) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,1,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,2,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,3,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your lower costume is "+getitemname(getequipid(EQI_COSTUME_HEAD_LOW))+"!";
- next;
- mes "[Enchant Master]";
- mes "Now select the slot!";
- mes "1st slot is for ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is for ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is for ^FF0000Special Abilities.^000000";
- mes "4th slot is for ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.")){
- case 1:
- setArray .enchant_id1[0],29425,29430,29434,29462,29466,29470,29479,29483,29487,29515,29519,29523,29653,29657,29661,29666,29670;
- if(.@card[0]) {
- mes "[Enchant Master]";
- mes "you have to reset the first slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id1); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id1[.@e])+ ( (.enchant_id1[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id1[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_LOW;
- .@card[0] = .enchant_id1[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 2:
- setArray .enchant_id2[0],29611,29615,29619,310002,310006,310010,310183,310185,310189,310260,310264,310268;
- if(.@card[1]) {
- mes "[Enchant Master]";
- mes "you have to reset the second slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id2); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id2[.@e])+ ( (.enchant_id2[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id2[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_LOW;
- .@card[1] = .enchant_id2[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 3:
- setArray .enchant_id3[0],29158,29154,29360,29029,29031,29055,29123;
- if(.@card[2]) {
- mes "[Enchant Master]";
- mes "you have to reset the third slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id3); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id3[.@e])+ ( (.enchant_id3[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id3[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_LOW;
- .@card[2] = .enchant_id3[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 4:
- setArray .enchant_id4[0],29160,29161,29162,29224,29225,29041,29142,29143,29144,29226;
- if(.@card[3]) {
- mes "[Enchant Master]";
- mes "you have to reset the fourth slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id4); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id4[.@e])+ ( (.enchant_id4[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id4[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_HEAD_LOW;
- .@card[3] = .enchant_id4[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- }
- case 4:
- .@hg = getequipid(EQI_COSTUME_GARMENT); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_GARMENT); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_GARMENT,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_GARMENT,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_GARMENT,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_GARMENT,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_GARMENT) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,1,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,2,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,3,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your garment costume is "+getitemname(getequipid(EQI_COSTUME_GARMENT))+"!";
- next;
- mes "[Enchant Master]";
- mes "Now select the slot!";
- mes "1st slot is for ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is for ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is for ^FF0000Special Abilities.^000000";
- mes "4th slot is for ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.")){
- case 1:
- setArray .enchant_id1[0],29426,29431,29435,29463,29467,29471,29480,29484,29488,29516,29520,29524,29654,29658,29662,29667,29671;
- if(.@card[0]) {
- mes "[Enchant Master]";
- mes "you have to reset the first slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id1); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id1[.@e])+ ( (.enchant_id1[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id1[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_GARMENT;
- .@card[0] = .enchant_id1[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 2:
- setArray .enchant_id2[0],29427,29614,29618,310003,310007,310011,310180,310184,310188,310257,310261,310265;
- if(.@card[1]) {
- mes "[Enchant Master]";
- mes "you have to reset the second slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id2); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id2[.@e])+ ( (.enchant_id2[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id2[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_GARMENT;
- .@card[1] = .enchant_id2[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 3:
- setArray .enchant_id3[0],29027,29056,29124,29358,29372,29363,29361,29373;
- if(.@card[2]) {
- mes "[Enchant Master]";
- mes "you have to reset the third slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id3); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id3[.@e])+ ( (.enchant_id3[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id3[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_GARMENT;
- .@card[2] = .enchant_id3[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- case 4:
- setArray .enchant_id4[0],29160,29161,29162,29224,29225,29041,29142,29143,29144,29226;
- if(.@card[3]) {
- mes "[Enchant Master]";
- mes "you have to reset the fourth slot to continue!";
- close;
- }
- mes "Now please select the Enchantment:";
- next;
- for ( set .@e,0; .@e < getarraysize(.enchant_id4); set .@e,.@e + 1)
- set .@e_m$,.@e_m$ + "> "+getitemname(.enchant_id4[.@e])+ ( (.enchant_id4[.@e+1] != 0)?":":"");
- set .@rune,select(.@e_m$) - 1;
- mes "[Enchant Master]";
- mes "Selected Enchantment: "+getitemname(.enchant_id4[.@rune]);
- if(countitem(6417) < 10) {
- mes "[Enchant Master]";
- mes "But it looks like you don't have enough "+getitemname(6417)+"!";
- close;
- }
- mes "[Enchant Master]";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- if(countitem(6417) >= 10)
- delitem 6417,10;
- delequip EQI_COSTUME_GARMENT;
- .@card[3] = .enchant_id4[.@rune];
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment was a success.";
- mes "See ya next time.";
- close;
- }
- }
- case 2:
- mes "[Enchant Master]";
- mes "Please select the Costume you want me to reset the enchantment!";
- switch(select("Costume Upper.","Costume Middle.","Costume Lower.","Costume Garment.")){
- case 1:
- .@hg = getequipid(EQI_COSTUME_HEAD_TOP); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_HEAD_TOP); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_HEAD_TOP,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_HEAD_TOP,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_HEAD_TOP,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_HEAD_TOP,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_HEAD_TOP) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,1,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,2,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,3,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_TOP,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_TOP,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_HEAD_TOP,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_TOP,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your upper costume is "+getitemname(getequipid(EQI_COSTUME_HEAD_TOP))+"!";
- next;
- mes "Now select the slot!";
- mes "1st slot is to reset ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is to reset ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is to reset ^FF0000Special Abilities.^000000";
- mes "4th slot is to reset ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.","All at once!")){
- case 1:
- if(!.@card[0]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select first slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_TOP;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 2:
- if(!.@card[1]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select second slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_TOP;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], 0, .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], 0, .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 3:
- if(!.@card[2]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select third slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_TOP;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], 0, .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], 0, .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 4:
- if(!.@card[3]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select fourth slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_TOP;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 5:
- mes "Do you really want to reset all the slot?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_TOP;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, 0, 0, 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, 0, 0, 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- }
- case 2:
- .@hg = getequipid(EQI_COSTUME_HEAD_MID); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_HEAD_MID); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_HEAD_MID,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_HEAD_MID,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_HEAD_MID,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_HEAD_MID,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_HEAD_MID) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,1,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,2,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,3,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_MID,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_MID,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_HEAD_MID,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_MID,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your middle costume is "+getitemname(getequipid(EQI_COSTUME_HEAD_MID))+"!";
- next;
- mes "Now select the slot!";
- mes "1st slot is to reset ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is to reset ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is to reset ^FF0000Special Abilities.^000000";
- mes "4th slot is to reset ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.","All at once!")){
- case 1:
- if(!.@card[0]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select first slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_MID;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 2:
- if(!.@card[1]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select second slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_MID;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], 0, .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], 0, .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 3:
- if(!.@card[2]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select third slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_MID;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], 0, .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], 0, .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 4:
- if(!.@card[3]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select fourth slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_MID;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 5:
- mes "Do you really want to reset all the slot?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_MID;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, 0, 0, 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, 0, 0, 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- }
- case 3:
- .@hg = getequipid(EQI_COSTUME_HEAD_LOW); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_HEAD_LOW); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_HEAD_LOW,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_HEAD_LOW,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_HEAD_LOW,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_HEAD_LOW,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_HEAD_LOW) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,1,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,2,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,3,ROA_ID),getequiprandomoption(EQI_COSTUME_HEAD_LOW,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_HEAD_LOW,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_HEAD_LOW,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_HEAD_LOW,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your lower costume is "+getitemname(getequipid(EQI_COSTUME_HEAD_LOW))+"!";
- next;
- mes "Now select the slot!";
- mes "1st slot is to reset ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is to reset ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is to reset ^FF0000Special Abilities.^000000";
- mes "4th slot is to reset ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.","All at once!")){
- case 1:
- if(!.@card[0]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select first slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_LOW;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 2:
- if(!.@card[1]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select second slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_LOW;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], 0, .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], 0, .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 3:
- if(!.@card[2]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select third slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_LOW;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], 0, .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], 0, .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 4:
- if(!.@card[3]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select fourth slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_LOW;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 5:
- mes "Do you really want to reset all the slot?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_HEAD_LOW;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, 0, 0, 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, 0, 0, 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- }
- case 4:
- .@hg = getequipid(EQI_COSTUME_GARMENT); // Saving Item ID
- .@ref = getequiprefinerycnt(EQI_COSTUME_GARMENT); // Saving Refine Level, if there is one
- .@card[0] = getequipcardid(EQI_COSTUME_GARMENT,0); // Save Item ID of Card Slot 1
- .@card[1] = getequipcardid(EQI_COSTUME_GARMENT,1); // Save Item ID of Card Slot 1
- .@card[2] = getequipcardid(EQI_COSTUME_GARMENT,2); // Save Item ID of Card Slot 1
- .@card[3] = getequipcardid(EQI_COSTUME_GARMENT,3); // Save Item ID of Card Slot 1
- if(getequipid(EQI_COSTUME_GARMENT) == -1) {
- mes "[Enchant Master]";
- mes "It looks like you don't have any costume equipped on there.";
- close;
- }
- if(getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_ID) != 0) {
- setarray .@OptID[0],getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,1,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,2,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,3,ROA_ID),getequiprandomoption(EQI_COSTUME_GARMENT,4,ROA_ID);
- setarray .@OptVal[0],getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,1,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,2,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,3,ROA_VALUE),getequiprandomoption(EQI_COSTUME_GARMENT,4,ROA_VALUE);
- setarray .@OptParam[0],getequiprandomoption(EQI_COSTUME_GARMENT,0,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,1,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,2,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,3,ROA_PARAM),getequiprandomoption(EQI_COSTUME_GARMENT,4,ROA_PARAM);
- }
- mes "[Enchant Master]";
- mes "Your garment costume is "+getitemname(getequipid(EQI_COSTUME_GARMENT))+"!";
- next;
- mes "Now select the slot!";
- mes "1st slot is to reset ^FF0000Job Stone LV1.^000000";
- mes "2nd slot is to reset ^FF0000Job Stone LV2.^000000";
- mes "3rd slot is to reset ^FF0000Special Abilities.^000000";
- mes "4th slot is to reset ^FF0000Effect Stone.^000000";
- next;
- switch(select("1st Slot.","2nd Slot.","3rd Slot.","4th Slot.","All at once!")){
- case 1:
- if(!.@card[0]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select first slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_GARMENT;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, .@card[1], .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, .@card[1], .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 2:
- if(!.@card[1]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select second slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_GARMENT;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], 0, .@card[2], .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], 0, .@card[2], .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 3:
- if(!.@card[2]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select third slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_GARMENT;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], 0, .@card[3], .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], 0, .@card[3];
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 4:
- if(!.@card[3]){
- mes "[Enchant Master]";
- mes "There's nothing to be reseted!";
- close;
- }
- mes "You select fourth slot!";
- mes "Proceed?";
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_GARMENT;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, .@card[0], .@card[1], .@card[2], 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, .@card[0], .@card[1], .@card[2], 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- case 5:
- mes "Do you really want to reset all the slot?";;
- if(select("- Yes:- No") - 1) close;
- next;
- delequip EQI_COSTUME_GARMENT;
- if(getarraysize(.@OptID) > 0)
- getitem3 .@hg, 1, 1, .@ref, 0, 0, 0, 0, 0, .@OptID, .@OptVal, .@OptParam;
- else
- getitem2 .@hg, 1, 1, .@ref,0, 0, 0, 0, 0;
- mes "[Enchant Master]";
- mes "The enchantment has been reseted.";
- mes "See ya next time.";
- close;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement