diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-27 11:13:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-27 11:13:46 -0300 |
commit | 5aa51ec5c992ce47ea02184b6731e7ab14adfe5e (patch) | |
tree | 482157fa04b10e7e773ec77f0932987aae4656f6 /npc | |
parent | a767091da4f0edae03d8727f93944e99137de737 (diff) | |
download | serverdata-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')
-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); |