From a37b72670ce4e6a6993a5cc09a299eb7ccef9bc0 Mon Sep 17 00:00:00 2001 From: Atemo Date: Mon, 23 May 2022 17:26:21 +0200 Subject: [PATCH] Added getequiprefinerycnt check in an ep17.1 enchant npc (#6952) * Added/corrected check in an ep17.1 enchant npc Thanks to @mazvi, @taiga-x --- npc/re/merchants/enchan_illusion_17_1.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/npc/re/merchants/enchan_illusion_17_1.txt b/npc/re/merchants/enchan_illusion_17_1.txt index 7ba5e9d4de..de79675453 100644 --- a/npc/re/merchants/enchan_illusion_17_1.txt +++ b/npc/re/merchants/enchan_illusion_17_1.txt @@ -503,6 +503,10 @@ sp_cor,106,136,3 script RS26#illusion_enchant 4_SYS_MSG,{ function module_check; .@s -= 2; .@equip_id = getequipid(.@part); + .@refine = getequiprefinerycnt(.@part); + for (.@i = 0; .@i < 4; .@i++) + .@card[.@i] = getequipcardid(.@part,.@i); + copyarray .@check[0],.@card[0],4; if (!.@equip_id || .@id[0] != .@equip_id && .@id[1] != .@equip_id) { mes "[RS26]"; mes "The equipment needs to be checked. That thing is not something this device can work with."; @@ -542,9 +546,6 @@ sp_cor,106,136,3 script RS26#illusion_enchant 4_SYS_MSG,{ mes "Then, please visit me again when you need my help~"; close; } - for (.@i = 0; .@i < 4; .@i++) - .@card[.@i] = getequipcardid(.@part,.@i); - copyarray .@check[0],.@card[0],4; for (.@i = 1; .@i < 4; .@i++) { if (.@card[.@i] == 0) { .@augment_slot = .@i;