Hello. I'm using OTHire and trying to create a Script that let's me enchant a item.
I currently have a functions that transformator the old itemID into the new itemID. The problem wih this script is that I have to create a new itemID for every item I want to enchant, which gets very annoying.
I want the transformed item to have the same itemID, but with a boost to f.e it's attack for a period of time.
I looked around but I did not find a lua function in OTHire that adds an attribute to an item onUse, so I ask here if anyone knows what needs to be added into the source code to create such a function.
Thanks.
I currently have a functions that transformator the old itemID into the new itemID. The problem wih this script is that I have to create a new itemID for every item I want to enchant, which gets very annoying.
I want the transformed item to have the same itemID, but with a boost to f.e it's attack for a period of time.
I looked around but I did not find a lua function in OTHire that adds an attribute to an item onUse, so I ask here if anyone knows what needs to be added into the source code to create such a function.
Thanks.