summaryrefslogtreecommitdiff
path: root/npc/craft/tweak.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-27 11:13:46 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-27 11:13:46 -0300
commit5aa51ec5c992ce47ea02184b6731e7ab14adfe5e (patch)
tree482157fa04b10e7e773ec77f0932987aae4656f6 /npc/craft/tweak.txt
parenta767091da4f0edae03d8727f93944e99137de737 (diff)
downloadserverdata-5aa51ec5c992ce47ea02184b6731e7ab14adfe5e.tar.gz
serverdata-5aa51ec5c992ce47ea02184b6731e7ab14adfe5e.tar.bz2
serverdata-5aa51ec5c992ce47ea02184b6731e7ab14adfe5e.tar.xz
serverdata-5aa51ec5c992ce47ea02184b6731e7ab14adfe5e.zip
It works, but how will I code player skill tree...?
Diffstat (limited to 'npc/craft/tweak.txt')
-rw-r--r--npc/craft/tweak.txt6
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);