summaryrefslogtreecommitdiff
path: root/npc/re/merchants/enchan_mora.txt
diff options
context:
space:
mode:
authorHappy <markaizer@gmail.com>2014-08-21 04:50:46 +0800
committerHappy <markaizer@gmail.com>2014-08-21 04:50:46 +0800
commitf52e1007fe08c67003c0bc4c78231904dd3fd5cc (patch)
tree99907d827264e501774e58ab4630e41fa7103c02 /npc/re/merchants/enchan_mora.txt
parent2410110dece79b4598c12f1c953219f1d0d1904a (diff)
parent769b1d05aa5cfa8cddfe7d21b35d5c5e4da3bbd6 (diff)
downloadhercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.tar.gz
hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.tar.bz2
hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.tar.xz
hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.zip
Merge pull request #1 from HerculesWS/master
Update from original
Diffstat (limited to 'npc/re/merchants/enchan_mora.txt')
-rw-r--r--npc/re/merchants/enchan_mora.txt796
1 files changed, 97 insertions, 699 deletions
diff --git a/npc/re/merchants/enchan_mora.txt b/npc/re/merchants/enchan_mora.txt
index 8ff8f758d..e35f768a3 100644
--- a/npc/re/merchants/enchan_mora.txt
+++ b/npc/re/merchants/enchan_mora.txt
@@ -1,22 +1,23 @@
-//===== rAthena Script =======================================
+//===== Hercules Script ======================================
//= Mora Enchants
-//===== By: ==================================================
+//===== By: ==================================================
//= Euphy
-//===== Current Version: =====================================
-//= 1.0
-//===== Compatible With: =====================================
-//= rAthena SVN
-//===== Description: =========================================
+//===== Current Version: =====================================
+//= 1.2
+//===== Description: =========================================
//= [Official Conversion]
//= Adds enchantments to various items in exchange for
//= Mora coins.
-//===== Additional Comments: =================================
+//===== Additional Comments: =================================
//= 1.0 First Version. [Euphy]
-//============================================================
+//= 1.1 Optimized. [Euphy]
+//= 1.1a Bug fixes. [Lemongrass]
+//= 1.2 Bug fixes (bugreport:7930) [DeadlySilence]
+//============================================================
// Arch Bishop Enchants :: coin_arc
//============================================================
-mora,88,89,5 script Keeper of Secrets#pa082 495,{
+mora,88,89,5 script Keeper of Secrets#pa082 4_M_MERCAT1,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;
@@ -137,7 +138,7 @@ mora,88,89,5 script Keeper of Secrets#pa082 495,{
}
}
-mora,96,74,5 script Master of Relics#pa0829 495,{
+mora,96,74,5 script Master of Relics#pa0829 4_M_MERCAT1,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;
@@ -217,70 +218,15 @@ mora,96,74,5 script Master of Relics#pa0829 495,{
switch(.@enchant_type) {
case 1:
set .@i, rand(1,1487);
- if (.@i <= 16) setarray .@enchants[2],4710,.@sp; //Inteligence2 [sp]
- else if (.@i <= 32) setarray .@enchants[2],4710,4799; //Inteligence2 HP500
- else if (.@i <= 48) setarray .@enchants[2],4710,4766; //Inteligence2 Atk2
- else if (.@i <= 64) setarray .@enchants[2],4710,4788; //Inteligence2 Mdef6
- else if (.@i <= 80) setarray .@enchants[2],4720,.@sp; //Dexterity1 [sp]
- else if (.@i <= 96) setarray .@enchants[2],4720,4799; //Dexterity1 HP500
- else if (.@i <= 112) setarray .@enchants[2],4720,4766; //Dexterity1 Atk2
- else if (.@i <= 128) setarray .@enchants[2],4720,4788; //Dexterity1 Mdef6
- else if (.@i <= 144) setarray .@enchants[2],4721,.@sp; //Dexterity2 [sp]
- else if (.@i <= 160) setarray .@enchants[2],4721,4799; //Dexterity2 HP500
- else if (.@i <= 176) setarray .@enchants[2],4721,4766; //Dexterity2 Atk2
- else if (.@i <= 192) setarray .@enchants[2],4721,4788; //Dexterity2 Mdef6
- else if (.@i <= 208) setarray .@enchants[2],4740,.@sp; //Vitality1 [sp]
- else if (.@i <= 224) setarray .@enchants[2],4740,4799; //Vitality1 HP500
- else if (.@i <= 240) setarray .@enchants[2],4740,4766; //Vitality1 Atk2
- else if (.@i <= 256) setarray .@enchants[2],4740,4788; //Vitality1 Mdef6
- else if (.@i <= 272) setarray .@enchants[2],4710,.@sp; //Inteligence2 [sp]
- else if (.@i <= 288) setarray .@enchants[2],4710,4799; //Inteligence2 HP500
- else if (.@i <= 304) setarray .@enchants[2],4710,4766; //Inteligence2 Atk2
- else if (.@i <= 320) setarray .@enchants[2],4710,4788; //Inteligence2 Mdef6
- else if (.@i <= 336) setarray .@enchants[2],4720,.@sp; //Dexterity1 [sp]
- else if (.@i <= 352) setarray .@enchants[2],4720,4799; //Dexterity1 HP500
- else if (.@i <= 368) setarray .@enchants[2],4720,4766; //Dexterity1 Atk2
- else if (.@i <= 384) setarray .@enchants[2],4720,4788; //Dexterity1 Mdef6
- else if (.@i <= 400) setarray .@enchants[2],4721,.@sp; //Dexterity2 [sp]
- else if (.@i <= 416) setarray .@enchants[2],4721,4799; //Dexterity2 HP500
- else if (.@i <= 432) setarray .@enchants[2],4721,4766; //Dexterity2 Atk2
- else if (.@i <= 448) setarray .@enchants[2],4721,4788; //Dexterity2 Mdef6
- else if (.@i <= 464) setarray .@enchants[2],4740,.@sp; //Vitality1 [sp]
- else if (.@i <= 480) setarray .@enchants[2],4740,4799; //Vitality1 HP500
- else if (.@i <= 496) setarray .@enchants[2],4740,4766; //Vitality1 Atk2
- else if (.@i <= 512) setarray .@enchants[2],4740,4788; //Vitality1 Mdef6
- else if (.@i <= 528) setarray .@enchants[2],4710,.@sp; //Inteligence2 [sp]
- else if (.@i <= 544) setarray .@enchants[2],4710,4799; //Inteligence2 HP500
- else if (.@i <= 560) setarray .@enchants[2],4710,4766; //Inteligence2 Atk2
- else if (.@i <= 576) setarray .@enchants[2],4710,4788; //Inteligence2 Mdef6
- else if (.@i <= 592) setarray .@enchants[2],4720,.@sp; //Dexterity1 [sp]
- else if (.@i <= 608) setarray .@enchants[2],4720,4799; //Dexterity1 HP500
- else if (.@i <= 624) setarray .@enchants[2],4720,4766; //Dexterity1 Atk2
- else if (.@i <= 640) setarray .@enchants[2],4720,4788; //Dexterity1 Mdef6
- else if (.@i <= 656) setarray .@enchants[2],4721,.@sp; //Dexterity2 [sp]
- else if (.@i <= 672) setarray .@enchants[2],4721,4799; //Dexterity2 HP500
- else if (.@i <= 688) setarray .@enchants[2],4721,4766; //Dexterity2 Atk2
- else if (.@i <= 704) setarray .@enchants[2],4721,4788; //Dexterity2 Mdef6
- else if (.@i <= 720) setarray .@enchants[2],4740,.@sp; //Vitality1 [sp]
- else if (.@i <= 736) setarray .@enchants[2],4740,4799; //Vitality1 HP500
- else if (.@i <= 752) setarray .@enchants[2],4740,4766; //Vitality1 Atk2
- else if (.@i <= 768) setarray .@enchants[2],4740,4788; //Vitality1 Mdef6
- else if (.@i <= 784) setarray .@enchants[2],4710,.@sp; //Inteligence2 [sp]
- else if (.@i <= 800) setarray .@enchants[2],4710,4799; //Inteligence2 HP500
- else if (.@i <= 816) setarray .@enchants[2],4710,4766; //Inteligence2 Atk2
- else if (.@i <= 832) setarray .@enchants[2],4710,4788; //Inteligence2 Mdef6
- else if (.@i <= 848) setarray .@enchants[2],4720,.@sp; //Dexterity1 [sp]
- else if (.@i <= 864) setarray .@enchants[2],4720,4799; //Dexterity1 HP500
- else if (.@i <= 880) setarray .@enchants[2],4720,4766; //Dexterity1 Atk2
- else if (.@i <= 896) setarray .@enchants[2],4720,4788; //Dexterity1 Mdef6
- else if (.@i <= 912) setarray .@enchants[2],4721,.@sp; //Dexterity2 [sp]
- else if (.@i <= 928) setarray .@enchants[2],4721,4799; //Dexterity2 HP500
- else if (.@i <= 944) setarray .@enchants[2],4721,4766; //Dexterity2 Atk2
- else if (.@i <= 960) setarray .@enchants[2],4721,4788; //Dexterity2 Mdef6
- else if (.@i <= 976) setarray .@enchants[2],4740,.@sp; //Vitality1 [sp]
- else if (.@i <= 992) setarray .@enchants[2],4740,4799; //Vitality1 HP500
- else if (.@i <= 1008) setarray .@enchants[2],4740,4766; //Vitality1 Atk2
- else if (.@i <= 1024) setarray .@enchants[2],4740,4788; //Vitality1 Mdef6
+ if (.@i <= 1024) {
+ // Basic combinations
+ // (raw: .@i increments by 16, 4 repeats)
+ setarray .@enchant_slot2[0],4711,4720,4721,4740; //Inteligence2,Dexterity1,Dexterity2,Vitality1
+ setarray .@enchant_slot3[0],.@sp,4799,4766,4788; //[sp],HP500,Atk2,Mdef6
+ setarray .@enchants[2],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 1040) setarray .@enchants[2],.@sp,.@sp; //[sp] [sp]
else if (.@i <= 1487) {
mes "[Relice]";
@@ -290,70 +236,17 @@ mora,96,74,5 script Master of Relics#pa0829 495,{
break;
case 2:
set .@i, rand(1,1487);
- if (.@i <= 16) setarray .@enchants[1],4710,4711,4764; //Inteligence1 Inteligence2 Critical5
- else if (.@i <= 32) setarray .@enchants[1],4710,4711,4799; //Inteligence1 Inteligence2 HP500
- else if (.@i <= 48) setarray .@enchants[1],4710,4711,4766; //Inteligence1 Inteligence2 Atk2
- else if (.@i <= 64) setarray .@enchants[1],4710,4711,4788; //Inteligence1 Inteligence2 Mdef6
- else if (.@i <= 80) setarray .@enchants[1],4710,4720,4764; //Inteligence1 Dexterity1 Critical5
- else if (.@i <= 96) setarray .@enchants[1],4710,4720,4799; //Inteligence1 Dexterity1 HP500
- else if (.@i <= 112) setarray .@enchants[1],4710,4720,4766; //Inteligence1 Dexterity1 Atk2
- else if (.@i <= 128) setarray .@enchants[1],4710,4720,4788; //Inteligence1 Dexterity1 Mdef6
- else if (.@i <= 144) setarray .@enchants[1],4710,4721,4764; //Inteligence1 Dexterity2 Critical5
- else if (.@i <= 160) setarray .@enchants[1],4710,4721,4799; //Inteligence1 Dexterity2 HP500
- else if (.@i <= 176) setarray .@enchants[1],4710,4721,4766; //Inteligence1 Dexterity2 Atk2
- else if (.@i <= 192) setarray .@enchants[1],4710,4721,4788; //Inteligence1 Dexterity2 Mdef6
- else if (.@i <= 208) setarray .@enchants[1],4710,4740,4764; //Inteligence1 Vitality1 Critical5
- else if (.@i <= 224) setarray .@enchants[1],4710,4740,4799; //Inteligence1 Vitality1 HP500
- else if (.@i <= 240) setarray .@enchants[1],4710,4740,4766; //Inteligence1 Vitality1 Atk2
- else if (.@i <= 256) setarray .@enchants[1],4710,4740,4788; //Inteligence1 Vitality1 Mdef6
- else if (.@i <= 272) setarray .@enchants[1],4711,4711,4764; //Inteligence2 Inteligence2 Critical5
- else if (.@i <= 288) setarray .@enchants[1],4711,4711,4799; //Inteligence2 Inteligence2 HP500
- else if (.@i <= 304) setarray .@enchants[1],4711,4711,4766; //Inteligence2 Inteligence2 Atk2
- else if (.@i <= 320) setarray .@enchants[1],4711,4711,4788; //Inteligence2 Inteligence2 Mdef6
- else if (.@i <= 336) setarray .@enchants[1],4711,4720,4764; //Inteligence2 Dexterity1 Critical5
- else if (.@i <= 352) setarray .@enchants[1],4711,4720,4799; //Inteligence2 Dexterity1 HP500
- else if (.@i <= 368) setarray .@enchants[1],4711,4720,4766; //Inteligence2 Dexterity1 Atk2
- else if (.@i <= 384) setarray .@enchants[1],4711,4720,4788; //Inteligence2 Dexterity1 Mdef6
- else if (.@i <= 400) setarray .@enchants[1],4711,4721,4764; //Inteligence2 Dexterity2 Critical5
- else if (.@i <= 416) setarray .@enchants[1],4711,4721,4799; //Inteligence2 Dexterity2 HP500
- else if (.@i <= 432) setarray .@enchants[1],4711,4721,4766; //Inteligence2 Dexterity2 Atk2
- else if (.@i <= 448) setarray .@enchants[1],4711,4721,4788; //Inteligence2 Dexterity2 Mdef6
- else if (.@i <= 464) setarray .@enchants[1],4711,4740,4764; //Inteligence2 Vitality1 Critical5
- else if (.@i <= 480) setarray .@enchants[1],4711,4740,4799; //Inteligence2 Vitality1 HP500
- else if (.@i <= 496) setarray .@enchants[1],4711,4740,4766; //Inteligence2 Vitality1 Atk2
- else if (.@i <= 512) setarray .@enchants[1],4711,4740,4788; //Inteligence2 Vitality1 Mdef6
- else if (.@i <= 528) setarray .@enchants[1],4720,4711,4764; //Dexterity1 Inteligence2 Critical5
- else if (.@i <= 544) setarray .@enchants[1],4720,4711,4799; //Dexterity1 Inteligence2 HP500
- else if (.@i <= 560) setarray .@enchants[1],4720,4711,4766; //Dexterity1 Inteligence2 Atk2
- else if (.@i <= 576) setarray .@enchants[1],4720,4711,4788; //Dexterity1 Inteligence2 Mdef6
- else if (.@i <= 592) setarray .@enchants[1],4720,4720,4764; //Dexterity1 Dexterity1 Critical5
- else if (.@i <= 608) setarray .@enchants[1],4720,4720,4799; //Dexterity1 Dexterity1 HP500
- else if (.@i <= 624) setarray .@enchants[1],4720,4720,4766; //Dexterity1 Dexterity1 Atk2
- else if (.@i <= 640) setarray .@enchants[1],4720,4720,4788; //Dexterity1 Dexterity1 Mdef6
- else if (.@i <= 656) setarray .@enchants[1],4720,4721,4764; //Dexterity1 Dexterity2 Critical5
- else if (.@i <= 672) setarray .@enchants[1],4720,4721,4799; //Dexterity1 Dexterity2 HP500
- else if (.@i <= 688) setarray .@enchants[1],4720,4721,4766; //Dexterity1 Dexterity2 Atk2
- else if (.@i <= 704) setarray .@enchants[1],4720,4721,4788; //Dexterity1 Dexterity2 Mdef6
- else if (.@i <= 720) setarray .@enchants[1],4720,4740,4764; //Dexterity1 Vitality1 Critical5
- else if (.@i <= 736) setarray .@enchants[1],4720,4740,4799; //Dexterity1 Vitality1 HP500
- else if (.@i <= 752) setarray .@enchants[1],4720,4740,4766; //Dexterity1 Vitality1 Atk2
- else if (.@i <= 768) setarray .@enchants[1],4720,4740,4788; //Dexterity1 Vitality1 Mdef6
- else if (.@i <= 784) setarray .@enchants[1],4721,4711,4764; //Dexterity2 Inteligence2 Critical5
- else if (.@i <= 800) setarray .@enchants[1],4721,4711,4799; //Dexterity2 Inteligence2 HP500
- else if (.@i <= 816) setarray .@enchants[1],4721,4711,4766; //Dexterity2 Inteligence2 Atk2
- else if (.@i <= 832) setarray .@enchants[1],4721,4711,4788; //Dexterity2 Inteligence2 Mdef6
- else if (.@i <= 848) setarray .@enchants[1],4721,4720,4764; //Dexterity2 Dexterity1 Critical5
- else if (.@i <= 864) setarray .@enchants[1],4721,4720,4799; //Dexterity2 Dexterity1 HP500
- else if (.@i <= 880) setarray .@enchants[1],4721,4720,4766; //Dexterity2 Dexterity1 Atk2
- else if (.@i <= 896) setarray .@enchants[1],4721,4720,4788; //Dexterity2 Dexterity1 Mdef6
- else if (.@i <= 912) setarray .@enchants[1],4721,4721,4764; //Dexterity2 Dexterity2 Critical5
- else if (.@i <= 928) setarray .@enchants[1],4721,4721,4799; //Dexterity2 Dexterity2 HP500
- else if (.@i <= 944) setarray .@enchants[1],4721,4721,4766; //Dexterity2 Dexterity2 Atk2
- else if (.@i <= 960) setarray .@enchants[1],4721,4721,4788; //Dexterity2 Dexterity2 Mdef6
- else if (.@i <= 976) setarray .@enchants[1],4721,4740,4764; //Dexterity2 Vitality1 Critical5
- else if (.@i <= 992) setarray .@enchants[1],4721,4740,4799; //Dexterity2 Vitality1 HP500
- else if (.@i <= 1008) setarray .@enchants[1],4721,4740,4766; //Dexterity2 Vitality1 Atk2
- else if (.@i <= 1024) setarray .@enchants[1],4721,4740,4788; //Dexterity2 Vitality1 Mdef6
+ if (.@i <= 1024) {
+ // Basic combinations
+ // (raw: .@i increments by 16)
+ setarray .@enchant_slot1[0],4710,4711,4720,4721; //Inteligence1,Inteligence2,Dexterity1,Dexterity2
+ setarray .@enchant_slot2[0],4711,4720,4721,4740; //Inteligence2,Dexterity1,Dexterity2,Vitality1
+ setarray .@enchant_slot3[0],4764,4799,4766,4788; //Critical5,HP500,Atk2,Mdef6
+ setarray .@enchants[1],
+ .@enchant_slot1[rand(getarraysize(.@enchant_slot1))],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 1026) setarray .@enchants[1],4761,4761,4761; //Matk2 Matk2 Matk2
else if (.@i <= 1028) setarray .@enchants[1],4712,4713,4713; //Inteligence3 Inteligence4 Inteligence4
else if (.@i <= 1030) setarray .@enchants[1],4712,4761,4761; //Inteligence3 Matk2 Matk2
@@ -370,70 +263,15 @@ mora,96,74,5 script Master of Relics#pa0829 495,{
break;
case 3:
set .@i, rand(1,2852);
- if (.@i <= 31) setarray .@enchants[2],4720,4710; //Dexterity1 Inteligence1
- else if (.@i <= 62) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 93) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 124) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 155) setarray .@enchants[2],4740,4710; //Vitality1 Inteligence1
- else if (.@i <= 186) setarray .@enchants[2],4740,4711; //Vitality1 Inteligence2
- else if (.@i <= 217) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 248) setarray .@enchants[2],4740,4760; //Vitality1 Matk1
- else if (.@i <= 279) setarray .@enchants[2],4741,4710; //Vitality2 Inteligence1
- else if (.@i <= 310) setarray .@enchants[2],4741,4711; //Vitality2 Inteligence2
- else if (.@i <= 341) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 372) setarray .@enchants[2],4741,4760; //Vitality2 Matk1
- else if (.@i <= 403) setarray .@enchants[2],4801,4710; //SP100 Inteligence1
- else if (.@i <= 434) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 465) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 496) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 527) setarray .@enchants[2],4720,4710; //Dexterity1 Inteligence1
- else if (.@i <= 558) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 589) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 620) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 651) setarray .@enchants[2],4740,4710; //Vitality1 Inteligence1
- else if (.@i <= 682) setarray .@enchants[2],4740,4711; //Vitality1 Inteligence2
- else if (.@i <= 713) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 744) setarray .@enchants[2],4740,4760; //Vitality1 Matk1
- else if (.@i <= 775) setarray .@enchants[2],4741,4710; //Vitality2 Inteligence1
- else if (.@i <= 806) setarray .@enchants[2],4741,4711; //Vitality2 Inteligence2
- else if (.@i <= 837) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 868) setarray .@enchants[2],4741,4760; //Vitality2 Matk1
- else if (.@i <= 899) setarray .@enchants[2],4801,4710; //SP100 Inteligence1
- else if (.@i <= 930) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 961) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 992) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 1023) setarray .@enchants[2],4720,4710; //Dexterity1 Inteligence1
- else if (.@i <= 1054) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 1085) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 1116) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 1147) setarray .@enchants[2],4740,4710; //Vitality1 Inteligence1
- else if (.@i <= 1178) setarray .@enchants[2],4740,4711; //Vitality1 Inteligence2
- else if (.@i <= 1209) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 1240) setarray .@enchants[2],4740,4760; //Vitality1 Matk1
- else if (.@i <= 1271) setarray .@enchants[2],4741,4710; //Vitality2 Inteligence1
- else if (.@i <= 1302) setarray .@enchants[2],4741,4711; //Vitality2 Inteligence2
- else if (.@i <= 1333) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 1364) setarray .@enchants[2],4741,4760; //Vitality2 Matk1
- else if (.@i <= 1395) setarray .@enchants[2],4801,4710; //SP100 Inteligence1
- else if (.@i <= 1426) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 1457) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 1488) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 1519) setarray .@enchants[2],4720,4710; //Dexterity1 Inteligence1
- else if (.@i <= 1550) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 1581) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 1612) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 1643) setarray .@enchants[2],4740,4710; //Vitality1 Inteligence1
- else if (.@i <= 1674) setarray .@enchants[2],4740,4711; //Vitality1 Inteligence2
- else if (.@i <= 1705) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 1736) setarray .@enchants[2],4740,4760; //Vitality1 Matk1
- else if (.@i <= 1767) setarray .@enchants[2],4741,4710; //Vitality2 Inteligence1
- else if (.@i <= 1798) setarray .@enchants[2],4741,4711; //Vitality2 Inteligence2
- else if (.@i <= 1829) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 1860) setarray .@enchants[2],4741,4760; //Vitality2 Matk1
- else if (.@i <= 1891) setarray .@enchants[2],4801,4710; //SP100 Inteligence1
- else if (.@i <= 1922) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 1953) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 1984) setarray .@enchants[2],4801,4760; //SP100 Matk1
+ if (.@i <= 1984) {
+ // Basic combinations
+ // (raw: .@i increments by 31, 4 repeats)
+ setarray .@enchant_slot2[0],4720,4740,4741,4801; //Dexterity1,Vitality1,Vitality2,SP100
+ setarray .@enchant_slot3[0],4710,4711,4721,4760; //Inteligence1,Inteligence2,Dexterity2,Matk1
+ setarray .@enchants[2],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 1986) setarray .@enchants[2],4761,4761; //Matk2 Matk2
else if (.@i <= 1988) setarray .@enchants[2],4761,4723; //Matk2 Dexterity4
else if (.@i <= 1990) setarray .@enchants[2],4761,4714; //Matk2 Inteligence5
@@ -448,70 +286,15 @@ mora,96,74,5 script Master of Relics#pa0829 495,{
break;
case 4:
set .@i, rand(1,2852);
- if (.@i <= 31) setarray .@enchants[2],4720,4700; //Dexterity1 Strength1
- else if (.@i <= 62) setarray .@enchants[2],4720,4701; //Dexterity1 Strength2
- else if (.@i <= 93) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 124) setarray .@enchants[2],4720,4767; //Dexterity1 Atk3
- else if (.@i <= 155) setarray .@enchants[2],4740,4700; //Vitality1 Strength1
- else if (.@i <= 186) setarray .@enchants[2],4740,4701; //Vitality1 Strength2
- else if (.@i <= 217) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 248) setarray .@enchants[2],4740,4767; //Vitality1 Atk3
- else if (.@i <= 279) setarray .@enchants[2],4741,4700; //Vitality2 Strength1
- else if (.@i <= 310) setarray .@enchants[2],4741,4701; //Vitality2 Strength2
- else if (.@i <= 341) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 372) setarray .@enchants[2],4741,4767; //Vitality2 Atk3
- else if (.@i <= 403) setarray .@enchants[2],4701,4700; //Strength2 Strength1
- else if (.@i <= 434) setarray .@enchants[2],4701,4701; //Strength2 Strength2
- else if (.@i <= 465) setarray .@enchants[2],4701,4721; //Strength2 Dexterity2
- else if (.@i <= 496) setarray .@enchants[2],4701,4767; //Strength2 Atk3
- else if (.@i <= 527) setarray .@enchants[2],4720,4700; //Dexterity1 Strength1
- else if (.@i <= 558) setarray .@enchants[2],4720,4701; //Dexterity1 Strength2
- else if (.@i <= 589) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 620) setarray .@enchants[2],4720,4767; //Dexterity1 Atk3
- else if (.@i <= 651) setarray .@enchants[2],4740,4700; //Vitality1 Strength1
- else if (.@i <= 682) setarray .@enchants[2],4740,4701; //Vitality1 Strength2
- else if (.@i <= 713) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 744) setarray .@enchants[2],4740,4767; //Vitality1 Atk3
- else if (.@i <= 775) setarray .@enchants[2],4741,4700; //Vitality2 Strength1
- else if (.@i <= 806) setarray .@enchants[2],4741,4701; //Vitality2 Strength2
- else if (.@i <= 837) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 868) setarray .@enchants[2],4741,4767; //Vitality2 Atk3
- else if (.@i <= 899) setarray .@enchants[2],4701,4700; //Strength2 Strength1
- else if (.@i <= 930) setarray .@enchants[2],4701,4701; //Strength2 Strength2
- else if (.@i <= 961) setarray .@enchants[2],4701,4721; //Strength2 Dexterity2
- else if (.@i <= 992) setarray .@enchants[2],4701,4767; //Strength2 Atk3
- else if (.@i <= 1023) setarray .@enchants[2],4720,4700; //Dexterity1 Strength1
- else if (.@i <= 1054) setarray .@enchants[2],4720,4701; //Dexterity1 Strength2
- else if (.@i <= 1085) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 1116) setarray .@enchants[2],4720,4767; //Dexterity1 Atk3
- else if (.@i <= 1147) setarray .@enchants[2],4740,4700; //Vitality1 Strength1
- else if (.@i <= 1178) setarray .@enchants[2],4740,4701; //Vitality1 Strength2
- else if (.@i <= 1209) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 1240) setarray .@enchants[2],4740,4767; //Vitality1 Atk3
- else if (.@i <= 1271) setarray .@enchants[2],4741,4700; //Vitality2 Strength1
- else if (.@i <= 1302) setarray .@enchants[2],4741,4701; //Vitality2 Strength2
- else if (.@i <= 1333) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 1364) setarray .@enchants[2],4741,4767; //Vitality2 Atk3
- else if (.@i <= 1395) setarray .@enchants[2],4701,4700; //Strength2 Strength1
- else if (.@i <= 1426) setarray .@enchants[2],4701,4701; //Strength2 Strength2
- else if (.@i <= 1457) setarray .@enchants[2],4701,4721; //Strength2 Dexterity2
- else if (.@i <= 1488) setarray .@enchants[2],4701,4767; //Strength2 Atk3
- else if (.@i <= 1519) setarray .@enchants[2],4720,4700; //Dexterity1 Strength1
- else if (.@i <= 1550) setarray .@enchants[2],4720,4701; //Dexterity1 Strength2
- else if (.@i <= 1581) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 1612) setarray .@enchants[2],4720,4767; //Dexterity1 Atk3
- else if (.@i <= 1643) setarray .@enchants[2],4740,4700; //Vitality1 Strength1
- else if (.@i <= 1674) setarray .@enchants[2],4740,4701; //Vitality1 Strength2
- else if (.@i <= 1705) setarray .@enchants[2],4740,4721; //Vitality1 Dexterity2
- else if (.@i <= 1736) setarray .@enchants[2],4740,4767; //Vitality1 Atk3
- else if (.@i <= 1767) setarray .@enchants[2],4741,4700; //Vitality2 Strength1
- else if (.@i <= 1798) setarray .@enchants[2],4741,4701; //Vitality2 Strength2
- else if (.@i <= 1829) setarray .@enchants[2],4741,4721; //Vitality2 Dexterity2
- else if (.@i <= 1860) setarray .@enchants[2],4741,4767; //Vitality2 Atk3
- else if (.@i <= 1891) setarray .@enchants[2],4701,4700; //Strength2 Strength1
- else if (.@i <= 1922) setarray .@enchants[2],4701,4701; //Strength2 Strength2
- else if (.@i <= 1953) setarray .@enchants[2],4701,4721; //Strength2 Dexterity2
- else if (.@i <= 1984) setarray .@enchants[2],4701,4767; //Strength2 Atk3
+ if (.@i <= 1984) {
+ // Basic combinations
+ // (raw: .@i increments by 31, 4 repeats)
+ setarray .@enchant_slot2[0],4720,4740,4741,4701; //Dexterity1,Vitality1,Vitality2,Strength2
+ setarray .@enchant_slot3[0],4700,4701,4721,4767; //Strength1,Strength2,Dexterity2,Atk3
+ setarray .@enchants[2],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 1986) setarray .@enchants[2],4767,4767; //Atk3 Atk3
else if (.@i <= 1988) setarray .@enchants[2],4767,4723; //Atk3 Dexterity4
else if (.@i <= 1990) setarray .@enchants[2],4767,4704; //Atk3 Strength5
@@ -534,7 +317,7 @@ mora,96,74,5 script Master of Relics#pa0829 495,{
// Warlock Enchants :: coin_warrock
//============================================================
-mora,104,76,4 script Guardian of Artifacts#p 495,{
+mora,104,76,4 script Guardian of Artifacts#p 4_M_MERCAT1,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;
@@ -607,7 +390,7 @@ mora,104,76,4 script Guardian of Artifacts#p 495,{
close;
}
-mora,99,93,5 script Artifact Crafter#pa0829 495,{
+mora,99,93,5 script Artifact Crafter#pa0829 4_M_MERCAT1,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;
@@ -673,7 +456,7 @@ mora,99,93,5 script Artifact Crafter#pa0829 495,{
break;
}
set .@item, .@items[(.@select-2)%4];
- if (countitem(6380) == 0 || countitem(.@item) == 0) {
+ if (countitem(6380) < 2 || countitem(.@item) == 0) {
mes "[Artifact Crafter]";
mes "You have to have 2 Mora Coins and an item to be reinforced before I can do my work.";
close;
@@ -684,70 +467,15 @@ mora,99,93,5 script Artifact Crafter#pa0829 495,{
switch(.@enchant_type) {
case 1:
set .@i, rand(1,2847);
- if (.@i <= 31) setarray .@enchants[2],4720,4786; //Dexterity1 Mdef2
- else if (.@i <= 62) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 93) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 124) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 155) setarray .@enchants[2],4796,4786; //HP200 Mdef2
- else if (.@i <= 186) setarray .@enchants[2],4796,4760; //HP200 Matk1
- else if (.@i <= 217) setarray .@enchants[2],4796,4711; //HP200 Inteligence2
- else if (.@i <= 248) setarray .@enchants[2],4796,4721; //HP200 Dexterity2
- else if (.@i <= 279) setarray .@enchants[2],4710,4786; //Inteligence1 Mdef2
- else if (.@i <= 310) setarray .@enchants[2],4710,4760; //Inteligence1 Matk1
- else if (.@i <= 341) setarray .@enchants[2],4710,4711; //Inteligence1 Inteligence2
- else if (.@i <= 372) setarray .@enchants[2],4710,4721; //Inteligence1 Dexterity2
- else if (.@i <= 403) setarray .@enchants[2],4801,4786; //SP100 Mdef2
- else if (.@i <= 434) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 465) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 496) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 527) setarray .@enchants[2],4720,4786; //Dexterity1 Mdef2
- else if (.@i <= 558) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 589) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 620) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 651) setarray .@enchants[2],4796,4786; //HP200 Mdef2
- else if (.@i <= 682) setarray .@enchants[2],4796,4760; //HP200 Matk1
- else if (.@i <= 713) setarray .@enchants[2],4796,4711; //HP200 Inteligence2
- else if (.@i <= 744) setarray .@enchants[2],4796,4721; //HP200 Dexterity2
- else if (.@i <= 775) setarray .@enchants[2],4710,4786; //Inteligence1 Mdef2
- else if (.@i <= 806) setarray .@enchants[2],4710,4760; //Inteligence1 Matk1
- else if (.@i <= 837) setarray .@enchants[2],4710,4711; //Inteligence1 Inteligence2
- else if (.@i <= 868) setarray .@enchants[2],4710,4721; //Inteligence1 Dexterity2
- else if (.@i <= 899) setarray .@enchants[2],4801,4786; //SP100 Mdef2
- else if (.@i <= 930) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 961) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 992) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 1023) setarray .@enchants[2],4720,4786; //Dexterity1 Mdef2
- else if (.@i <= 1054) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 1085) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 1116) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 1147) setarray .@enchants[2],4796,4786; //HP200 Mdef2
- else if (.@i <= 1178) setarray .@enchants[2],4796,4760; //HP200 Matk1
- else if (.@i <= 1209) setarray .@enchants[2],4796,4711; //HP200 Inteligence2
- else if (.@i <= 1240) setarray .@enchants[2],4796,4721; //HP200 Dexterity2
- else if (.@i <= 1271) setarray .@enchants[2],4710,4786; //Inteligence1 Mdef2
- else if (.@i <= 1302) setarray .@enchants[2],4710,4760; //Inteligence1 Matk1
- else if (.@i <= 1333) setarray .@enchants[2],4710,4711; //Inteligence1 Inteligence2
- else if (.@i <= 1364) setarray .@enchants[2],4710,4721; //Inteligence1 Dexterity2
- else if (.@i <= 1395) setarray .@enchants[2],4801,4786; //SP100 Mdef2
- else if (.@i <= 1426) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 1457) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 1488) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
- else if (.@i <= 1519) setarray .@enchants[2],4720,4786; //Dexterity1 Mdef2
- else if (.@i <= 1550) setarray .@enchants[2],4720,4760; //Dexterity1 Matk1
- else if (.@i <= 1581) setarray .@enchants[2],4720,4711; //Dexterity1 Inteligence2
- else if (.@i <= 1612) setarray .@enchants[2],4720,4721; //Dexterity1 Dexterity2
- else if (.@i <= 1643) setarray .@enchants[2],4796,4786; //HP200 Mdef2
- else if (.@i <= 1674) setarray .@enchants[2],4796,4760; //HP200 Matk1
- else if (.@i <= 1705) setarray .@enchants[2],4796,4711; //HP200 Inteligence2
- else if (.@i <= 1736) setarray .@enchants[2],4796,4721; //HP200 Dexterity2
- else if (.@i <= 1767) setarray .@enchants[2],4710,4786; //Inteligence1 Mdef2
- else if (.@i <= 1798) setarray .@enchants[2],4710,4760; //Inteligence1 Matk1
- else if (.@i <= 1829) setarray .@enchants[2],4710,4711; //Inteligence1 Inteligence2
- else if (.@i <= 1860) setarray .@enchants[2],4710,4721; //Inteligence1 Dexterity2
- else if (.@i <= 1891) setarray .@enchants[2],4801,4786; //SP100 Mdef2
- else if (.@i <= 1922) setarray .@enchants[2],4801,4760; //SP100 Matk1
- else if (.@i <= 1953) setarray .@enchants[2],4801,4711; //SP100 Inteligence2
- else if (.@i <= 1984) setarray .@enchants[2],4801,4721; //SP100 Dexterity2
+ if (.@i <= 1984) {
+ // Basic combinations
+ // (raw: .@i increments by 31, 4 repeats)
+ setarray .@enchant_slot2[0],4720,4796,4710,4801; //Dexterity1,HP200,Inteligence1,SP100
+ setarray .@enchant_slot3[0],4786,4760,4711,4721; //Mdef2,Matk1,Inteligence2,Dexterity2
+ setarray .@enchants[2],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 1986) setarray .@enchants[2],4713,4761; //Inteligence4 Matk2
else if (.@i <= 1988) setarray .@enchants[2],4713,4713; //Inteligence4 Inteligence4
else if (.@i <= 1990) setarray .@enchants[2],4761,4761; //Matk2 Matk2
@@ -760,70 +488,17 @@ mora,99,93,5 script Artifact Crafter#pa0829 495,{
break;
case 2:
set .@i, rand(1,2858);
- if (.@i <= 31) setarray .@enchants[1],4710,4720,4786; //Inteligence1 Dexterity1 Mdef2
- else if (.@i <= 62) setarray .@enchants[1],4710,4720,4760; //Inteligence1 Dexterity1 Matk1
- else if (.@i <= 93) setarray .@enchants[1],4710,4720,4711; //Inteligence1 Dexterity1 Inteligence2
- else if (.@i <= 124) setarray .@enchants[1],4710,4720,4721; //Inteligence1 Dexterity1 Dexterity2
- else if (.@i <= 155) setarray .@enchants[1],4710,4796,4786; //Inteligence1 HP200 Mdef2
- else if (.@i <= 186) setarray .@enchants[1],4710,4796,4760; //Inteligence1 HP200 Matk1
- else if (.@i <= 217) setarray .@enchants[1],4710,4796,4711; //Inteligence1 HP200 Inteligence2
- else if (.@i <= 248) setarray .@enchants[1],4710,4796,4721; //Inteligence1 HP200 Dexterity2
- else if (.@i <= 279) setarray .@enchants[1],4710,4710,4786; //Inteligence1 Inteligence1 Mdef2
- else if (.@i <= 310) setarray .@enchants[1],4710,4710,4760; //Inteligence1 Inteligence1 Matk1
- else if (.@i <= 341) setarray .@enchants[1],4710,4710,4711; //Inteligence1 Inteligence1 Inteligence2
- else if (.@i <= 372) setarray .@enchants[1],4710,4710,4721; //Inteligence1 Inteligence1 Dexterity2
- else if (.@i <= 403) setarray .@enchants[1],4710,4801,4786; //Inteligence1 SP100 Mdef2
- else if (.@i <= 434) setarray .@enchants[1],4710,4801,4760; //Inteligence1 SP100 Matk1
- else if (.@i <= 465) setarray .@enchants[1],4710,4801,4711; //Inteligence1 SP100 Inteligence2
- else if (.@i <= 496) setarray .@enchants[1],4710,4801,4721; //Inteligence1 SP100 Dexterity2
- else if (.@i <= 527) setarray .@enchants[1],4711,4720,4786; //Inteligence2 Dexterity1 Mdef2
- else if (.@i <= 558) setarray .@enchants[1],4711,4720,4760; //Inteligence2 Dexterity1 Matk1
- else if (.@i <= 589) setarray .@enchants[1],4711,4720,4711; //Inteligence2 Dexterity1 Inteligence2
- else if (.@i <= 620) setarray .@enchants[1],4711,4720,4721; //Inteligence2 Dexterity1 Dexterity2
- else if (.@i <= 651) setarray .@enchants[1],4711,4796,4786; //Inteligence2 HP200 Mdef2
- else if (.@i <= 682) setarray .@enchants[1],4711,4796,4760; //Inteligence2 HP200 Matk1
- else if (.@i <= 713) setarray .@enchants[1],4711,4796,4711; //Inteligence2 HP200 Inteligence2
- else if (.@i <= 744) setarray .@enchants[1],4711,4796,4721; //Inteligence2 HP200 Dexterity2
- else if (.@i <= 775) setarray .@enchants[1],4711,4710,4786; //Inteligence2 Inteligence1 Mdef2
- else if (.@i <= 806) setarray .@enchants[1],4711,4710,4760; //Inteligence2 Inteligence1 Matk1
- else if (.@i <= 837) setarray .@enchants[1],4711,4710,4711; //Inteligence2 Inteligence1 Inteligence2
- else if (.@i <= 868) setarray .@enchants[1],4711,4710,4721; //Inteligence2 Inteligence1 Dexterity2
- else if (.@i <= 899) setarray .@enchants[1],4711,4801,4786; //Inteligence2 SP100 Mdef2
- else if (.@i <= 930) setarray .@enchants[1],4711,4801,4760; //Inteligence2 SP100 Matk1
- else if (.@i <= 961) setarray .@enchants[1],4711,4801,4711; //Inteligence2 SP100 Inteligence2
- else if (.@i <= 992) setarray .@enchants[1],4711,4801,4721; //Inteligence2 SP100 Dexterity2
- else if (.@i <= 1023) setarray .@enchants[1],4720,4720,4786; //Dexterity1 Dexterity1 Mdef2
- else if (.@i <= 1054) setarray .@enchants[1],4720,4720,4760; //Dexterity1 Dexterity1 Matk1
- else if (.@i <= 1085) setarray .@enchants[1],4720,4720,4711; //Dexterity1 Dexterity1 Inteligence2
- else if (.@i <= 1116) setarray .@enchants[1],4720,4720,4721; //Dexterity1 Dexterity1 Dexterity2
- else if (.@i <= 1147) setarray .@enchants[1],4720,4796,4786; //Dexterity1 HP200 Mdef2
- else if (.@i <= 1178) setarray .@enchants[1],4720,4796,4760; //Dexterity1 HP200 Matk1
- else if (.@i <= 1209) setarray .@enchants[1],4720,4796,4711; //Dexterity1 HP200 Inteligence2
- else if (.@i <= 1240) setarray .@enchants[1],4720,4796,4721; //Dexterity1 HP200 Dexterity2
- else if (.@i <= 1271) setarray .@enchants[1],4720,4710,4786; //Dexterity1 Inteligence1 Mdef2
- else if (.@i <= 1302) setarray .@enchants[1],4720,4710,4760; //Dexterity1 Inteligence1 Matk1
- else if (.@i <= 1333) setarray .@enchants[1],4720,4710,4711; //Dexterity1 Inteligence1 Inteligence2
- else if (.@i <= 1364) setarray .@enchants[1],4720,4710,4721; //Dexterity1 Inteligence1 Dexterity2
- else if (.@i <= 1395) setarray .@enchants[1],4720,4801,4786; //Dexterity1 SP100 Mdef2
- else if (.@i <= 1426) setarray .@enchants[1],4720,4801,4760; //Dexterity1 SP100 Matk1
- else if (.@i <= 1457) setarray .@enchants[1],4720,4801,4711; //Dexterity1 SP100 Inteligence2
- else if (.@i <= 1488) setarray .@enchants[1],4720,4801,4721; //Dexterity1 SP100 Dexterity2
- else if (.@i <= 1519) setarray .@enchants[1],4721,4720,4786; //Dexterity2 Dexterity1 Mdef2
- else if (.@i <= 1550) setarray .@enchants[1],4721,4720,4760; //Dexterity2 Dexterity1 Matk1
- else if (.@i <= 1581) setarray .@enchants[1],4721,4720,4711; //Dexterity2 Dexterity1 Inteligence2
- else if (.@i <= 1612) setarray .@enchants[1],4721,4720,4721; //Dexterity2 Dexterity1 Dexterity2
- else if (.@i <= 1643) setarray .@enchants[1],4721,4796,4786; //Dexterity2 HP200 Mdef2
- else if (.@i <= 1674) setarray .@enchants[1],4721,4796,4760; //Dexterity2 HP200 Matk1
- else if (.@i <= 1705) setarray .@enchants[1],4721,4796,4711; //Dexterity2 HP200 Inteligence2
- else if (.@i <= 1736) setarray .@enchants[1],4721,4796,4721; //Dexterity2 HP200 Dexterity2
- else if (.@i <= 1767) setarray .@enchants[1],4721,4710,4786; //Dexterity2 Inteligence1 Mdef2
- else if (.@i <= 1798) setarray .@enchants[1],4721,4710,4760; //Dexterity2 Inteligence1 Matk1
- else if (.@i <= 1829) setarray .@enchants[1],4721,4710,4711; //Dexterity2 Inteligence1 Inteligence2
- else if (.@i <= 1860) setarray .@enchants[1],4721,4710,4721; //Dexterity2 Inteligence1 Dexterity2
- else if (.@i <= 1891) setarray .@enchants[1],4721,4801,4786; //Dexterity2 SP100 Mdef2
- else if (.@i <= 1922) setarray .@enchants[1],4721,4801,4760; //Dexterity2 SP100 Matk1
- else if (.@i <= 1953) setarray .@enchants[1],4721,4801,4711; //Dexterity2 SP100 Inteligence2
- else if (.@i <= 1984) setarray .@enchants[1],4721,4801,4721; //Dexterity2 SP100 Dexterity2
+ if (.@i <= 1984) {
+ // Basic combinations
+ // (raw: .@i increments by 31)
+ setarray .@enchant_slot1[0],4710,4711,4720,4721; //Inteligence1,Inteligence2,Dexterity1,Dexterity2
+ setarray .@enchant_slot2[0],4720,4796,4710,4801; //Dexterity1,HP200,Inteligence1,SP100
+ setarray .@enchant_slot3[0],4786,4760,4711,4721; //Mdef2,Matk1,Inteligence2,Dexterity2
+ setarray .@enchants[1],
+ .@enchant_slot1[rand(getarraysize(.@enchant_slot1))],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 1986) setarray .@enchants[1],4712,4713,4761; //Inteligence3 Inteligence4 Matk2
else if (.@i <= 1988) setarray .@enchants[1],4712,4713,4713; //Inteligence3 Inteligence4 Inteligence4
else if (.@i <= 1990) setarray .@enchants[1],4712,4761,4761; //Inteligence3 Matk2 Matk2
@@ -847,7 +522,7 @@ mora,99,93,5 script Artifact Crafter#pa0829 495,{
// Rune Knight, Guillotine Cross, & Ranger Enchants :: new_artifact
//============================================================
-mora,152,97,5 script Guardian of Power#pa082 515,{
+mora,152,97,5 script Guardian of Power#pa082 4_F_DOGTRAVELER,{
if (checkweight(1201,1) == 0) {
mes "Reduce the amount of items that you have in your inventory before continuing.";
close;
@@ -884,12 +559,13 @@ mora,152,97,5 script Guardian of Power#pa082 515,{
close;
}
mes "[Guardian of Power]";
- mes .@jobs$[.@job]+"~ which artifact do you want?";
+ mes .@jobs$[.@job]+"?";
+ mes "Which artifact do you want?";
next;
switch(.@job) {
case 0: // Rune Knight
setarray .@items[0],2475,2476,2574,2575;
- set .@i, select("Cancel:Ur's Greaves (Shoes):Peuz Greaves (Shoes):Ur's Manteau (Garment):Peuz Manteau (Garment)")-2;
+ set .@i, select("Cancel:Ur's Greaves (Shoes):Peuz's Greaves (Shoes):Ur's Manteau (Garment):Peuz's Manteau (Garment)")-2;
break;
case 1: // Guillotine Cross
setarray .@items[0],2477,2478,2577,2578;
@@ -917,7 +593,7 @@ mora,152,97,5 script Guardian of Power#pa082 515,{
close;
}
-mora,148,98,3 script Artifact Researcher#new 521,{
+mora,148,98,3 script Artifact Researcher#new 4_F_MORAFINE2,{
if (checkweight(1201,1) == 0) {
mes "Reduce the amount of items that you have in your inventory before continuing.";
close;
@@ -957,7 +633,7 @@ mora,148,98,3 script Artifact Researcher#new 521,{
}
if (Zeny < 100000 || countitem(6380) == 0) {
mes "[Artifact Researcher]";
- mes "I'm not giving these services out for free pal. 100,000 zeny or 1 Mora Coin. Is that too much to ask?";
+ mes "I'm not giving these services out for free pal. 100,000 zeny and 1 Mora Coin. Is that too much to ask?";
close;
}
mes "[Artifact Researcher]";
@@ -979,7 +655,6 @@ mora,148,98,3 script Artifact Researcher#new 521,{
set .@equip_id, getequipid(.@part);
set @mora_equip_part, .@part;
- // @mora_equip_id = enc_type
//callsub L_Socket,<enchant type>,<bonus enchant type>,<4-x enchants possible>;
// Enchant types:
// [1]ATK [2]CRIT [3]EVA [4]Healer [5]Spell 1 [6]Assist 1 [7]Assist 2 [8]STR [9]Range [10]Physical [11]Spell 2
@@ -1425,7 +1100,7 @@ L_Socket:
close;
}
delitem 6380,1; //Mora_Coin
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
delequip .@part;
if (.@enchant == 9) {
specialeffect2 EF_SUI_EXPLOSION;
@@ -1460,7 +1135,7 @@ L_Socket:
mes "[Artifact Researcher]";
mes "The ability to enhance remains.";
delitem 6380,1; //Mora_Coin
- set Zeny, Zeny-100000;
+ Zeny -= 100000;
delequip .@part;
// GetNonSlotItemSock2 .@equip_refine .@equip_id .@equip_card[0] .@equip_card[1] .@equip_card[2] .@equip_card[3]
@@ -1476,7 +1151,7 @@ L_Socket:
// Arch Bishop & Warlock Empowering :: relic_change
//============================================================
-mora,124,82,4 script Artifact Collector#blan 522,{
+mora,124,82,4 script Artifact Collector#blan 4_M_RAFLE_OR,{
if (checkweight(1201,1) == 0) {
mes "Reduce the amount of items that you have in your inventory before continuing.";
close;
@@ -1551,7 +1226,7 @@ mora,124,82,4 script Artifact Collector#blan 522,{
mes "[Artifact Collector]";
mes "+1, +2, +3, +4, +5, +6 those refinements are not strong enough to work on my craft.";
next;
- emotion 57,0;
+ emotion e_otl,0;
mes "[Artifact Collector]";
mes "But +7! +7 is rare and just barely strong enough to work in my crafting attempts.";
next;
@@ -1803,294 +1478,17 @@ function script F_Mora_Enchant {
delitem 6380,5; //Mora_Coin
delitem getarg(0),1;
set .@i, rand(1,4568);
- if (.@i <= 11) setarray .@enchants[1],4766,4720,4700; //Atk2 Dexterity1 Strength1
- else if (.@i <= 22) setarray .@enchants[1],4766,4720,4701; //Atk2 Dexterity1 Strength2
- else if (.@i <= 33) setarray .@enchants[1],4766,4720,4730; //Atk2 Dexterity1 Agility1
- else if (.@i <= 44) setarray .@enchants[1],4766,4720,4731; //Atk2 Dexterity1 Agility2
- else if (.@i <= 55) setarray .@enchants[1],4766,4720,4740; //Atk2 Dexterity1 Vitality1
- else if (.@i <= 66) setarray .@enchants[1],4766,4720,4741; //Atk2 Dexterity1 Vitality2
- else if (.@i <= 77) setarray .@enchants[1],4766,4721,4700; //Atk2 Dexterity2 Strength1
- else if (.@i <= 88) setarray .@enchants[1],4766,4721,4701; //Atk2 Dexterity2 Strength2
- else if (.@i <= 99) setarray .@enchants[1],4766,4721,4730; //Atk2 Dexterity2 Agility1
- else if (.@i <= 110) setarray .@enchants[1],4766,4721,4731; //Atk2 Dexterity2 Agility2
- else if (.@i <= 121) setarray .@enchants[1],4766,4721,4740; //Atk2 Dexterity2 Vitality1
- else if (.@i <= 132) setarray .@enchants[1],4766,4721,4741; //Atk2 Dexterity2 Vitality2
- else if (.@i <= 143) setarray .@enchants[1],4766,4710,4700; //Atk2 Inteligence1 Strength1
- else if (.@i <= 154) setarray .@enchants[1],4766,4710,4701; //Atk2 Inteligence1 Strength2
- else if (.@i <= 165) setarray .@enchants[1],4766,4710,4730; //Atk2 Inteligence1 Agility1
- else if (.@i <= 176) setarray .@enchants[1],4766,4710,4731; //Atk2 Inteligence1 Agility2
- else if (.@i <= 187) setarray .@enchants[1],4766,4710,4740; //Atk2 Inteligence1 Vitality1
- else if (.@i <= 198) setarray .@enchants[1],4766,4710,4741; //Atk2 Inteligence1 Vitality2
- else if (.@i <= 209) setarray .@enchants[1],4766,4711,4700; //Atk2 Inteligence2 Strength1
- else if (.@i <= 220) setarray .@enchants[1],4766,4711,4701; //Atk2 Inteligence2 Strength2
- else if (.@i <= 231) setarray .@enchants[1],4766,4711,4730; //Atk2 Inteligence2 Agility1
- else if (.@i <= 242) setarray .@enchants[1],4766,4711,4731; //Atk2 Inteligence2 Agility2
- else if (.@i <= 253) setarray .@enchants[1],4766,4711,4740; //Atk2 Inteligence2 Vitality1
- else if (.@i <= 264) setarray .@enchants[1],4766,4711,4741; //Atk2 Inteligence2 Vitality2
- else if (.@i <= 275) setarray .@enchants[1],4766,4750,4700; //Atk2 Luck1 Strength1
- else if (.@i <= 286) setarray .@enchants[1],4766,4750,4701; //Atk2 Luck1 Strength2
- else if (.@i <= 297) setarray .@enchants[1],4766,4750,4730; //Atk2 Luck1 Agility1
- else if (.@i <= 308) setarray .@enchants[1],4766,4750,4731; //Atk2 Luck1 Agility2
- else if (.@i <= 319) setarray .@enchants[1],4766,4750,4740; //Atk2 Luck1 Vitality1
- else if (.@i <= 330) setarray .@enchants[1],4766,4750,4741; //Atk2 Luck1 Vitality2
- else if (.@i <= 341) setarray .@enchants[1],4766,4751,4700; //Atk2 Luck2 Strength1
- else if (.@i <= 352) setarray .@enchants[1],4766,4751,4701; //Atk2 Luck2 Strength2
- else if (.@i <= 363) setarray .@enchants[1],4766,4751,4730; //Atk2 Luck2 Agility1
- else if (.@i <= 374) setarray .@enchants[1],4766,4751,4731; //Atk2 Luck2 Agility2
- else if (.@i <= 385) setarray .@enchants[1],4766,4751,4740; //Atk2 Luck2 Vitality1
- else if (.@i <= 396) setarray .@enchants[1],4766,4751,4741; //Atk2 Luck2 Vitality2
- else if (.@i <= 407) setarray .@enchants[1],4767,4720,4700; //Atk3 Dexterity1 Strength1
- else if (.@i <= 418) setarray .@enchants[1],4767,4720,4701; //Atk3 Dexterity1 Strength2
- else if (.@i <= 429) setarray .@enchants[1],4767,4720,4730; //Atk3 Dexterity1 Agility1
- else if (.@i <= 440) setarray .@enchants[1],4767,4720,4731; //Atk3 Dexterity1 Agility2
- else if (.@i <= 451) setarray .@enchants[1],4767,4720,4740; //Atk3 Dexterity1 Vitality1
- else if (.@i <= 462) setarray .@enchants[1],4767,4720,4741; //Atk3 Dexterity1 Vitality2
- else if (.@i <= 473) setarray .@enchants[1],4767,4721,4700; //Atk3 Dexterity2 Strength1
- else if (.@i <= 484) setarray .@enchants[1],4767,4721,4701; //Atk3 Dexterity2 Strength2
- else if (.@i <= 495) setarray .@enchants[1],4767,4721,4730; //Atk3 Dexterity2 Agility1
- else if (.@i <= 506) setarray .@enchants[1],4767,4721,4731; //Atk3 Dexterity2 Agility2
- else if (.@i <= 517) setarray .@enchants[1],4767,4721,4740; //Atk3 Dexterity2 Vitality1
- else if (.@i <= 528) setarray .@enchants[1],4767,4721,4741; //Atk3 Dexterity2 Vitality2
- else if (.@i <= 539) setarray .@enchants[1],4767,4710,4700; //Atk3 Inteligence1 Strength1
- else if (.@i <= 550) setarray .@enchants[1],4767,4710,4701; //Atk3 Inteligence1 Strength2
- else if (.@i <= 561) setarray .@enchants[1],4767,4710,4730; //Atk3 Inteligence1 Agility1
- else if (.@i <= 572) setarray .@enchants[1],4767,4710,4731; //Atk3 Inteligence1 Agility2
- else if (.@i <= 583) setarray .@enchants[1],4767,4710,4740; //Atk3 Inteligence1 Vitality1
- else if (.@i <= 594) setarray .@enchants[1],4767,4710,4741; //Atk3 Inteligence1 Vitality2
- else if (.@i <= 605) setarray .@enchants[1],4767,4711,4700; //Atk3 Inteligence2 Strength1
- else if (.@i <= 616) setarray .@enchants[1],4767,4711,4701; //Atk3 Inteligence2 Strength2
- else if (.@i <= 627) setarray .@enchants[1],4767,4711,4730; //Atk3 Inteligence2 Agility1
- else if (.@i <= 638) setarray .@enchants[1],4767,4711,4731; //Atk3 Inteligence2 Agility2
- else if (.@i <= 649) setarray .@enchants[1],4767,4711,4740; //Atk3 Inteligence2 Vitality1
- else if (.@i <= 660) setarray .@enchants[1],4767,4711,4741; //Atk3 Inteligence2 Vitality2
- else if (.@i <= 671) setarray .@enchants[1],4767,4750,4700; //Atk3 Luck1 Strength1
- else if (.@i <= 682) setarray .@enchants[1],4767,4750,4701; //Atk3 Luck1 Strength2
- else if (.@i <= 693) setarray .@enchants[1],4767,4750,4730; //Atk3 Luck1 Agility1
- else if (.@i <= 704) setarray .@enchants[1],4767,4750,4731; //Atk3 Luck1 Agility2
- else if (.@i <= 715) setarray .@enchants[1],4767,4750,4740; //Atk3 Luck1 Vitality1
- else if (.@i <= 726) setarray .@enchants[1],4767,4750,4741; //Atk3 Luck1 Vitality2
- else if (.@i <= 737) setarray .@enchants[1],4767,4751,4700; //Atk3 Luck2 Strength1
- else if (.@i <= 748) setarray .@enchants[1],4767,4751,4701; //Atk3 Luck2 Strength2
- else if (.@i <= 759) setarray .@enchants[1],4767,4751,4730; //Atk3 Luck2 Agility1
- else if (.@i <= 770) setarray .@enchants[1],4767,4751,4731; //Atk3 Luck2 Agility2
- else if (.@i <= 781) setarray .@enchants[1],4767,4751,4740; //Atk3 Luck2 Vitality1
- else if (.@i <= 792) setarray .@enchants[1],4767,4751,4741; //Atk3 Luck2 Vitality2
- else if (.@i <= 803) setarray .@enchants[1],4764,4720,4700; //Critical5 Dexterity1 Strength1
- else if (.@i <= 814) setarray .@enchants[1],4764,4720,4701; //Critical5 Dexterity1 Strength2
- else if (.@i <= 825) setarray .@enchants[1],4764,4720,4730; //Critical5 Dexterity1 Agility1
- else if (.@i <= 836) setarray .@enchants[1],4764,4720,4731; //Critical5 Dexterity1 Agility2
- else if (.@i <= 847) setarray .@enchants[1],4764,4720,4740; //Critical5 Dexterity1 Vitality1
- else if (.@i <= 858) setarray .@enchants[1],4764,4720,4741; //Critical5 Dexterity1 Vitality2
- else if (.@i <= 869) setarray .@enchants[1],4764,4721,4700; //Critical5 Dexterity2 Strength1
- else if (.@i <= 880) setarray .@enchants[1],4764,4721,4701; //Critical5 Dexterity2 Strength2
- else if (.@i <= 891) setarray .@enchants[1],4764,4721,4730; //Critical5 Dexterity2 Agility1
- else if (.@i <= 902) setarray .@enchants[1],4764,4721,4731; //Critical5 Dexterity2 Agility2
- else if (.@i <= 913) setarray .@enchants[1],4764,4721,4740; //Critical5 Dexterity2 Vitality1
- else if (.@i <= 924) setarray .@enchants[1],4764,4721,4741; //Critical5 Dexterity2 Vitality2
- else if (.@i <= 935) setarray .@enchants[1],4764,4710,4700; //Critical5 Inteligence1 Strength1
- else if (.@i <= 946) setarray .@enchants[1],4764,4710,4701; //Critical5 Inteligence1 Strength2
- else if (.@i <= 957) setarray .@enchants[1],4764,4710,4730; //Critical5 Inteligence1 Agility1
- else if (.@i <= 968) setarray .@enchants[1],4764,4710,4731; //Critical5 Inteligence1 Agility2
- else if (.@i <= 979) setarray .@enchants[1],4764,4710,4740; //Critical5 Inteligence1 Vitality1
- else if (.@i <= 990) setarray .@enchants[1],4764,4710,4741; //Critical5 Inteligence1 Vitality2
- else if (.@i <= 1001) setarray .@enchants[1],4764,4711,4700; //Critical5 Inteligence2 Strength1
- else if (.@i <= 1012) setarray .@enchants[1],4764,4711,4701; //Critical5 Inteligence2 Strength2
- else if (.@i <= 1023) setarray .@enchants[1],4764,4711,4730; //Critical5 Inteligence2 Agility1
- else if (.@i <= 1034) setarray .@enchants[1],4764,4711,4731; //Critical5 Inteligence2 Agility2
- else if (.@i <= 1045) setarray .@enchants[1],4764,4711,4740; //Critical5 Inteligence2 Vitality1
- else if (.@i <= 1056) setarray .@enchants[1],4764,4711,4741; //Critical5 Inteligence2 Vitality2
- else if (.@i <= 1067) setarray .@enchants[1],4764,4750,4700; //Critical5 Luck1 Strength1
- else if (.@i <= 1078) setarray .@enchants[1],4764,4750,4701; //Critical5 Luck1 Strength2
- else if (.@i <= 1089) setarray .@enchants[1],4764,4750,4730; //Critical5 Luck1 Agility1
- else if (.@i <= 1100) setarray .@enchants[1],4764,4750,4731; //Critical5 Luck1 Agility2
- else if (.@i <= 1111) setarray .@enchants[1],4764,4750,4740; //Critical5 Luck1 Vitality1
- else if (.@i <= 1122) setarray .@enchants[1],4764,4750,4741; //Critical5 Luck1 Vitality2
- else if (.@i <= 1133) setarray .@enchants[1],4764,4751,4700; //Critical5 Luck2 Strength1
- else if (.@i <= 1144) setarray .@enchants[1],4764,4751,4701; //Critical5 Luck2 Strength2
- else if (.@i <= 1155) setarray .@enchants[1],4764,4751,4730; //Critical5 Luck2 Agility1
- else if (.@i <= 1166) setarray .@enchants[1],4764,4751,4731; //Critical5 Luck2 Agility2
- else if (.@i <= 1177) setarray .@enchants[1],4764,4751,4740; //Critical5 Luck2 Vitality1
- else if (.@i <= 1188) setarray .@enchants[1],4764,4751,4741; //Critical5 Luck2 Vitality2
- else if (.@i <= 1199) setarray .@enchants[1],4765,4720,4700; //Critical7 Dexterity1 Strength1
- else if (.@i <= 1210) setarray .@enchants[1],4765,4720,4701; //Critical7 Dexterity1 Strength2
- else if (.@i <= 1221) setarray .@enchants[1],4765,4720,4730; //Critical7 Dexterity1 Agility1
- else if (.@i <= 1232) setarray .@enchants[1],4765,4720,4731; //Critical7 Dexterity1 Agility2
- else if (.@i <= 1243) setarray .@enchants[1],4765,4720,4740; //Critical7 Dexterity1 Vitality1
- else if (.@i <= 1254) setarray .@enchants[1],4765,4720,4741; //Critical7 Dexterity1 Vitality2
- else if (.@i <= 1265) setarray .@enchants[1],4765,4721,4700; //Critical7 Dexterity2 Strength1
- else if (.@i <= 1276) setarray .@enchants[1],4765,4721,4701; //Critical7 Dexterity2 Strength2
- else if (.@i <= 1287) setarray .@enchants[1],4765,4721,4730; //Critical7 Dexterity2 Agility1
- else if (.@i <= 1298) setarray .@enchants[1],4765,4721,4731; //Critical7 Dexterity2 Agility2
- else if (.@i <= 1309) setarray .@enchants[1],4765,4721,4740; //Critical7 Dexterity2 Vitality1
- else if (.@i <= 1320) setarray .@enchants[1],4765,4721,4741; //Critical7 Dexterity2 Vitality2
- else if (.@i <= 1331) setarray .@enchants[1],4765,4710,4700; //Critical7 Inteligence1 Strength1
- else if (.@i <= 1342) setarray .@enchants[1],4765,4710,4701; //Critical7 Inteligence1 Strength2
- else if (.@i <= 1353) setarray .@enchants[1],4765,4710,4730; //Critical7 Inteligence1 Agility1
- else if (.@i <= 1364) setarray .@enchants[1],4765,4710,4731; //Critical7 Inteligence1 Agility2
- else if (.@i <= 1375) setarray .@enchants[1],4765,4710,4740; //Critical7 Inteligence1 Vitality1
- else if (.@i <= 1386) setarray .@enchants[1],4765,4710,4741; //Critical7 Inteligence1 Vitality2
- else if (.@i <= 1397) setarray .@enchants[1],4765,4711,4700; //Critical7 Inteligence2 Strength1
- else if (.@i <= 1408) setarray .@enchants[1],4765,4711,4701; //Critical7 Inteligence2 Strength2
- else if (.@i <= 1419) setarray .@enchants[1],4765,4711,4730; //Critical7 Inteligence2 Agility1
- else if (.@i <= 1430) setarray .@enchants[1],4765,4711,4731; //Critical7 Inteligence2 Agility2
- else if (.@i <= 1441) setarray .@enchants[1],4765,4711,4740; //Critical7 Inteligence2 Vitality1
- else if (.@i <= 1452) setarray .@enchants[1],4765,4711,4741; //Critical7 Inteligence2 Vitality2
- else if (.@i <= 1463) setarray .@enchants[1],4765,4750,4700; //Critical7 Luck1 Strength1
- else if (.@i <= 1474) setarray .@enchants[1],4765,4750,4701; //Critical7 Luck1 Strength2
- else if (.@i <= 1485) setarray .@enchants[1],4765,4750,4730; //Critical7 Luck1 Agility1
- else if (.@i <= 1496) setarray .@enchants[1],4765,4750,4731; //Critical7 Luck1 Agility2
- else if (.@i <= 1507) setarray .@enchants[1],4765,4750,4740; //Critical7 Luck1 Vitality1
- else if (.@i <= 1518) setarray .@enchants[1],4765,4750,4741; //Critical7 Luck1 Vitality2
- else if (.@i <= 1529) setarray .@enchants[1],4765,4751,4700; //Critical7 Luck2 Strength1
- else if (.@i <= 1540) setarray .@enchants[1],4765,4751,4701; //Critical7 Luck2 Strength2
- else if (.@i <= 1551) setarray .@enchants[1],4765,4751,4730; //Critical7 Luck2 Agility1
- else if (.@i <= 1562) setarray .@enchants[1],4765,4751,4731; //Critical7 Luck2 Agility2
- else if (.@i <= 1573) setarray .@enchants[1],4765,4751,4740; //Critical7 Luck2 Vitality1
- else if (.@i <= 1584) setarray .@enchants[1],4765,4751,4741; //Critical7 Luck2 Vitality2
- else if (.@i <= 1595) setarray .@enchants[1],4762,4720,4700; //Evasion6 Dexterity1 Strength1
- else if (.@i <= 1606) setarray .@enchants[1],4762,4720,4701; //Evasion6 Dexterity1 Strength2
- else if (.@i <= 1617) setarray .@enchants[1],4762,4720,4730; //Evasion6 Dexterity1 Agility1
- else if (.@i <= 1628) setarray .@enchants[1],4762,4720,4731; //Evasion6 Dexterity1 Agility2
- else if (.@i <= 1639) setarray .@enchants[1],4762,4720,4740; //Evasion6 Dexterity1 Vitality1
- else if (.@i <= 1650) setarray .@enchants[1],4762,4720,4741; //Evasion6 Dexterity1 Vitality2
- else if (.@i <= 1661) setarray .@enchants[1],4762,4721,4700; //Evasion6 Dexterity2 Strength1
- else if (.@i <= 1672) setarray .@enchants[1],4762,4721,4701; //Evasion6 Dexterity2 Strength2
- else if (.@i <= 1683) setarray .@enchants[1],4762,4721,4730; //Evasion6 Dexterity2 Agility1
- else if (.@i <= 1694) setarray .@enchants[1],4762,4721,4731; //Evasion6 Dexterity2 Agility2
- else if (.@i <= 1705) setarray .@enchants[1],4762,4721,4740; //Evasion6 Dexterity2 Vitality1
- else if (.@i <= 1716) setarray .@enchants[1],4762,4721,4741; //Evasion6 Dexterity2 Vitality2
- else if (.@i <= 1727) setarray .@enchants[1],4762,4710,4700; //Evasion6 Inteligence1 Strength1
- else if (.@i <= 1738) setarray .@enchants[1],4762,4710,4701; //Evasion6 Inteligence1 Strength2
- else if (.@i <= 1749) setarray .@enchants[1],4762,4710,4730; //Evasion6 Inteligence1 Agility1
- else if (.@i <= 1760) setarray .@enchants[1],4762,4710,4731; //Evasion6 Inteligence1 Agility2
- else if (.@i <= 1771) setarray .@enchants[1],4762,4710,4740; //Evasion6 Inteligence1 Vitality1
- else if (.@i <= 1782) setarray .@enchants[1],4762,4710,4741; //Evasion6 Inteligence1 Vitality2
- else if (.@i <= 1793) setarray .@enchants[1],4762,4711,4700; //Evasion6 Inteligence2 Strength1
- else if (.@i <= 1804) setarray .@enchants[1],4762,4711,4701; //Evasion6 Inteligence2 Strength2
- else if (.@i <= 1815) setarray .@enchants[1],4762,4711,4730; //Evasion6 Inteligence2 Agility1
- else if (.@i <= 1826) setarray .@enchants[1],4762,4711,4731; //Evasion6 Inteligence2 Agility2
- else if (.@i <= 1837) setarray .@enchants[1],4762,4711,4740; //Evasion6 Inteligence2 Vitality1
- else if (.@i <= 1848) setarray .@enchants[1],4762,4711,4741; //Evasion6 Inteligence2 Vitality2
- else if (.@i <= 1859) setarray .@enchants[1],4762,4750,4700; //Evasion6 Luck1 Strength1
- else if (.@i <= 1870) setarray .@enchants[1],4762,4750,4701; //Evasion6 Luck1 Strength2
- else if (.@i <= 1881) setarray .@enchants[1],4762,4750,4730; //Evasion6 Luck1 Agility1
- else if (.@i <= 1892) setarray .@enchants[1],4762,4750,4731; //Evasion6 Luck1 Agility2
- else if (.@i <= 1903) setarray .@enchants[1],4762,4750,4740; //Evasion6 Luck1 Vitality1
- else if (.@i <= 1914) setarray .@enchants[1],4762,4750,4741; //Evasion6 Luck1 Vitality2
- else if (.@i <= 1925) setarray .@enchants[1],4762,4751,4700; //Evasion6 Luck2 Strength1
- else if (.@i <= 1936) setarray .@enchants[1],4762,4751,4701; //Evasion6 Luck2 Strength2
- else if (.@i <= 1947) setarray .@enchants[1],4762,4751,4730; //Evasion6 Luck2 Agility1
- else if (.@i <= 1958) setarray .@enchants[1],4762,4751,4731; //Evasion6 Luck2 Agility2
- else if (.@i <= 1969) setarray .@enchants[1],4762,4751,4740; //Evasion6 Luck2 Vitality1
- else if (.@i <= 1980) setarray .@enchants[1],4762,4751,4741; //Evasion6 Luck2 Vitality2
- else if (.@i <= 1991) setarray .@enchants[1],4763,4720,4700; //Evasion12 Dexterity1 Strength1
- else if (.@i <= 2002) setarray .@enchants[1],4763,4720,4701; //Evasion12 Dexterity1 Strength2
- else if (.@i <= 2013) setarray .@enchants[1],4763,4720,4730; //Evasion12 Dexterity1 Agility1
- else if (.@i <= 2024) setarray .@enchants[1],4763,4720,4731; //Evasion12 Dexterity1 Agility2
- else if (.@i <= 2035) setarray .@enchants[1],4763,4720,4740; //Evasion12 Dexterity1 Vitality1
- else if (.@i <= 2046) setarray .@enchants[1],4763,4720,4741; //Evasion12 Dexterity1 Vitality2
- else if (.@i <= 2057) setarray .@enchants[1],4763,4721,4700; //Evasion12 Dexterity2 Strength1
- else if (.@i <= 2068) setarray .@enchants[1],4763,4721,4701; //Evasion12 Dexterity2 Strength2
- else if (.@i <= 2079) setarray .@enchants[1],4763,4721,4730; //Evasion12 Dexterity2 Agility1
- else if (.@i <= 2090) setarray .@enchants[1],4763,4721,4731; //Evasion12 Dexterity2 Agility2
- else if (.@i <= 2101) setarray .@enchants[1],4763,4721,4740; //Evasion12 Dexterity2 Vitality1
- else if (.@i <= 2112) setarray .@enchants[1],4763,4721,4741; //Evasion12 Dexterity2 Vitality2
- else if (.@i <= 2123) setarray .@enchants[1],4763,4710,4700; //Evasion12 Inteligence1 Strength1
- else if (.@i <= 2134) setarray .@enchants[1],4763,4710,4701; //Evasion12 Inteligence1 Strength2
- else if (.@i <= 2145) setarray .@enchants[1],4763,4710,4730; //Evasion12 Inteligence1 Agility1
- else if (.@i <= 2156) setarray .@enchants[1],4763,4710,4731; //Evasion12 Inteligence1 Agility2
- else if (.@i <= 2167) setarray .@enchants[1],4763,4710,4740; //Evasion12 Inteligence1 Vitality1
- else if (.@i <= 2178) setarray .@enchants[1],4763,4710,4741; //Evasion12 Inteligence1 Vitality2
- else if (.@i <= 2189) setarray .@enchants[1],4763,4711,4700; //Evasion12 Inteligence2 Strength1
- else if (.@i <= 2200) setarray .@enchants[1],4763,4711,4701; //Evasion12 Inteligence2 Strength2
- else if (.@i <= 2211) setarray .@enchants[1],4763,4711,4730; //Evasion12 Inteligence2 Agility1
- else if (.@i <= 2222) setarray .@enchants[1],4763,4711,4731; //Evasion12 Inteligence2 Agility2
- else if (.@i <= 2233) setarray .@enchants[1],4763,4711,4740; //Evasion12 Inteligence2 Vitality1
- else if (.@i <= 2244) setarray .@enchants[1],4763,4711,4741; //Evasion12 Inteligence2 Vitality2
- else if (.@i <= 2255) setarray .@enchants[1],4763,4750,4700; //Evasion12 Luck1 Strength1
- else if (.@i <= 2266) setarray .@enchants[1],4763,4750,4701; //Evasion12 Luck1 Strength2
- else if (.@i <= 2277) setarray .@enchants[1],4763,4750,4730; //Evasion12 Luck1 Agility1
- else if (.@i <= 2288) setarray .@enchants[1],4763,4750,4731; //Evasion12 Luck1 Agility2
- else if (.@i <= 2299) setarray .@enchants[1],4763,4750,4740; //Evasion12 Luck1 Vitality1
- else if (.@i <= 2310) setarray .@enchants[1],4763,4750,4741; //Evasion12 Luck1 Vitality2
- else if (.@i <= 2321) setarray .@enchants[1],4763,4751,4700; //Evasion12 Luck2 Strength1
- else if (.@i <= 2332) setarray .@enchants[1],4763,4751,4701; //Evasion12 Luck2 Strength2
- else if (.@i <= 2343) setarray .@enchants[1],4763,4751,4730; //Evasion12 Luck2 Agility1
- else if (.@i <= 2354) setarray .@enchants[1],4763,4751,4731; //Evasion12 Luck2 Agility2
- else if (.@i <= 2365) setarray .@enchants[1],4763,4751,4740; //Evasion12 Luck2 Vitality1
- else if (.@i <= 2376) setarray .@enchants[1],4763,4751,4741; //Evasion12 Luck2 Vitality2
- else if (.@i <= 2387) setarray .@enchants[1],4760,4720,4700; //Matk1 Dexterity1 Strength1
- else if (.@i <= 2398) setarray .@enchants[1],4760,4720,4701; //Matk1 Dexterity1 Strength2
- else if (.@i <= 2409) setarray .@enchants[1],4760,4720,4730; //Matk1 Dexterity1 Agility1
- else if (.@i <= 2420) setarray .@enchants[1],4760,4720,4731; //Matk1 Dexterity1 Agility2
- else if (.@i <= 2431) setarray .@enchants[1],4760,4720,4740; //Matk1 Dexterity1 Vitality1
- else if (.@i <= 2442) setarray .@enchants[1],4760,4720,4741; //Matk1 Dexterity1 Vitality2
- else if (.@i <= 2453) setarray .@enchants[1],4760,4721,4700; //Matk1 Dexterity2 Strength1
- else if (.@i <= 2464) setarray .@enchants[1],4760,4721,4701; //Matk1 Dexterity2 Strength2
- else if (.@i <= 2475) setarray .@enchants[1],4760,4721,4730; //Matk1 Dexterity2 Agility1
- else if (.@i <= 2486) setarray .@enchants[1],4760,4721,4731; //Matk1 Dexterity2 Agility2
- else if (.@i <= 2497) setarray .@enchants[1],4760,4721,4740; //Matk1 Dexterity2 Vitality1
- else if (.@i <= 2508) setarray .@enchants[1],4760,4721,4741; //Matk1 Dexterity2 Vitality2
- else if (.@i <= 2519) setarray .@enchants[1],4760,4710,4700; //Matk1 Inteligence1 Strength1
- else if (.@i <= 2530) setarray .@enchants[1],4760,4710,4701; //Matk1 Inteligence1 Strength2
- else if (.@i <= 2541) setarray .@enchants[1],4760,4710,4730; //Matk1 Inteligence1 Agility1
- else if (.@i <= 2552) setarray .@enchants[1],4760,4710,4731; //Matk1 Inteligence1 Agility2
- else if (.@i <= 2563) setarray .@enchants[1],4760,4710,4740; //Matk1 Inteligence1 Vitality1
- else if (.@i <= 2574) setarray .@enchants[1],4760,4710,4741; //Matk1 Inteligence1 Vitality2
- else if (.@i <= 2585) setarray .@enchants[1],4760,4711,4700; //Matk1 Inteligence2 Strength1
- else if (.@i <= 2596) setarray .@enchants[1],4760,4711,4701; //Matk1 Inteligence2 Strength2
- else if (.@i <= 2607) setarray .@enchants[1],4760,4711,4730; //Matk1 Inteligence2 Agility1
- else if (.@i <= 2618) setarray .@enchants[1],4760,4711,4731; //Matk1 Inteligence2 Agility2
- else if (.@i <= 2629) setarray .@enchants[1],4760,4711,4740; //Matk1 Inteligence2 Vitality1
- else if (.@i <= 2640) setarray .@enchants[1],4760,4711,4741; //Matk1 Inteligence2 Vitality2
- else if (.@i <= 2651) setarray .@enchants[1],4760,4750,4700; //Matk1 Luck1 Strength1
- else if (.@i <= 2662) setarray .@enchants[1],4760,4750,4701; //Matk1 Luck1 Strength2
- else if (.@i <= 2673) setarray .@enchants[1],4760,4750,4730; //Matk1 Luck1 Agility1
- else if (.@i <= 2684) setarray .@enchants[1],4760,4750,4731; //Matk1 Luck1 Agility2
- else if (.@i <= 2695) setarray .@enchants[1],4760,4750,4740; //Matk1 Luck1 Vitality1
- else if (.@i <= 2706) setarray .@enchants[1],4760,4750,4741; //Matk1 Luck1 Vitality2
- else if (.@i <= 2717) setarray .@enchants[1],4760,4751,4700; //Matk1 Luck2 Strength1
- else if (.@i <= 2728) setarray .@enchants[1],4760,4751,4701; //Matk1 Luck2 Strength2
- else if (.@i <= 2739) setarray .@enchants[1],4760,4751,4730; //Matk1 Luck2 Agility1
- else if (.@i <= 2750) setarray .@enchants[1],4760,4751,4731; //Matk1 Luck2 Agility2
- else if (.@i <= 2761) setarray .@enchants[1],4760,4751,4740; //Matk1 Luck2 Vitality1
- else if (.@i <= 2772) setarray .@enchants[1],4760,4751,4741; //Matk1 Luck2 Vitality2
- else if (.@i <= 2783) setarray .@enchants[1],4761,4720,4700; //Matk2 Dexterity1 Strength1
- else if (.@i <= 2794) setarray .@enchants[1],4761,4720,4701; //Matk2 Dexterity1 Strength2
- else if (.@i <= 2805) setarray .@enchants[1],4761,4720,4730; //Matk2 Dexterity1 Agility1
- else if (.@i <= 2816) setarray .@enchants[1],4761,4720,4731; //Matk2 Dexterity1 Agility2
- else if (.@i <= 2827) setarray .@enchants[1],4761,4720,4740; //Matk2 Dexterity1 Vitality1
- else if (.@i <= 2838) setarray .@enchants[1],4761,4720,4741; //Matk2 Dexterity1 Vitality2
- else if (.@i <= 2849) setarray .@enchants[1],4761,4721,4700; //Matk2 Dexterity2 Strength1
- else if (.@i <= 2860) setarray .@enchants[1],4761,4721,4701; //Matk2 Dexterity2 Strength2
- else if (.@i <= 2871) setarray .@enchants[1],4761,4721,4730; //Matk2 Dexterity2 Agility1
- else if (.@i <= 2882) setarray .@enchants[1],4761,4721,4731; //Matk2 Dexterity2 Agility2
- else if (.@i <= 2893) setarray .@enchants[1],4761,4721,4740; //Matk2 Dexterity2 Vitality1
- else if (.@i <= 2904) setarray .@enchants[1],4761,4721,4741; //Matk2 Dexterity2 Vitality2
- else if (.@i <= 2915) setarray .@enchants[1],4761,4710,4700; //Matk2 Inteligence1 Strength1
- else if (.@i <= 2926) setarray .@enchants[1],4761,4710,4701; //Matk2 Inteligence1 Strength2
- else if (.@i <= 2937) setarray .@enchants[1],4761,4710,4730; //Matk2 Inteligence1 Agility1
- else if (.@i <= 2948) setarray .@enchants[1],4761,4710,4731; //Matk2 Inteligence1 Agility2
- else if (.@i <= 2959) setarray .@enchants[1],4761,4710,4740; //Matk2 Inteligence1 Vitality1
- else if (.@i <= 2970) setarray .@enchants[1],4761,4710,4741; //Matk2 Inteligence1 Vitality2
- else if (.@i <= 2981) setarray .@enchants[1],4761,4711,4700; //Matk2 Inteligence2 Strength1
- else if (.@i <= 2992) setarray .@enchants[1],4761,4711,4701; //Matk2 Inteligence2 Strength2
- else if (.@i <= 3003) setarray .@enchants[1],4761,4711,4730; //Matk2 Inteligence2 Agility1
- else if (.@i <= 3014) setarray .@enchants[1],4761,4711,4731; //Matk2 Inteligence2 Agility2
- else if (.@i <= 3025) setarray .@enchants[1],4761,4711,4740; //Matk2 Inteligence2 Vitality1
- else if (.@i <= 3036) setarray .@enchants[1],4761,4711,4741; //Matk2 Inteligence2 Vitality2
- else if (.@i <= 3047) setarray .@enchants[1],4761,4750,4700; //Matk2 Luck1 Strength1
- else if (.@i <= 3058) setarray .@enchants[1],4761,4750,4701; //Matk2 Luck1 Strength2
- else if (.@i <= 3069) setarray .@enchants[1],4761,4750,4730; //Matk2 Luck1 Agility1
- else if (.@i <= 3080) setarray .@enchants[1],4761,4750,4731; //Matk2 Luck1 Agility2
- else if (.@i <= 3091) setarray .@enchants[1],4761,4750,4740; //Matk2 Luck1 Vitality1
- else if (.@i <= 3102) setarray .@enchants[1],4761,4750,4741; //Matk2 Luck1 Vitality2
- else if (.@i <= 3113) setarray .@enchants[1],4761,4751,4700; //Matk2 Luck2 Strength1
- else if (.@i <= 3124) setarray .@enchants[1],4761,4751,4701; //Matk2 Luck2 Strength2
- else if (.@i <= 3135) setarray .@enchants[1],4761,4751,4730; //Matk2 Luck2 Agility1
- else if (.@i <= 3146) setarray .@enchants[1],4761,4751,4731; //Matk2 Luck2 Agility2
- else if (.@i <= 3157) setarray .@enchants[1],4761,4751,4740; //Matk2 Luck2 Vitality1
- else if (.@i <= 3168) setarray .@enchants[1],4761,4751,4741; //Matk2 Luck2 Vitality2
+ if (.@i <= 3168) {
+ // Basic combinations
+ // (raw: .@i increments by 11)
+ setarray .@enchant_slot1[0],4766,4767,4764,4765,4762,4763,4760,4761; //Atk2,Atk3,Critical5,Critical7,Evasion6,Evasion12,Matk1,Matk2
+ setarray .@enchant_slot2[0],4720,4721,4710,4711,4750,4751; //Dexterity1,Dexterity2,Inteligence1,Inteligence2,Luck1,Luck2
+ setarray .@enchant_slot3[0],4700,4701,4730,4731,4740,4741; //Strength1,Strength2,Agility1,Agility2,Vitality1,Vitality2
+ setarray .@enchants[1],
+ .@enchant_slot1[rand(getarraysize(.@enchant_slot1))],
+ .@enchant_slot2[rand(getarraysize(.@enchant_slot2))],
+ .@enchant_slot3[rand(getarraysize(.@enchant_slot3))];
+ }
else if (.@i <= 3179) setarray .@enchants[1],4761,4720,4700; //Matk2 Dexterity1 Strength1
else if (.@i <= 3181) setarray .@enchants[1],4761,4712,4712; //Matk2 Inteligence3 Inteligence3
else if (.@i <= 3183) setarray .@enchants[1],4765,4732,4732; //Critical7 Agility3 Agility3
@@ -2106,7 +1504,7 @@ function script F_Mora_Enchant {
getitem2 getarg(0),1,1,0,0,0,.@enchants[1],.@enchants[2],.@enchants[3];
return 1;
}
-mora,105,176,4 script Master Tailor#pa0829 509,{
+mora,105,176,4 script Master Tailor#pa0829 4_ELEPHANT,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;
@@ -2198,7 +1596,7 @@ mora,105,176,4 script Master Tailor#pa0829 509,{
}
}
-mora,123,177,6 script Pendant Crafter#pa0829 509,{
+mora,123,177,6 script Pendant Crafter#pa0829 4_ELEPHANT,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;
@@ -2268,7 +1666,7 @@ mora,123,177,6 script Pendant Crafter#pa0829 509,{
}
}
-mora,134,166,4 script Bulberry Westhood#pa0829 509,{
+mora,134,166,4 script Bulberry Westhood#pa0829 4_ELEPHANT,{
if (checkweight(1201,1) == 0) {
mes "You have too many kinds of things with you to do that. Throw out some of them and try again.";
close;