summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-07-13 14:10:23 -0300
committerJesusaves <cpntb1@ymail.com>2023-07-13 14:10:23 -0300
commit6cfdd208aba89ee99d241b08377d6f11698c1653 (patch)
tree4d1304a6fbff9596be0f4913fe1d350c71eb6757
parentd093e63657086c1053f8a8a1709480241accfa64 (diff)
downloadserverdata-6cfdd208aba89ee99d241b08377d6f11698c1653.tar.gz
serverdata-6cfdd208aba89ee99d241b08377d6f11698c1653.tar.bz2
serverdata-6cfdd208aba89ee99d241b08377d6f11698c1653.tar.xz
serverdata-6cfdd208aba89ee99d241b08377d6f11698c1653.zip
Fix the obvious bug, the non-obvious one, I'll catch later.
-rw-r--r--npc/functions/refine.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index e940ab635..626d0f523 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -21,12 +21,13 @@ function script refineMaster {
function rif_refine {
.@slot = getarg(0);
- .@text = getarg(1);
+ .@text$ = getarg(1);
// Two-handed weapons are already handled under EQI_HAND_R
if (.@slot == EQI_HAND_L && (getequipid(EQI_HAND_L) == getequipid(EQI_HAND_R)))
return "";
- if (getequipisequiped(.@slot) && getequipisenableref(.@slot))
- return l(.@text, getequipname(.@slot));
+ if (getequipisequiped(.@slot) && getequipisenableref(.@slot)) {
+ return l(.@text$, getequipname(.@slot));
+ }
return "";
}