diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-28 06:10:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-28 06:10:18 -0300 |
commit | 2bfbc27d7db38caf4f38d0810aa279e841c17aaa (patch) | |
tree | eb5ed88b49af492b79a64db3f4215ed8c1fb9b43 /npc/craft | |
parent | 4eb988e28c8d7f0d0139ad0867229a0c99e5db46 (diff) | |
download | serverdata-2bfbc27d7db38caf4f38d0810aa279e841c17aaa.tar.gz serverdata-2bfbc27d7db38caf4f38d0810aa279e841c17aaa.tar.bz2 serverdata-2bfbc27d7db38caf4f38d0810aa279e841c17aaa.tar.xz serverdata-2bfbc27d7db38caf4f38d0810aa279e841c17aaa.zip |
This should aid in crafting bugs of options being overriden by careless players.
It is NOT warranted to work.
Diffstat (limited to 'npc/craft')
-rw-r--r-- | npc/craft/smith.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/craft/smith.txt b/npc/craft/smith.txt index 9f5a4d903..6d5ea54c9 100644 --- a/npc/craft/smith.txt +++ b/npc/craft/smith.txt @@ -66,6 +66,12 @@ function script SmithSystem { delinventorylist(); // Needed, because we'll rely on rfind() getinventorylist(); .@index=array_rfind(@inventorylist_id, .@it); + + // Just to be sure, if this have an option, get something else + if (getitemoptionparambyindex(.@index, 0)) { + .@index=array_find(@inventorylist_id, .@it); + } + if (csys_Check(.@index, 75000)) { csys_Apply(.@index); } |