I was looking into Charleston Crisis equipment and I noted that the echant NPC was outdated, the npc enchants Garment and Armor but not the Legs (22103) and the Shield (28941). I tried to include these two pieces in the npc but with no success. Can anyone help me?
verus04,165,217,4 script MARS_01#pa0829 4_SCR_MT_ROBOTS,{
disable_items;if(checkweight(1201,1)==0||(MaxWeight-Weight)<10000){
mes "^ff0000You have carried too many items, please reduce it and come back later.^000000";
close;}switch( isbegin_quest(12368)){case0:
mes "Blurred LCD screen may be frightened or happy and intense shaking, perhaps due to lack of power and can not complete the presentation.";
next;if(select("Just ignore it.","Press every button.")==1){
mes "It may be a pre-scrap robot that is common everywhere and doesn't require much attention.";
close;}
mes "[?????]";
mes "Hello! I'm MARS_01, an exploration robot. Currently, I have entered hibernation mode to save power. The related functions are set as follows.";
next;if(select("Interrupt the machine","Supply of fuel")==1){
mes "The robot re-enters hibernation mode after a faint sound.";
close;}
mes "[MARS_01]";
mes "We are super power robot, as long as the old oil 1 will let me and the companion PLUTO has more than 90% of the power.";
next;
mes "[MARS_01]";
mes "If you find Old Fuel, please insert the fuel into the mouth of the bottom of the screen, so you can lift the hibernation mode.";
setquest 12368;// Operate the old robot
close;case1:if(countitem(6962)<1){
mes "[MARS_01]";
mes "If you find 1 "+ getitemname(6962)+", please insert the fuel into the mouth of the bottom of the screen, so you can lift the hibernation mode.";
close;}
mes "Maybe we ran out of power when we went looking for fuel. should we put in the fuel?";
next;if(select("Quit.","Put in the fuel")==1){
mes "The old robot may be running out of power and not responding at all.";
close;}
mes "When the fuel is put in, the sound screen opens.";
npctalk "Whoa, whoa?! It moves!!!","Grandpa picking up scrap iron";
next;
mes "[MARS_01]";
mes "Start the inspection system and confirm the damage of each part.";
next;
mes "[MARS_01]";
mes "Power meter 10%, dashboard normal, body skeleton 13%, perform mining operations well.";
next;
mes "[MARS_01]";
mes "Pluto_09 began to inject energy for mining auxiliary robot.";
npctalk "Energy response confirmed. It's working.","PLUTO_09#pa0829";
next;
mes "[MARS_01]";
mes "Thank you for getting me started, I will reset the person who started me to be a manager.";
next;
select("Enter a name.");
mes "[MARS_01]";
mes ""+ strcharinfo(0)+",";
mes "Hello! The fuel has been fully charged.";
delitem 6962,1;// OldTank
completequest 12368;
close;case2:break;}
mes "[MARS_01]";
mes ""+ strcharinfo(0)+",";
mes "Hello! Can I help you?";
next;switch( select("Note","Enhanced "+ getitemname(20773),"Enhanced "+ getitemname(15128))){// Excelion_Wing, Excelion_Suitcase1:
mes "^0000ffSoon the instructions again.^000000";
next;
mes "[MARS_01]";
mes "While waiting for the new owner, we continue to update to the latest version.";
next;
mes "[MARS_01]";
mes "If you bring aak Seri Wong propulsion wing, aak Seri Wong jacket equipment and strengthen the design, I will strengthen the equipment according to the design.";
next;
mes "[MARS_01]";
mes "According to the standard design drawings of the operation, the equipment will not be damaged during the process, but the number of maximum upgrade will change depending on the type of equipment.";
next;
mes "[MARS_01]";
mes "Welcome back again~";
close;case2:.@part= EQI_GARMENT;break;case3:.@part= EQI_ARMOR;break;}// <item ID required>, <item enchant ID>, <max number of this enchant on armor>, <max number of this enchant on garment>, <enchant on first slot only>
setarray .@list[0],6965,4970,1,0,3,// Reactor_P_FIRE_ Reactor_P_FIRE6966,4971,1,0,3,// Reactor_P_WATER_ Reactor_P_WATER6967,4972,1,0,3,// Reactor_P_GROUND_ Reactor_P_GROUND6968,4973,1,0,3,// Reactor_P_WIND_ Reactor_P_WIND6969,4974,0,3,0,// Reactor_T_FIRE_ Reactor_T_FIRE6970,4975,0,3,0,// Reactor_T_WATER_ Reactor_T_WATER6971,4976,0,3,0,// Reactor_T_GROUND_ Reactor_T_GROUND6972,4977,0,3,0,// Reactor_T_WIND_ Reactor_T_WIND6973,4978,3,3,0,// Reactor_Cure_101_ Reactor_Cure_1016974,4979,3,3,0,// Reactor_Cure_102_ Reactor_Cure_1026975,4980,3,3,0,// Reactor_Cure_201_ Reactor_Cure_2016976,4981,3,3,0,// Reactor_Cure_202_ Reactor_Cure_2026977,4982,1,0,0,// Reactor_A_STR_ Reactor_A_STR6978,4983,1,0,0,// Reactor_A_INT_ Reactor_A_INT6979,4984,3,3,0,// Reactor_A_DEF_ Reactor_A_DEF6980,4985,1,1,0,// Reactor_A_AVOI_ Reactor_A_AVOI6981,4986,3,3,0,// Reactor_A_ATK_ Reactor_A_ATK6982,4987,3,3,0,// Reactor_A_MATK_ Reactor_A_MATK6983,4988,3,3,0,// Reactor_A_MHP_ Reactor_A_MHP6984,4989,3,3,0,// Reactor_A_MSP_ Reactor_A_MSP6985,4990,1,0,0,// Reactor_A_FROZ_ Reactor_A_FROZ6986,4991,1,1,0;// Reactor_A_ASPD_ Reactor_A_ASPD.@size= getarraysize(.@list);for(.@i=0;.@i<.@size;.@i+=5){if(countitem(.@list[.@i])<1).@menu$+= sprintf("^aaaaaa%s (Missing)^000000:", getitemname(.@list[.@i]));else.@menu$+= sprintf("%s:", getitemname(.@list[.@i]));}
mes "[MARS_01]";
mes ""+ strcharinfo(0)+",";
mes "Choose the enchant you want to use!";
next;.@s= select("Quit.:"+.@menu$)-2;if(.@s<0){
mes "[MARS_01]";
mes "So far.";
close;}.@s*=5;.@item_req=.@list[.@s];.@item_enchant_id=.@list[.@s+1];.@first_slot_only=.@list[.@s+4];.@equip_id= getequipid(.@part);.@equip_refine= getequiprefinerycnt(.@part);
setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3);if(countitem(.@item_req)<1){
mes "[MARS_01]";
mes "So far.";
close;}if(.@part== EQI_ARMOR).@max_num_enchant=.@list[.@s+2];elseif(.@part== EQI_GARMENT).@max_num_enchant=.@list[.@s+3];else{
mes "[MARS_01]";
mes "Please contact the administrator.";
close;}// anti-hackif(callfunc("F_IsEquipIDHack",.@part,.@equip_id)|| callfunc("F_IsEquipCardHack",.@part,.@card[0],.@card[1],.@card[2],.@card[3])|| callfunc("F_IsEquipRefineHack",.@part,.@equip_refine)){
mes "[MARS_01]";
mes "Did you remove your gear?";
close;}if(.@card[0]>0&&.@item_enchant_id==.@card[0]){.@slot_sum++;}if(.@card[1]>0&&.@item_enchant_id==.@card[1]){.@slot_sum++;}if(.@card[2]>0&&.@item_enchant_id==.@card[2]){.@slot_sum++;}if(.@card[3]>0&&.@item_enchant_id==.@card[3]){.@slot_sum++;}if(.@max_num_enchant<1){
mes "[MARS_01]";
mes "The design you choose is incompatible with the equipment.";
close;}if(.@first_slot_only>0&&.@card[3]!=0){
mes "[MARS_01]";
mes "This design is only for the first time to strengthen the use, but the equipment has other performance, please use other design to strengthen it!";
close;}if(.@slot_sum>=.@max_num_enchant){
mes "[MARS_01]";
mes "The maximum number of enchants is "+.@max_num_enchant+". The item has reached the upper limit.";
close;}if(.@card[1]!=0){
mes "[MARS_01]";
mes "The number of equipment has reached the limit.";
close;}// anti-hackif(callfunc("F_IsEquipIDHack",.@part,.@equip_id)|| callfunc("F_IsEquipCardHack",.@part,.@card[0],.@card[1],.@card[2],.@card[3])|| callfunc("F_IsEquipRefineHack",.@part,.@equip_refine)){
mes "[MARS_01]";
mes "Please pay special attention if the equipment will be removed.";
close;}switch(.@equip_id){case20773:// Excelion_Wingcase15128:// Excelion_Suitbreak;default:
mes "[MARS_01]";
mes "The product does not have a serial number, does not meet the specifications of the product can not be strengthened.";
close;}
mes "[MARS_01]^0000ff";
mes "Choose "+ getequipname(.@part)+" + "+ getitemname(.@item_req)+",";
mes "^000000------------------";
mes "Your selected design can be upgraded to the equipment limit ^0000ff"+.@max_num_enchant+" the same design, ^000000so far, enhanced ^0000ff"+.@slot_sum+" times^000000, do you want to continue?";
next;if(select("I'll think about it...","Go on.")==1){
mes "[MARS_01]";
mes "Come back next time you need me~";
close;}// anti-hackif(callfunc("F_IsEquipIDHack",.@part,.@equip_id)|| callfunc("F_IsEquipCardHack",.@part,.@card[0],.@card[1],.@card[2],.@card[3])|| callfunc("F_IsEquipRefineHack",.@part,.@equip_refine))
close;if(.@card[3]==0){.@enchant_count=1;.@card[3]=.@item_enchant_id;}elseif(.@card[2]==0){.@enchant_count=2;.@card[2]=.@item_enchant_id;}elseif(.@card[1]==0){.@enchant_count=3;.@card[1]=.@item_enchant_id;}else{
mes "[MARS_01]";
mes "The equipment has reached the upper limit of strengthening Hello!";
close;}
specialeffect2 EF_REPAIRWEAPON;
mes "[MARS_01]";if(.@enchant_count<5)
mes "The first equipment has been upgraded ^990000"+.@enchant_count+" times^000000.";else
mes "For additional performance equipment^990000 ^000000 upgrade.";// never displayed
delitem .@item_req,1;
delequip .@part;
getitem2 .@equip_id,1,1,.@equip_refine,0,.@card[0],.@card[1],.@card[2],.@card[3];
close;}
Question
mizanyan
I was looking into Charleston Crisis equipment and I noted that the echant NPC was outdated, the npc enchants Garment and Armor but not the Legs (22103) and the Shield (28941). I tried to include these two pieces in the npc but with no success. Can anyone help me?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.