diff options
Diffstat (limited to 'npc/craft')
-rw-r--r-- | npc/craft/tweak.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt index cc8242275..4f10ac3c1 100644 --- a/npc/craft/tweak.txt +++ b/npc/craft/tweak.txt @@ -24,6 +24,12 @@ function script SmithTweakSystem { if (.@id < 0) return false; + // *getequipisenableopt(<equipment slot>) → cannot use here + // Not an equipment + if (!getiteminfo(.@id, ITEMINFO_LOC)) + return false; + + // Clear all five options setitemoptionbyindex(.@id, 0, 0, 0); setitemoptionbyindex(.@id, 1, 0, 0); |