Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===== rAthena Script =======================================
- //= Mora Village Enchantment
- //===== By: ==================================================
- //= SuperHulk
- //= Overhall by Akinari
- //===== Current Version: =====================================
- //= 2.0
- //===== Compatible With: =====================================
- //= rAthena SVN
- //===== Description: =========================================
- //= Mora Enchants.
- //===== Additional Comments: =================================
- //= 1.0 First Version. [SuperHulk]
- //= 2.0 Script Rewrite and translation. [Akinari]
- //============================================================
- mora,124,82,4 script Artifact Collector#mora 522,{
- mes "[Artifact Collector]";
- mes "Welcome, I collect ancient items and equipments of Mora and exchange them for better and improved equipment!";
- next;
- mes "[Artifact Collector]";
- mes "At the moment, I am currently looking for the following weapons:";
- mes "^0000FFGolden Rod Staff^000000";
- mes "^0000FFAqua Staff^000000";
- mes "^0000FFCrimson Staff^000000";
- mes "^0000FFForest Staff^000000";
- mes "^0000FFWand of Affection^000000";
- mes "^0000FFMace of Judgement^000000";
- next;
- mes "[Artifact Collector]";
- mes "I can exchange them for their newest and latest equivalent:";
- mes "^0000FFEmpowered Golden Rod Staff^000000";
- mes "^0000FFEmpowered Aqua Staff^000000";
- mes "^0000FFEmpowered Crimson Staff^000000";
- mes "^0000FFEmpowered Forest Staff^000000";
- mes "^0000FFEmpowered Wand of Affection^000000";
- mes "^0000FFEmpowered Mace of Judgement^000000";
- next;
- mes "[Artifact Collector]";
- mes "If you ever have any kind of Mora Coins and you want to get newer and more powerful things, just come find me!";
- next;
- switch(select("Exchange Equipment.:Cancel.")) {
- case 1:
- mes "[Artifact Collector]";
- mes "You have the equipment that I asked for earlier? Awesome!";
- mes "What equipment will you trade to me?";
- next;
- switch(select("Golden Rod Staff.:Aqua Staff.:Crimson Staff.:Forest Staff.:Wand of Affection.:Mace of Judgement.:Cancel.")) {
- case 1:
- set .@item_got,2007;
- set .@item_get,2011;
- break;
- case 2:
- set .@item_got,2008;
- set .@item_get,2012;
- break;
- case 3:
- set .@item_got,2009;
- set .@item_get,2013;
- break;
- case 4:
- set .@item_got,2010;
- set .@item_get,2014;
- break;
- case 5:
- set .@item_got,1657;
- set .@item_get,1660;
- break;
- case 6:
- set .@item_got,16013;
- set .@item_get,16018;
- break;
- case 7:
- break;
- }
- break;
- case 2:
- break;
- }
- if(.@item_got) {
- if(isequipped(.@item_got)) {
- if(getequiprefinerycnt(4) < 7) {
- mes "This item has to be refined to at least +7 in order for me to exchange it.";
- close;
- }
- set .@card3,getequipcardid(4,2);
- set .@card4,getequipcardid(4,3);
- if(.@item_got > 2006 && .@item_got < 2011){
- if((.@card3 != 4713 && .@card3 != 4761) || (.@card4 != 4713 && .@card4 != 4761)) {
- mes "You don't have the correct enchantment on this weapon for me to exchange it!";
- mes "I need this weapon to have ^FF0000"+getitemname(4713)+"^000000 or ^FF0000"+getitemname(4761)+"^000000.";
- close;
- }
- }
- else if(.@item_got == 1657){
- if((.@card3 != 4714 && .@card3 != 4761 && .@card3 != 4723) || (.@card4 != 4714 && .@card4 != 4761 && .@card4 != 4723)) {
- mes "You don't have the correct enchantment on this weapon for me to exchange it!";
- mes "I need this weapon to have ^FF0000"+getitemname(4714)+"^000000, ^FF0000"+getitemname(4761)+"^000000 or ^FF0000"+getitemname(4723)+"^000000.";
- close;
- }
- }
- else {
- if((.@card3 != 4704 && .@card3 != 4767 && .@card3 != 4723) || (.@card4 != 4704 && .@card4 != 4767 && .@card4 != 4723)) {
- mes "You don't have the correct enchantment on this weapon for me to exchange it!";
- mes "I need this weapon to have ^FF0000"+getitemname(4704)+"^000000, ^FF0000"+getitemname(4767)+"^000000 or ^FF0000"+getitemname(4723)+"^000000.";
- close;
- }
- }
- mes "[Artifact Collector]";
- mes "You have a ^FF0000"+getitemname(.@item_got)+"^000000? It is powerful!";
- mes "Are you sure you want to exchange ^FF0000"+getitemname(.@item_got)+"^000000 for ^0000FF"+getitemname(.@item_get) +"^000000?";
- next;
- if(select("Exchange equipment.","Cancel.") == 2) close;
- mes "[Artifact Collector]";
- mes "You want to give me your ^FF0000"+getitemname(.@item_got)+"^000000 Is that what you want?";
- next;
- if(select("Continue the deal.","Cancel the deal.") == 2) close;
- if(!countitem(@item_got))
- {
- mes "[Artifact Collector]";
- mes "Unfortunately, you don't seem to have this item in your inventory or on you...";
- next;
- mes "[Artifact Collector]";
- mes "Return to me when you have gotten your ^FF0000"+getitemname(.@item_got)+"^000000.";
- next;
- mes "[Artifact Collector]";
- mes "Have a good Day!";
- close;
- }
- if(countitem(.@item_got))
- {
- mes "[Artifact Collector]";
- mes "Unfortunately, You have two identical items on you!";
- next;
- mes "[Artifact Collector]";
- mes "I can't really tell which ^FF0000"+getitemname(.@item_got)+"^000000 you want me to exchange.";
- next;
- mes "[Artifact Collector]";
- mes "Put one away and and then return to see me.";
- close;
- }
- getitem .@item_get,1;
- delitem .@item_got,1;
- mes "[Artifact Collector]";
- mes "Thank you for giving me your ^FF0000"+getitemname(.@item_got)+"^000000!";
- mes "In exchange, I can offer you a an improved version of this ancient item:";
- mes "^0000FF"+getitemname(.@item_get)+"^000000.";
- next;
- mes "[Artifact Collector]";
- mes "Thake care of this item, please! Have a good day and don't hesitate to return to see me if you want to exchange another item!";
- close;
- }
- else {
- mes "I need to check for specific enchantments and the refine level. Please equip it for me to do this.";
- close;
- }
- }
- mes "[Artifact Collector]";
- mes "Okay, come back to see me if you ever change your mind and want to exchange an item.";
- close;
- }
- //===========================
- //====ARTIFACT RESEARCHER====
- //===========================
- mora,148,98,5 script Artifact Researcher 521,{
- mes "[Artifact Researcher]";
- mes "Welcome, I can enchant the equipment of certain classes!";
- next;
- mes "[Artifact Researcher]";
- mes "We fairies have powers for specific equipment enchantment. I moved here to sell my services to Rune Knights, Guillotine Crosses, and Rangers.";
- next;
- mes "[Artifact Researcher]";
- mes "Do you want to enchant your equipment? If so, which class would like?";
- set .@class,select("Guillotine Cross.:Ranger.:Rune Knight.:No thank you.");
- switch(.@class) {
- case 1:
- setarray .@itemenchant$[0],"Sapha's ","Nab's ";
- break;
- case 2:
- setarray .@itemenchant$[0],"White Wing ","Black Wing ";
- break;
- case 3:
- setarray .@itemenchant$[0],"Ur's ","Peuz's ";
- break;
- case 4:
- goto L_quit;
- }
- mes "[Artifact Researcher]";
- mes "You want to enchant 3rd class equipment. These items are particularly powerful once enchanted!";
- next;
- mes "[Artifact Researcher]";
- mes "Which type of equipment do you want to enchant?";
- switch(select("Armor.:Footgear.:Garment.:Accessory.:Cancel.")) {
- case 1:
- set .@enchant_type,2;
- switch(.@class) {
- case 1:
- set .@enchant_item,15038;
- set .@itemtype$,"Cloth";
- break;
- case 2:
- set .@enchant_item,15042;
- set .@itemtype$,"Suit";
- break;
- case 3:
- set .@enchant_item,15036;
- set .@itemtype$,"Plate";
- break;
- }
- break;
- case 2:
- set .@enchant_type,6;
- switch(.@class) {
- case 1:
- set .@enchant_item,2477;
- set .@itemtype$,"Shoes";
- break;
- case 2:
- set .@enchant_item,2479;
- set .@itemtype$,"Boots";
- break;
- case 3:
- set .@enchant_item,2475;
- set .@itemtype$,"Greaves";
- break;
- }
- break;
- case 3:
- set .@enchant_type,5;
- switch(.@class) {
- case 1:
- set .@enchant_item,2577;
- set .@itemtype$,"Hood";
- break;
- case 2:
- set .@enchant_item,2580;
- set .@itemtype$,"Manteau";
- break;
- case 3:
- set .@enchant_item,2574;
- set .@itemtype$,"Manteau";
- break;
- }
- break;
- case 4:
- set .@enchant_type,7;
- switch(.@class) {
- case 1:
- set .@enchant_item,2886;
- set .@itemtype$,"Ring";
- break;
- case 2:
- set .@enchant_item,2890;
- set .@itemtype$,"Brooch";
- break;
- case 3:
- set .@enchant_item,2883;
- set .@itemtype$,"Seal";
- break;
- }
- break;
- case 5:
- goto L_quit;
- }
- if (.@enchant_type) {
- if (.@enchant_type == 2) {
- mes "[Artifact Researcher]";
- mes "You want to enchant some armor, I see. The armors I can enchant are ^0000FF"+.@itemenchant$[.@class] +.@itemtype$+"^000000 and ^0000FF"+.@itemenchant$[.@class+1]+.@itemtype$+"^000000.";
- next;
- mes "[Artifact Researcher]";
- mes "This armor can be enchanted a maximum of three times. The first enchantment has a 100% success rate while the second and third time are more difficult to achieve.";
- }
- if (.@enchant_type == 6) {
- mes "[Artifact Researcher]";
- mes "You want to enchant your shoes, I see. The shoes I can enchant are ^0000FF"+.@itemenchant$[.@class] +.@itemtype$+"^000000 and ^0000FF"+.@itemenchant$[.@class+1]+.@itemtype$+"^000000.";
- next;
- mes "[Artifact Researcher]";
- mes "These shoes can be enchanted a maximum of three times. The first enchantment has 100% chance to succeed while the second and third times are much harder to do.";
- next;
- }
- if (.@enchant_type == 5) {
- mes "[Artifact Researcher]";
- mes "You want to enchant your garment, I see. The garments I can enchant are ^0000FF"+.@itemenchant$[.@class]+.@itemtype$+"^000000 and ^0000FF"+.@itemenchant$[.@class+1]+.@itemtype$+"^000000.";
- next;
- mes "[Artifact Researcher]";
- mes "This garment can be enchanted a maximum of three times. The first enchantment has 100% chance to succeed while the second and third times are much harder to do.";
- }
- if (.@enchant_type == 7) {
- mes "[Artifact Researcher]";
- mes "You want to enchant your accessory, I see. The accessories I can enchant are ^0000FF"+.@itemenchant$[.@class]+.@itemtype$+"^000000 and ^0000FF"+.@itemenchant$[.@class+1]+.@itemtype$+"^000000.";
- next;
- mes "[Artifact Researcher]";
- mes "This accessory can be enchanted a maximum of three times. The first enchantment has 100% chance to succeed while the second and third times are much harder to do.";
- }
- mes "[Artifact Researcher]";
- mes "In effect, the second enchantment has a ^FF000060%^000000 chance of success, and if you want a third enchantment it has a ^FF000030%^000000 chance to succeed.";
- next;
- mes "[Artifact Researcher]";
- mes "If your armor is refined to +9, I will suggest two different options before enchantment. It is easier to change the way I enchant equipment that is stronger.";
- next;
- mes "[Artifact Researcher]";
- mes "For each enchantment, service charges are ^0000FF1 Mora Coin^000000 and ^0000FF100,000 Zeny^000000";
- next;
- mes "[Artifact Researcher]";
- mes "It also requires that the piece of equipment is equipped for the enchantment.";
- next;
- mes "[Artifact Researcher]";
- mes "Now, if you could be so kind and tell me which type of equipment you want to me to enchant?";
- switch(select(.@itemenchant$[0]+.@itemtype$+".:"+.@itemenchant$[1]+.@itemtype$+".:Cancel.")) {
- case 1:
- break;
- case 2:
- set .@enchant_item,.@enchant_item+1;
- break;
- case 3:
- goto L_quit;
- }
- mes "[Artifact Researcher]";
- mes "Okay, let's start the enchantment ceremony...";
- mes "So you want to enchant the object ^FF0000"+getitemname(.@enchant_item)+"^000000... Correct?";
- if(select("Start enchantment.","Cancel enchantment.") == 2) {
- goto L_quit;
- }
- mes "[Artifact Researcher]";
- mes "Okay, I will tell you again. Every spell costs ^0000FF1 Mora Coin^000000 and ^0000FF100,000 Zeny^000000.";
- mes "We will now begin the process.";
- next;
- if(countitem(.@enchant_item) > 1)
- {
- mes "==Information==";
- mes "You must have only one of the item to enchant.";
- next;
- mes "==Information==";
- mes "Please remove the duplicates of the item.";
- close;
- }
- if(isequipped(.@enchant_item)) {
- if(.@enchant_type == 7)
- {
- if(getequipid(7) == .@enchant_item) set .@enchant_type,7;
- else if(getequipid(8) == .@enchant_item) set .@enchant_type,8;
- else {
- mes "It doesn't appear that this item is on you. Please equip it.";
- close;
- }
- }
- if(getequiprefinerycnt(.@enchant_type) >= 9) {
- mes "[Artifact Researcher]";
- mes "Your equipment is refined to at least ^FF0000+9^000000.";
- mes "You can then select an option increase the magic strength of your armor.";
- next;
- mes "[Artifact Researcher]";
- mes "I can offer you two options for enchantment. Make your choice.";
- next;
- if(.@enchant_type == 2){
- switch(select("Ability.:Strength.:Cancel.")) {
- case 1:
- mes "[Artifact Researcher]";
- mes "Are you sure you want to choose Ability as your option?";
- next;
- if(select("Of course.","No, I'm thinking.") == 2) {
- goto L_quit;
- }
- switch(.@class) {
- case 1:
- setarray .@enchant_card[0],4750,4751,4752,4753;
- break;
- case 2:
- setarray .@enchant_card[0],4701,4752,4753,4754,4764;
- break;
- case 3:
- setarray .@enchant_card[0],4811,4810,4809,4808,4820,4702,4819,4766,4767,4821,4822,4823,4824,4825;
- break;
- }
- break;
- case 2:
- mes "[Artifact Researcher]";
- mes "Are you sure you want to choose Strength as your option?";
- next;
- if(select("Of course.","No, I'm thinking.") == 2) {
- goto L_quit;
- }
- switch(.@class) {
- case 1:
- setarray .@enchant_card[0],4764,4818;
- break;
- case 2:
- setarray .@enchant_card[0],4720,4721,4722,4750,4751,4752,4832,4833,4834;
- break;
- case 3:
- setarray .@enchant_card[0],4741,4742,4791,4794,4797,4798,4799;
- break;
- }
- break;
- case 3:
- goto L_quit;
- }
- }
- if(.@enchant_type == 5){
- switch(select("Ability.:Strength.:Cancel.")) {
- case 1:
- mes "[Artifact Researcher]";
- mes "Are you sure you want to choose Dodge as your option?";
- next;
- if(select("Of course.","No, I'm thinking.") == 2) {
- goto L_quit;
- }
- switch(.@class) {
- case 1:
- setarray .@enchant_card[0],4762,4762;
- break;
- case 2:
- setarray .@enchant_card[0],4750,4751,4752,4730,4731,4859,4860;
- break;
- case 3:
- setarray .@enchant_card[0],4730,4732,4751,4752,4753,4754;
- break;
- }
- break;
- case 2:
- mes "[Artifact Researcher]";
- mes "Are you sure you want to choose Strength as your option?";
- next;
- if(select("Of course.","No, I'm thinking.") == 2) {
- goto L_quit;
- }
- switch(.@class) {
- case 1:
- setarray .@enchant_card[0],4700,4701,4702,4764,4765,4818;
- break;
- case 2:
- setarray .@enchant_card[0],4700,4701,4702,4704,4819,4766,4811,4810,4809,4808;
- break;
- case 3:
- setarray .@enchant_card[0],4741,4742,4791,4794,4797,4798,4799;
- break;
- }
- break;
- case 3:
- goto L_quit;
- }
- }
- if(.@enchant_type == 6){
- switch(select("Ability.:Strength.:Cancel.")) {
- case 1:
- mes "[Artifact Researcher]";
- mes "Are you sure you want to choose Ability as your option?";
- next;
- if(select("Of course.","No, I'm thinking.") == 2) {
- goto L_quit;
- }
- switch(.@class) {
- case 1:
- setarray .@enchant_card[0],4801,4802,4720,4796,4700,4792,4793,4787;
- break;
- case 2:
- setarray .@enchant_card[0],4720,4787,4796,4801,4802,4792;
- break;
- case 3:
- setarray .@enchant_card[0],4801,4802,4720,4796,4700,4792,4793;
- break;
- }
- break;
- case 2:
- mes "[Artifact Researcher]";
- mes "Are you sure you want to choose Strength as your option?";
- next;
- if(select("Of course.","No, I'm thinking.") == 2) {
- goto L_quit;
- }
- switch(.@class) {
- case 1:
- setarray .@enchant_card[0],4702,4703,4819,4766,4767,4811,4810,4809;
- break;
- case 2:
- setarray .@enchant_card[0],4702,4752,4754,4764,4818;
- break;
- case 3:
- setarray .@enchant_card[0],4797,4798,4799,4792,4740,4741,4742;
- break;
- }
- break;
- case 3:
- goto L_quit;
- }
- }
- }
- else {
- // Classes (1: Guillotine Cross - 2: Ranger - 3: Rune Knight)
- switch (.@class) {
- case 1:
- if(.@enchant_type == 2){
- if(.@enchant_item == 15038)
- setarray .@enchant_card[0],4700,4701,4702,4703,4750,4751,4752,4753,4754,4764,4765,4817,4818;
- else
- setarray .@enchant_card[0],4700,4701,4702,4703,4819,4766,4767,4808,4809,4810,4811,4820;
- }
- if(.@enchant_type == 5)
- setarray .@enchant_card[0],4730,4731,4732,4733,4750,4751,4752,4753,4754,4859,4860;
- if(.@enchant_type == 6)
- setarray .@enchant_card[0],4700,4730,4740,4720,4796,4797,4801,4802,4791,4792,4787,4788;
- break;
- case 2:
- if(.@enchant_type == 2)
- setarray .@enchant_card[0],4700,4701,4702,4750,4751,4752,4753,4754,4764,4765,4818,4817;
- if(.@enchant_type == 5)
- setarray .@enchant_card[0],4750,4751,4752,4753,4730,4731,4732,4733,4762,4763,4859,4860;
- if(.@enchant_type == 6)
- setarray .@enchant_card[0],4792,4793,4787,4788,4720,4721,4740,4741,4730,4731,4700,4701,4750,4751,4796,4797,4801,4802;
- break;
- case 3:
- if(.@enchant_type == 2){
- if(.@enchant_item == 15036)
- setarray .@enchant_card[0],4791,4792,4793,4740,4741,4742,4743,4797,4798,4799;
- else
- setarray .@enchant_card[0],4791,4796,4797;
- }
- if(.@enchant_type == 5){
- if(.@enchant_item == 2574)
- setarray .@enchant_card[0],4700,4730,4731,4732,4750,4751,4752,4762,4763;
- else
- setarray .@enchant_card[0],4730,4731,4732,4733,4750,4751;
- }
- if(.@enchant_type == 6){
- if(.@enchant_item == 2475)
- setarray .@enchant_card[0],4700,4730,4720,4740,4801,4802,4796,4797,4787,4788,4792,4793;
- else
- setarray .@enchant_card[0],4700,4730,4720,4740,4787;
- }
- break;
- }
- }
- set .@card2,getequipcardid(.@enchant_type,1);
- set .@card3,getequipcardid(.@enchant_type,2);
- set .@card4,getequipcardid(.@enchant_type,3);
- if(.@card2 >= 1) {
- mes "[Artifact Researcher]";
- mes "I enchanted this equipment three times. I'm really sorry, but I can't work on equipment already at its maximum enchantment.";
- close;
- }
- }
- else
- {
- mes "[Artifact Researcher]";
- mes "Can you put the ^FF0000"+getitemname(.@enchant_item)+"^000000 on you? If not, I can't make the enchantment. Thank you.";
- close;
- }
- if(.@card3){
- if (.@enchant_type == 7 || .@enchant_type == 8){
- mes "I can't enchant this item more than two times. Come back with something else.";
- close;
- }
- set .@chance,30;
- }
- else if(.@card4 >=1) {
- set .@chance,60;
- if (.@enchant_type == 7 || .@enchant_type == 8)
- setarray .@enchant_card[0],4700,4740,4730,4720,4793,4788,4802,4797;
- }
- else {
- set .@chance,100;
- if (.@enchant_type == 7 || .@enchant_type == 8)
- setarray .@enchant_card[0],4700,4740,4730,4720,4792,4787,4801,4796;
- }
- set .@cardenchant,.@enchant_card[rand(0,getarraysize(.@enchant_card)-1)];
- set .@enchant_refine,getequiprefinerycnt(.@enchant_type);
- set .@ccard,getequipcardid(.@enchant_type,0);
- callfunc "EnchantItem",1,100000,.@chance,.@enchant_item,.@enchant_refine,.@cardenchant,.@card4,.@card3,.@ccard;
- }
- L_quit:
- mes "[Artifact Researcher]";
- mes "Okay, Come back to me if you have need of my services.";
- next;
- mes "[Artifact Researcher]";
- mes "Have a good day!~";
- close;
- }
- mora,99,93,5 script Artifact Crafter 495,{
- mes "[Artifact Crafter]";
- mes "Hi, young adventurer. You may have already heard of me. I am an enchanter of Mora.";
- next;
- mes "[Artifact Crafter]";
- mes "If you need to enchant a weapon or equipment, I can help you.";
- next;
- mes "[Artifact Crafter]";
- mes "Is that what you're here for? What kind of equipment would you like to enchant?";
- next;
- switch(select("Weapon.:Armor.:Accessory.:Footgear.:Cancel.")) {
- case 1:
- set .@enchant_type,4;
- set .@enchant_item,2007;
- set .@itemtype$,"Staff";
- break;
- case 2:
- set .@enchant_type,2;
- set .@enchant_item,15025;
- set .@itemtype$,"Robe";
- break;
- case 3:
- set .@enchant_item,2859;
- set .@itemtype$,"Orb";
- break;
- case 4:
- set .@enchant_type,6;
- set .@enchant_item,2467;
- set .@itemtype$,"Shoes";
- break;
- case 5:
- mes "[Artifact Crafter]";
- mes "Okay, Don't hesitate to come back to me if you ever need my services.";
- next;
- mes "[Artifact Crafter]";
- mes "Have a good day!";
- close;
- }
- mes "[Artifact Crafter]";
- mes "Before I ask what equipment you want to enchant. I have to give you some information.";
- next;
- mes "[Artifact Crafter]";
- mes "You must have the equipment to be enchanted equiped.";
- mes "You also can't MAKE the enchantment succeed. It is random.";
- next;
- mes "[Artifact Crafter]";
- mes "Don't worry. I will tell you again before the enchantment starts.";
- next;
- mes "[Artifact Crafter]";
- mes "So, which equipment do you want me to enchant?";
- next;
- switch(select("Golden Rod "+.@itemtype$+".:Aqua "+.@itemtype$+".:Crimson "+.@itemtype$+".:Forest "+.@itemtype$+".:Cancel.")) {
- case 1:
- break;
- case 2:
- set .@enchant_item,.@enchant_item+1;
- break;
- case 3:
- set .@enchant_item,.@enchant_item+2;
- break;
- case 4:
- set .@enchant_item,.@enchant_item+3;
- break;
- case 5:
- mes "[Artifact Crafter]";
- mes "Okay, Don't hesitate to come back to me if you ever need my services.";
- next;
- mes "[Artifact Crafter]";
- mes "Have a good day!";
- close;
- }
- mes "[Artifact Crafter]";
- mes "Very good, we can now start the enchantment process...";
- mes "So, You want to enchant the item ^FF0000"+getitemname(.@enchant_item)+"^000000... That is a great choice.";
- next;
- mes "[Artifact Crafter]";
- mes "The enchantment is random. You can not choose the statistics that affect your equipment.";
- next;
- mes "[Artifact Crafter]";
- mes "So I have to ask you this before you start.";
- mes "Will you proceed with the enchantment?";
- next;
- if(select("Enchant Equipment.","Don't enchant equipment.") == 1) {
- mes "[Artifact Crafter]";
- mes "I also forgot to specify that each spell will cost a low amount of ^0000FF5 Mora Coin^000000.";
- mes "Lets start the enchantment process now...";
- next;
- if(countitem(.@enchant_item) > 1)
- {
- mes "==Information==";
- mes "You must have only one of the item to enchant.";
- next;
- mes "==Information==";
- mes "Please remove the duplicates of the item.";
- close;
- }
- if(isequipped(.@enchant_item)) {
- if(.@enchant_item == 2859 || .@enchant_item == 2860 || .@enchant_item == 2861 || .@enchant_item == 2862)
- {
- if(.@enchant_item == 2859) {
- if(getequipid(7) == 2859) set .@enchant_type,7;
- else set.@enchant_type,8;
- }
- if(.@enchant_item == 2860) {
- if(getequipid(7) == 2860) set .@enchant_type,7;
- else set.@enchant_type,8;
- }
- if(.@enchant_item == 2861) {
- if(getequipid(7) == 2861) set .@enchant_type,7;
- else set.@enchant_type,8;
- }
- if(.@enchant_item == 2862) {
- if(getequipid(7) == 2862) set .@enchant_type,7;
- else set.@enchant_type,8;
- }
- }
- setarray .@enchant_card[0],4801,4802,4795,4796,4710,4711,4713,4720,4721,4722,4760,4761,4785,4786;
- set .@card2,getequipcardid(.@enchant_type,1);
- set .@card3,getequipcardid(.@enchant_type,2);
- set .@card4,getequipcardid(.@enchant_type,3);
- if(.@card2) {
- mes "[Artifact Crafter]";
- mes "I enchanted this equipment three times. I'm really sorry, but I can't work on equipment already at its maximum enchantment.";
- close;
- }
- }
- else
- {
- mes "[Artifact Crafter]";
- mes "Can you put the ^FF0000"+getitemname(.@enchant_item)+"^000000 on you? If not, I can't make the enchantment. Thank you.";
- close;
- }
- if(.@card3) {
- if(.@enchant_type == 4) {
- mes "I can't enchant this item more than two times. Come back with something else.";
- close;
- }
- set .@chance,30;
- }
- else if(.@card4)
- set .@chance,60;
- else
- set .@chance,100;
- set .@cardenchant,.@enchant_card[rand(0,getarraysize(.@enchant_card)-1)];
- set .@enchant_refine,getequiprefinerycnt(.@enchant_type);
- set .@ccard,getequipcardid(.@enchant_type,0);
- callfunc "EnchantItem",5,0,.@chance,.@enchant_item,.@enchant_refine,.@cardenchant,.@card4,.@card3,.@ccard;
- }
- mes "[Artifact Crafter]";
- mes "Okay, Don't hesitate to come back to me if you ever need my services.";
- next;
- mes "[Artifact Crafter]";
- mes "Have a good day!";
- close;
- }
- mora,98,66,7 script Master of Relics 518,{
- mes "[Master of Relics]";
- mes "Hello to you, if you are a clergymen then you are in the right place.";
- next;
- mes "[Master of Relics]";
- mes "I am capable of enchanting a certain number of items, if you are interested.";
- next;
- mes "[Master of Relics]";
- mes "Which item type do you want me to enchant?";
- next;
- switch(select("Weapon.:Armor.:Footgear.:Garment.:Other.:Cancel.")) {
- case 1:
- set .@enchant_type,4;
- setarray .@enchantlist[0],1657,16013;
- setarray .@enchantlist$[0],"Wand of Affection","Mace of Judgement";
- break;
- case 2:
- set .@enchant_type,2;
- setarray .@enchantlist[0],15029,15030;
- setarray .@enchantlist$[0],"Robe of Affection","Robe of Judgement";
- break;
- case 3:
- set .@enchant_type,6;
- setarray .@enchantlist[0],2471,2472;
- setarray .@enchantlist$[0],"Shoes of Affection","Shoes of Judgement";
- break;
- case 4:
- set .@enchant_type,5;
- setarray .@enchantlist[0],2569,2570;
- setarray .@enchantlist$[0],"Shawl of Affection","Shawl of Judgement";
- break;
- case 5:
- setarray .@enchantlist[0],2156,2864,2865,2866;
- setarray .@enchantlist$[0],"Bible of Promise","Light of Cure","Seal of Cathedral","Ring of Archbishop";
- break;
- case 6:
- mes "[Master of Relics]";
- mes "If you ever need me, you know where I am.";
- next;
- mes "[Master of Relics]";
- mes "Have a good day!";
- close;
- }
- mes "[Master of Relics]";
- mes "Before I ask what equipment you want to enchant. I have to give you some information.";
- next;
- mes "[Master of Relics]";
- mes "You must have the equipment to be enchanted equiped.";
- mes "You also can't MAKE the enchantment succeed. It is random.";
- next;
- mes "[Master of Relics]";
- mes "Don't worry. I will tell you again before the enchantment starts.";
- next;
- mes "[Master of Relics]";
- mes "So, which equipment do you want me to enchant?";
- next;
- while(.@i < getarraysize(.@enchantlist$)){
- set .@menu$, .@menu$ + ":" + .@enchantlist$[.@i];
- .@i++;
- }
- set .@menu$, .@menu$ + ":Cancel";
- set .@enchant_item,.@enchantlist[select(.@menu$)-2];
- if(.@enchant_item) {
- mes "[Master of Relics]";
- mes "Okay, we'll start the enchantment ceremony.";
- mes "So you want to enchant the equipment ^FF0000"+getitemname(.@enchant_item)+"^000000. Correct?";
- next;
- mes "[Master of Relics]";
- mes "So, I have to ask you this before we start.";
- mes "Are you sure you wish to proceed with this enchantment?";
- next;
- if(select("Commence enchantment.","Cancel enchantment.") == 1) {
- mes "[Master of Relics]";
- mes "I also forgot to tell you, each spell costs ^0000FF5 Mora Coin^000000.";
- mes "So with that, we will begin the process.";
- next;
- if(countitem(.@enchant_item) > 1)
- {
- mes "==Information==";
- mes "You must have only one of the item to enchant.";
- next;
- mes "==Information==";
- mes "Please remove the duplicates of the item.";
- close;
- }
- if(isequipped(.@enchant_item)) {
- // Bible of Promise
- if(.@enchant_item == 2156) {
- set .@enchant_type,3;
- setarray .@enchant_card[0],4766,4740,4710,4711,4720,4721,4799,4764;
- }
- // Light of Cure
- if(.@enchant_item == 2864) {
- if(getequipid(7) == 2864) set .@enchant_type,7;
- else set.@enchant_type,8;
- setarray .@enchant_card[0],4710,4711,4799,4720,4721,4740,4741,4766,4803;
- }
- // Seal of Cathedral
- if(.@enchant_item == 2865) {
- if(getequipid(7) == 2865) set .@enchant_type,7;
- else set.@enchant_type,8;
- setarray .@enchant_card[0],4720,4721,4740,4741,4711,4788,4799,4766,4804;
- }
- // Ring of Archbishop
- if(.@enchant_item == 2866) {
- if(getequipid(7) == 2866) set .@enchant_type,7;
- else set.@enchant_type,8;
- setarray .@enchant_card[0],4720,4721,4711,4740,4741,4766,4805,4788,4799;
- }
- // Wand of Affection
- if(.@enchant_item == 1657)
- setarray .@enchant_card[0],4801,4740,4741,4710,4711,4714,4720,4721,4760;
- // Mace of Judgement
- if(.@enchant_item == 16013)
- setarray .@enchant_card[0],4720,4721,4767,4700,4701,4702,4703,4704,4740,4741;
- // Shoes of Affection
- if(.@enchant_item == 2471)
- setarray .@enchant_card[0],4720,4721,4710,4711,4766,4788,4799;
- // Shoes of Judgement
- if(.@enchant_item == 2472)
- setarray .@enchant_card[0],4721,4722,4723,4710,4711,4788,4766;
- // Robe of Affection
- if(.@enchant_item == 15029)
- setarray .@enchant_card[0],4720,4721,4722,4710,4711,4766,4703,4764,4799,4788;
- // Robe of Judgement
- if(.@enchant_item == 15030)
- setarray .@enchant_card[0],4720,4721,4710,4711,4766,4764,4799,4788;
- // Shawl of Affection
- if(.@enchant_item == 2569)
- setarray .@enchant_card[0],4720,4721,4710,4711,4788,4764,4799;
- // Shawl of Judgement
- if(.@enchant_item == 2570)
- setarray .@enchant_card[0],4720,4721,4710,4711,4799;
- set .@card3,getequipcardid(.@enchant_type,2);
- set .@card4,getequipcardid(.@enchant_type,3);
- if(.@card2) {
- mes "[Master of Relics]";
- mes "I enchanted this equipment three times. I'm really sorry, but I can't work on equipment already at its maximum enchantment.";
- close;
- }
- }
- else
- {
- mes "[Master of Relics]";
- mes "Could you please equip the object? It is much easier to enchant that way.";
- close;
- }
- if(.@card3) {
- if(.@enchant_type == 4 || (.@enchant_item > 2863 && .@enchant_item < 2867)) {
- mes "I can't enchant this item more than two times. Come back with something else.";
- close;
- }
- set .@chance,30;
- }
- else if(.@card4)
- set .@chance,60;
- else
- set .@chance,100;
- set .@cardenchant,.@enchant_card[rand(0,getarraysize(.@enchant_card)-1)];
- set .@enchant_refine,getequiprefinerycnt(.@enchant_type);
- set .@ccard,getequipcardid(.@enchant_type,0);
- callfunc "EnchantItem",5,0,.@chance,.@enchant_item,.@enchant_refine,.@cardenchant,.@card4,.@card3,.@ccard;
- }
- }
- mes "[Master of Relics]";
- mes "If you ever need me, you know where I am.";
- next;
- mes "[Master of Relics]";
- mes "Have a good day!";
- close;
- }
- mora,152,97,4 script Guardian of Power#Maset 515,{
- mes "[Guardian of Power]";
- mes "Welcome, I am the Guardian of Power";
- mes "We have equipment in Mora that you will find nowhere else.";
- next;
- mes "[Guardian of Power]";
- mes "We sell each equipment for ^0000FF10 Mora Coin^000000";
- mes "Would you take a look at our collection?";
- next;
- if(select("Look at equipment","Cancel.") == 1) {
- mes "[Guardian of Power]";
- mes "So, here are the sets of equipment that I have at the moment. Please take your time to look.";
- next;
- switch(select("Ur's Set.:Peuz's Set.:White Wing Set.:Black Wing Set.:Sapha Set.:Nab Set.:Cancel.")) {
- case 1:
- mes "[Guardian of Power]";
- mes "Ur's Set, specialized for Rune Knights is an excellent choice.";
- setarray .@itemlist$[0],"Ur's Greave.","Ur's Manteau.","Ur's Plate.","Ur's Seal.";
- setarray .@itemlist[0],2475,2574,15036,2883;
- break;
- case 2:
- mes "[Guardian of Power]";
- mes "Peuz's Set, specialized for Rune Knights is an excellent choice.";
- setarray .@itemlist$[0],"Peuz's Greave.","Peuz's Manteau.","Peuz's Plate.","Peuz's Seal.";
- setarray .@itemlist[0],2476,2575,15037,2884;
- break;
- case 3:
- mes "[Guardian of Power]";
- mes "White Wing Set, specialized for Rangers is an excellent choice.";
- setarray .@itemlist$[0],"White Wing Boots.","White Wing Manteau.","White Wing Suit.","White Wing Brooch.";
- setarray .@itemlist[0],2479,2580,15042,2890;
- break;
- case 4:
- mes "[Guardian of Power]";
- mes "Black Wing Set, specialized for Rangers is an excellent choice.";
- setarray .@itemlist$[0],"Black Wing Boots.","Black Wing Manteau.","Black Wing Suit.","Black Wing Brooch.";
- setarray .@itemlist[0],2480,2581,15043,2891;
- break;
- case 5:
- mes "[Guardian of Power]";
- mes "Sapha Set, specialized for Guillotine Crosses is an excellent choice.";
- setarray .@itemlist$[0],"Sapha Shoes.","Sapha Hood.","Sapha Cloth.","Sapha Ring.";
- setarray .@itemlist[0],2477,2577,15038,2886;
- break;
- case 6:
- mes "[Guardian of Power]";
- mes "Nab Set, specialized for Guillotine Crosses is an excellent choice.";
- setarray .@itemlist$[0],"Nab Shoes.","Nab Hood.","Nab Cloth.","Nab Ring.";
- setarray .@itemlist[0],2478,2578,15039,2887;
- break;
- case 7:
- goto L_quit;
- }
- }
- mes "To get the full bonus. You must buy all the 4 piece of equipment :";
- mes "^0000FF"+.@itemlist$[0]+"^000000";
- mes "^0000FF"+.@itemlist$[1]+"^000000";
- mes "^0000FF"+.@itemlist$[2]+"^000000";
- mes "^0000FF"+.@itemlist$[3]+"^000000";
- next;
- mes "[Guardian of Power]";
- mes "So you want to buy one of these piece of equipment for ^0000FF10 Mora Coins^000000?";
- next;
- mes "[Guardian of Power]";
- mes "Which item would you like?";
- next;
- while(.@i < 4){
- set .@menu$, .@menu$ + ":" + .@itemlist$[.@i];
- .@i++;
- }
- set .@menu$, .@menu$ + ":Cancel";
- set @guardian_item,.@itemlist[select(.@menu$)-2];
- if(@guardian_item) {
- mes "[Guardian of Power]";
- mes "Are you sure you want to purchase the following equipment :";
- mes "^FF0000"+getitemname(@guardian_item)+"^000000";
- mes "for ^0000FF10 Mora Coins^000000?";
- next;
- if(select("Purchase equipment.","Cancel.") == 1) {
- if(countitem(6380) >=10) {
- delitem 6380,10;
- getitem @guardian_item,1;
- mes "[Guardian of Power]";
- mes "Here is your ^FF0000"+getitemname(@guardian_item)+"^000000!";
- mes "Take care now.";
- next;
- mes "[Guardian of Power]";
- mes "It was a pleasure doing business with you. If you ever want more equipment, do not hesitate to come back.";
- next;
- mes "[Guardian of Power]";
- mes "Have a good day!";
- close;
- }
- else
- {
- mes "[Guardian of Power]";
- mes "You do not seem to have enough ^0000FFMora Coin^000000 to pay for the equipment.";
- mes "Check your pockets before returning to buy equipment.";
- next;
- mes "[Guardian of Power]";
- mes "Come back when you have enough ^0000FFMora Coins^000000.";
- mes "Have a good day!";
- close;
- }
- }
- }
- L_quit:
- mes "[Guardian of Power]";
- mes "Okay, come back when you want if you ever need equipment.";
- next;
- mes "[Guardian of Power]";
- mes "Good journey to you, adventurer~";
- close;
- }
- mora,105,75,4 script Guardian of Artifacts 495,{
- mes "[Guardian of Artifacts]";
- mes "Welcome! If you like using magic you are in the right place.";
- mes "I sell magical equipment ^0000FF10 Mora Coins^000000 each.";
- next;
- mes "However, I can only give you a random equipment piece from the type you choose.";
- next;
- set .@type,select("Staff.:Shoes.:Robe.:Accessory.:Cancel.");
- switch(.@type) {
- case 1:
- setarray .@itemlist[0],2007,2008,2009,2010;
- set .@type$,"Staff";
- break;
- case 2:
- setarray .@itemlist[0],2467,2468,2469,2470;
- set .@type$,"Shoe";
- break;
- case 3:
- setarray .@itemlist[0],15025,15026,15027,15028;
- set .@type$,"Robe";
- break;
- case 4:
- setarray .@itemlist[0],2859,2860,2861,2862;
- set .@type$,"Orb";
- break;
- case 5:
- mes "[Guardian of Artifacts]";
- mes "If you have need of anything, you know where to find me.";
- mes "Have a good day!";
- close;
- }
- mes "[Guardian of Artifacts]";
- mes "Here is a list of items you can get from that type.";
- mes "^0000FFGolden Rod "+.@type$+"^000000";
- mes "^0000FFAqua "+.@type$+"^000000";
- mes "^0000FFCrimson "+.@type$+"^000000";
- mes "^0000FFForest "+.@type$+"^000000";
- next;
- mes "[Guardian of Artifacts]";
- mes "Are you sure you want to proceed with the purchase of this equipment type?";
- next;
- if(select("Continue with Purchase.","Cancel.") == 1){
- if(countitem(6380) >=10) {
- set @artifact_item,.@itemlist[rand(0,getarraysize(.@itemlist)-1)];
- delitem 6380,10;
- getitem @artifact_item,1;
- mes "[Guardian of Artifacts]";
- mes "Thank you for your purchase. You got a ^FF0000"+getitemname(@artifact_item)+"^000000.";
- mes "Take care and remember, this item is powerful and difficult to control!";
- next;
- mes "[Guardian of Artifacts]";
- mes "Have a good day, Return to me if you want to get another piece of equipment!";
- close;
- }
- else
- {
- mes "[Guardian of Artifacts]";
- mes "Are you trying to rob me?! It seems that you don't have enough ^0000FF10 Mora Coins^000000 to obtain this item.";
- mes "Return to me when you have enough money to buy the item!";
- close;
- }
- }
- mes "[Guardian of Artifacts]";
- mes "If you have need of anything, you know where to find me.";
- mes "Have a good day!";
- close;
- }
- mora,87,88,6 script Keeper of Secrets 495,{
- mes "[Keeper of Secrets]";
- mes "Welcome, if you are someone from the church of Prontera, you will be delighted with the equipment I sell.";
- mes "Each item that I sell will cost you ^0000FF10 Mora Coins^000000.";
- next;
- mes "However, I can only give you a random equipment piece from the type you choose.";
- set .@type,select("Weapon.:Shoes.:Robe.:Manteau.:Other.:Cancel.");
- switch(.@type) {
- case 1:
- setarray .@itemlist[0],1657,16013;
- setarray .@itemlist$[0],"Wand of Affection.","Mace of Judgement.";
- set .@type$,"Weapon";
- break;
- case 2:
- setarray .@itemlist[0],2471,2472;
- setarray .@itemlist$[0],"Shoes of Affection.","Shoes of Judgement.";
- set .@type$,"Shoe";
- break;
- case 3:
- setarray .@itemlist[0],15029,15030;
- setarray .@itemlist$[0],"Robe of Affection.","Robe of Judgement.";
- set .@type$,"Robe";
- break;
- case 4:
- setarray .@itemlist[0],2569,2570;
- setarray .@itemlist$[0],"Shawn of Affection.","Shawn of Judgement";
- set .@type$,"Manteau";
- break;
- case 5:
- setarray .@itemlist[0],2156,2864,2865,2866;
- setarray .@itemlist$[0],"Bible of Promise.","Light of Cure.","Seal of Cathedral.","Ring of Arch Bishop.";
- set .@type$,"Other";
- break;
- while(.@i < getarraysize(.@itemlist)){
- if(countitem(.@itemlist[.@i])) {
- mes "I can't give you another one of these items while you have the same type already in your inventory.";
- next;
- mes "Would you like to trade in your current accessory for ^0000FF10 Mora Coins^000000?";
- if(select("Sure.","Nah.") == 1){
- mes "You will lose any enchantments you have on this accessory. Are you positive you want to trade it in?";
- if(select("Yes.","No.") == 1){
- next;
- delitem .@itemlist[.@i],1;
- getitem 6380,10;
- mes "All done!";
- }
- }
- close;
- }
- .@i++;
- }
- break;
- case 6:
- mes "[Keeper of Secrets]";
- mes "Okay, return to me if you change your mind~";
- close;
- }
- next;
- mes "[Keeper of Secrets]";
- mes "Here is a list of items you can get from that type.";
- if(.@type == 5) {
- mes "^0000FF"+.@itemlist$[0]+"^000000";
- mes "^0000FF"+.@itemlist$[1]+"^000000";
- mes "^0000FF"+.@itemlist$[2]+"^000000";
- mes "^0000FF"+.@itemlist$[3]+"^000000";
- }
- else{
- mes "^0000FF"+.@itemlist$[0]+"^000000";
- mes "^0000FF"+.@itemlist$[1]+"^000000";
- }
- next;
- mes "[Keeper of Secrets]";
- mes "Are you sure you want to buy something of the ^0000FF"+.@type$+"^000000 category for ^0000FF10 Mora Coins^000000?";
- if(select("Buy.","No.") == 1) {
- if(countitem(6380) >=10) {
- set @keepersecret_item,.@itemlist[rand(0,getarraysize(.@itemlist)-1)];
- delitem 6380,10;
- getitem @keepersecret_item,1;
- mes "[Keeper of Secrets]";
- mes "Thank you for purchasing ^FF0000"+getitemname(@keepersecret_item)+"^000000!";
- mes "If you need to get more items, don't hesitate to return to see me.";
- next;
- mes "[Keeper of Secrets]";
- mes "Have a good day!";
- close;
- }
- else {
- mes "[Keeper of Secrets]";
- mes "Unfortunately you do not seem to have enough Mora Coin for this. Return to me when you have enough money!";
- close;
- }
- }
- mes "[Keeper of Secrets]";
- mes "Okay, return to me if you change your mind~";
- close;
- }
- mora,134,166,3 script Bulberry Westhood 509,{
- mes "[Bulberry Westhood]";
- mes "Yo, Welcome to the clan of West Mora! The artist's corner!";
- next;
- mes "[Bulberry Westhood]";
- mes "Here, You will find many nice things. Go explore the village talk a little with all the people and you will learn things.";
- next;
- mes "[Bulberry Westhood]";
- mes "Me, for example, I can enchant the Loki Muffler. If you have one, I can do it for 5 Mora Coin.";
- next;
- mes "[Bulberry Westhood]";
- mes "So, you have a Loki Muffler on you?";
- next;
- switch(select("Enchant my Loki Muffler.:Cancel.")) {
- case 1:
- mes "[Bulberry Westhood]";
- mes "You want to enchant your Loki's Muffler! Cool, my brother.";
- next;
- mes "[Bulberry Westhood]";
- mes "That will cost you ^0000FF5 Mora Coins^000000.";
- next;
- mes "[Bulberry Westhood]";
- mes "This enchantment will affect 3 slots randomly.";
- mes "If you ever need something enchanted, I can always enchant your muffler.";
- next;
- mes "[Bulberry Westhood]";
- mes "You want to start enchanting the Loki Muffler?";
- next;
- switch(select("Start the enchantment.:Cancel.")) {
- case 1:
- if(countitem(2568) > 1)
- {
- mes "==Information==";
- mes "You must have only one of the item to enchant.";
- next;
- mes "==Information==";
- mes "Please remove the duplicates of the item.";
- close;
- }
- if(isequipped(2568))
- {
- if(countitem(6380) >=5)
- {
- setarray .@enchant_card[0],4766,4767,4760,4761,4762,4763,4764,4765;
- setarray .@enchant_card2[0],4720,4721,4710,4711,4750,4751;
- setarray .@enchant_card3[0],4700,4701,4730,4731,4740,4741;
- set .@enchant_card1,.@enchant_card[rand(0,getarraysize(.@enchant_card)-1)];
- set .@enchant_card2,.@enchant_card2[rand(0,getarraysize(.@enchant_card2)-1)];
- set .@enchant_card3,.@enchant_card3[rand(0,getarraysize(.@enchant_card3)-1)];
- mes "[Bulberry Westhood]";
- mes "Okay, I am ready to start...";
- next;
- specialeffect EF_SANCTUARY;
- delitem 6380,5;
- delitem 2568,1;
- getitem2 2568, 1, 1, 0, 0, 0, .@enchant_card3, .@enchant_card2, .@enchant_card1;
- mes "[Bulberry Westhood]";
- mes "Done, here's your new Loki Muffler! I hope we are cool!";
- next;
- mes "[Bulberry Westhood]";
- mes "Return to me if you want another Loki Muffler enchanted!";
- next;
- mes "[Bulberry Westhood]";
- mes "That is really cool man! Peace~";
- close;
- }
- else
- {
- mes "[Bulberry Westhood]";
- mes "Hey, It will take 5 Mora Coin for me to enchant the Loki Muffler my brother.";
- close;
- }
- }
- mes "[Bulberry Westhood]";
- mes "You should wear the Loki Muffler on you.";
- close;
- case 2:
- break;
- }
- case 2:
- break;
- }
- mes "[Bulberry Westhood]";
- mes "Yoooo! How's it going my brother! Return to me if you want to enchant your Loki Muffler!";
- close;
- }
- mora,105,176,6 script Master Tailor 509,{
- mes "[Master Tailor]";
- mes "Hey, You are new to Mora right? I have not seen your face around here before.";
- next;
- mes "[Master Tailor]";
- mes "You probably have heard of the Army Padding?";
- next;
- mes "[Master Tailor]";
- mes "It is a terrible item! I can sell it for 1 Mora coin and you can later enchant it!";
- next;
- mes "[Master Tailor]";
- mes "So, make your choice.";
- next;
- switch(select("Buy Army Padding.:Enchant Army Padding.:Quit.")) {
- case 1:
- mes "[Master Tailor]";
- mes "So, what if I told you that the price was 1 Mora Coin, then what would you say?";
- mes "You want to buy 1 Army Padding?";
- next;
- switch(select("Buy the Army Padding.:Don't buy it.")) {
- case 1:
- if(countitem(6380) >=1)
- {
- delitem 6380,1;
- getitem 15024,1;
- mes "[Master Tailor]";
- mes "Thank you for your purchase! Come back anytime you want another item enchanted!";
- close;
- }
- else
- {
- mes "[Master Tailor]";
- mes "You don't have 1 Mora Coin...";
- close;
- }
- case 2:
- break;
- }
- case 2:
- mes "[Master Tailor]";
- mes "You want to enchant your Army Padding! That's a great idea.";
- next;
- mes "[Master Tailor]";
- mes "The cost to enchant the Army Padding is ^0000FF5 Mora Coin^000000.";
- next;
- mes "[Master Tailor]";
- mes "This spell will affect 3 slots automatically with random stats.";
- mes "If you ever need something enchanted, do not hesitate to come to me. I can enchant anything.";
- next;
- mes "[Master Tailor]";
- mes "Are you ready to proceed with enchanting the Army Padding?";
- next;
- switch(select("Commence enchantment.:Cancel.")) {
- case 1:
- if(countitem(15024) > 1)
- {
- mes "==Information==";
- mes "You must have only one of the item to enchant.";
- next;
- mes "==Information==";
- mes "Please remove the duplicates of the item.";
- close;
- }
- if(isequipped(15024))
- {
- if(countitem(6380) >=5)
- {
- setarray .@enchant_card[0],4766,4767,4760,4761,4762,4763,4764,4765;
- setarray .@enchant_card2[0],4720,4721,4710,4711,4750,4751;
- setarray .@enchant_card3[0],4700,4701,4730,4731,4740,4741;
- set .@enchant_card1,.@enchant_card[rand(0,getarraysize(.@enchant_card)-1)];
- set .@enchant_card2,.@enchant_card2[rand(0,getarraysize(.@enchant_card2)-1)];
- set .@enchant_card3,.@enchant_card3[rand(0,getarraysize(.@enchant_card3)-1)];
- mes "[Master Tailor]";
- mes "Okay, I am ready for us to start!";
- next;
- specialeffect EF_SANCTUARY;
- delitem 6380,5;
- delitem 15024,1;
- getitem2 15024, 1, 1, 0, 0, 0, .@enchant_card3, .@enchant_card2, .@enchant_card1;
- mes "[Master Tailor]";
- mes "Voila, Your new armor! I hope it was what you wanted!";
- next;
- mes "[Master Tailor]";
- mes "Don't hesitate to return to me if you need something enchanted.";
- next;
- mes "[Master Tailor]";
- mes "Have a good day!";
- close;
- }
- else
- {
- mes "[Master Tailor]";
- mes "You need to equip the armor so I can procede with the enchantment.";
- close;
- }
- }
- mes "[Master Tailor]";
- mes "You need to equip the armor so I can proceed with the enchantment.";
- close;
- case 2:
- break;
- }
- case 3:
- break;
- }
- mes "[Master Tailor]";
- mes "Okay, return if you need anything at all!";
- close;
- }
- mora,123,177,4 script Pendant Crafter 509,{
- mes "[Pendant Crafter]";
- mes "Hello and welcome young adventurer.";
- next;
- mes "[Pendant Crafter]";
- mes "I can enchant the Pendant of Guardian. This accessory let's you come back here at any time.";
- next;
- mes "[Pendant Crafter]";
- mes "So, do you want me to enchant your Pendant of Guardian?";
- next;
- switch(select("Enchant my Pendant of Guardian.:Leave.")) {
- case 1:
- mes "[Pendant Crafter]";
- mes "Okay, you want to enchant your Pendant of Guardian.";
- next;
- mes "[Pendant Crafter]";
- mes "The cost to enchant your Pendant of Guardian is ^0000FF5 Mora Coin^000000.";
- next;
- mes "[Pendant Crafter]";
- mes "This enchantment automatically assigns three slots with random stats.";
- mes "If you ever need an enchantment, you can come to me. I will enchant your pendant anytime.";
- next;
- mes "[Pendant Crafter]";
- mes "Would you like to start the enchantment?";
- next;
- switch(select("Let's do it.:Cancel.")) {
- case 1:
- if(countitem(2858) > 1)
- {
- mes "==Information==";
- mes "You must have only one of the item to enchant.";
- next;
- mes "==Information==";
- mes "Please remove the duplicates of the item.";
- close;
- }
- if(isequipped(2858))
- {
- if(countitem(6380) >=5)
- {
- setarray .@enchant_card[0],4766,4767,4760,4761,4762,4763,4764,4765;
- setarray .@enchant_card2[0],4720,4721,4710,4711,4750,4751;
- setarray .@enchant_card3[0],4700,4701,4730,4731,4740,4741;
- set .@enchant_card1,.@enchant_card[rand(0,getarraysize(.@enchant_card)-1)];
- set .@enchant_card2,.@enchant_card2[rand(0,getarraysize(.@enchant_card2)-1)];
- set .@enchant_card3,.@enchant_card3[rand(0,getarraysize(.@enchant_card3)-1)];
- mes "[Master Tailor]";
- mes "Okay, I am ready to start...";
- next;
- specialeffect EF_SANCTUARY;
- delitem 6380,5;
- delitem 2858,1;
- getitem2 2858, 1, 1, 0, 0, 0, .@enchant_card3, .@enchant_card2, .@enchant_card1;
- mes "[Master Tailor]";
- mes "Here's your new Pendant of Guardian! I hope that it is to your liking!";
- next;
- mes "[Master Tailor]";
- mes "Don't hesitate to come to me if you want something enchanted again.";
- next;
- mes "[Master Tailor]";
- mes "Have a good day!";
- close;
- }
- else
- {
- mes "[Master Tailor]";
- mes "You don't have the 5 Mora Coin needed for me to enchant this.";
- close;
- }
- }
- mes "[Master Tailor]";
- mes "You have to equip the armor before we can continue with the enchantment.";
- close;
- case 2:
- break;
- }
- case 2:
- break;
- }
- mes "[Pendant Crafter]";
- mes "Okay, return when you can and have a good day!";
- close;
- }
- //Enchant Item function usage
- //"EnchantItem",Coin Cost,Zeny Cost,Chance,Item ID, Refine, Card to Enchant,First card (.@card4),Second card (.@card3),current card
- function script EnchantItem {
- set .prem,7227;
- set .premamount,1;
- if(countitem(6380) >= getarg(0) && Zeny >= getarg(1)) {
- if(getarg(2) == 100) {
- mes "[Enchanting]";
- mes "I feel the power of your ^FF0000"+getitemname(getarg(3))+"^000000. This armor is still pure. We will proceed with the enchantment ceremony as normal.";
- next;
- mes "[Enchanting]";
- mes "The ceremony is about to begin, I hope everything works out!";
- }
- else {
- mes "[Enchanting]";
- mes "I feel the power of your ^FF0000"+getitemname(getarg(3))+"^000000. This armor has enchantments and may fail.";
- next;
- mes "[Enchanting]";
- if(getarg(2) > 50)
- mes "The enchantment has a ^FF0000"+getarg(2)+"%^000000 chance of success! If the spell fails, don't worry. Your equipment will not be broken, but it will be returned to you in a pure state.";
- else
- mes "The enchantment has a ^FF0000"+getarg(2)+"%^000000 chance of success! If the spell fails, it may break your item. There is a ^FF000050%^000000 chance it will only remove previous enchantments.";
- next;
- mes "[Enchanting]";
- mes "Any enchantment cards will be removed if the spell fails.";
- next;
- mes "[Enchanting]";
- mes "So I have to ask you this last question. Are you sure you wish to continue with this enchantment?";
- next;
- if(select("Continue the enchantment.","Cancel the enchantment.") == 2) {
- return;
- }
- L_chooseagain:
- mes "[Enchanting]"; // starting from here the npc will explain what are his options to use
- mes "You have 2 options to Proceed with this enchantment";
- mes "You can use premium echantment that will give you a 100% success but it will cause you " +.premamount+ " " + getitemname(.prem) + " or you can do it normaly where there is a chance of failing";
- next;
- mes "So do you want to use premium enchantment?";
- switch(select("No:Yes")){//aks player what kind of echantment system
- case 1:
- set @premium,0; //set normal echantment rate system
- goto L_cont; //continues
- break;
- case 2:
- if (countitem(.prem) > .premamount){mes "You dont have any " + getitemname(.prem) + ""; next; goto L_chooseagain;} //will go back to the menu to explain to the player what to use
- set @premium,1; //set premium echantment rate system
- goto L_cont;//continues
- break;
- }
- L_cont:
- mes "Very well. We will continue the ceremony... And now to begin!!!";
- }
- next;
- if (@premium==1){goto L_premenchant;}// will skip failrate if player chooses to use it
- else{ //else he will encounter failrate measures
- if(rand(100)>getarg(2))
- {
- specialeffect 155;
- delitem 6380,1;
- set Zeny,Zeny-getarg(1);
- delitem getarg(3),1;
- if(getarg(2)<50) {
- if(rand(100) > 50){
- mes "Oh no! Not only did the enchantment fail, but your item has also broken!";
- next;
- mes "I can't tell you how sorry I am...";
- close;
- }
- }
- getitem2 getarg(3), 1, 1, getarg(4), 0, getarg(8), 0, 0, 0;
- mes "[Enchanting]";
- mes "I'm really sorry!!! The enchantment failed...";
- next;
- mes "[Enchanting]";
- mes "I knew the ^FF0000"+getitemname(getarg(3))+"^000000 was fragile...";
- next;
- mes "[Enchanting]";
- mes "Sorry again. Do not hesitate to come and see me if you ever want to try again.";
- next;
- mes "[Enchanting]";
- mes "Have a nice day ~ young adventurer";
- close;
- }
- }
- else
- {
- L_premenchant: // will now proceed to instant success enhantment
- if (@premium==1){delitem .prem,.premamount}//deletes premium requirements
- specialeffect EF_SANCTUARY;
- delitem 6380,getarg(0);
- set Zeny,Zeny-getarg(1);
- delitem getarg(3),1;
- if (getarg(2) == 30)
- getitem2 getarg(3), 1, 1, getarg(4), 0, getarg(8), getarg(5), getarg(7), getarg(6);
- else if (getarg(2) == 60)
- getitem2 getarg(3), 1, 1, getarg(4), 0, getarg(8), 0, getarg(5), getarg(6);
- else if (getarg(2) == 100)
- getitem2 getarg(3), 1, 1, getarg(4), 0, getarg(8), 0, 0, getarg(5);
- if (getarg(2) == 100) {
- mes "[Enchanting]";
- mes "The enchantment of the armor is finished! Your ^FF0000"+getitemname(getarg(3))+"^000000 was combined with ^005500"+getitemname(getarg(5))+"^000000!";
- }
- else {
- mes "[Enchanting]";
- mes "The enchantment was a success! Your ^FF0000"+getitemname(getarg(3))+"^000000 was combined with ^005500"+getitemname(getarg(5))+"^000000!";
- }
- next;
- mes "[Enchanting]";
- mes "Thank you very much for using my services.";
- next;
- mes "[Enchanting]";
- mes "If you still need me, do not hesitate to return. Thank you again and have a nice day ~";
- close;
- }
- }
- else
- {
- mes "[Enchanting]";
- mes "I see your ^FF0000"+getitemname(getarg(3))+"^000000 won't be enchanted.";
- next;
- mes "[Enchanting]";
- mes "I'm sorry. You do not seem to have enough ^0000FFMora Coins^000000 or enough ^0000FFZeny^000000 on you. My services cost ^0000FF"+getarg(0)+" Mora Coin^000000 and ^0000FF"+getarg(1)+" Zeny^000000 per enchantment.";
- next;
- mes "[Enchanting]";
- mes "Come back when you can pay the fee.";
- close;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement