From 5aa51ec5c992ce47ea02184b6731e7ab14adfe5e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 27 May 2019 11:13:46 -0300 Subject: It works, but how will I code player skill tree...? --- npc/craft/tweak.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/craft') 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() → 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); -- cgit v1.2.3-60-g2f50