summaryrefslogtreecommitdiff
path: root/npc/re/merchants/shadow_refiner.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/re/merchants/shadow_refiner.txt')
-rw-r--r--npc/re/merchants/shadow_refiner.txt17
1 files changed, 13 insertions, 4 deletions
diff --git a/npc/re/merchants/shadow_refiner.txt b/npc/re/merchants/shadow_refiner.txt
index 5bb888d87..33d23450c 100644
--- a/npc/re/merchants/shadow_refiner.txt
+++ b/npc/re/merchants/shadow_refiner.txt
@@ -21,8 +21,8 @@ itemmall,31,76,3 script Shadow Blacksmith#nomal 4_F_JOB_BLACKSMITH,{
.@menu$ = .@menu$+((getequipisequiped(.@i))?getequipname(.@i):"^8C8C8C"+.@position$[.@i-EQI_SHADOW_ARMOR]+" [Not Equipped]^000000")+":";
}
.@menu$ = .@menu$+"Refine Info";
- .@SelectedPart = select(.@menu$);
- if (.@SelectedPart == 7){
+ .@SelectedPart = select(.@menu$)+EQI_SHADOW_ARMOR-1;
+ if (.@SelectedPart == EQI_SHADOW_ACC_L+1){ // Refine Info
mes "[Shadow Blacksmith]";
mes "Shadow item will gain extra bonus effect by the refine level, same as normal weapon/armour items.";
next;
@@ -38,7 +38,6 @@ itemmall,31,76,3 script Shadow Blacksmith#nomal 4_F_JOB_BLACKSMITH,{
mes "When +5 or higher refining Shadow item can be destroyed, please use Enriched or HD ingredient for the refinement.";
close;
}
- .@SelectedPart += EQI_SHADOW_ARMOR-1;
while(1){
mes "[Shadow Blacksmith]";
mes "20000 zeny will be spent as a refine fee.";
@@ -125,6 +124,16 @@ itemmall,31,76,3 script Shadow Blacksmith#nomal 4_F_JOB_BLACKSMITH,{
mes "[Shadow Blacksmith]";
mes "Here we go--!!!";
next;
+ if (Zeny < 20000) {
+ mes "[Shadow Blacksmith]";
+ mes "You do not have enough refine fee.";
+ close;
+ }
+ if (!countitem(.@choose)) {
+ mes "[Shadow Blacksmith]";
+ mes "You do not have enough "+ getitemname(.@choose) +".";
+ close;
+ }
delitem .@choose,1;
Zeny -= 20000;
if (getequippercentrefinery(.@SelectedPart) > rand(100) || getequippercentrefinery(.@SelectedPart) > rand(100)) {
@@ -143,4 +152,4 @@ itemmall,31,76,3 script Shadow Blacksmith#nomal 4_F_JOB_BLACKSMITH,{
close;
}
}
-} \ No newline at end of file
+}