otxserver
otxserver copied to clipboard
two bugs on decaying (soft boots example)
How to Reproduce?
First BUG
- When a pair of soft boots worn out and then you right click on them using a doTransformItem script to repair them while they are on the feet slot, the soft boots gets the 'onEquip effect' but stop decaying
Second BUG
- boots shouldnt get the 'onEquip effect' unless they are on feet slot (it happens with doTransformItem aswell)
Environment
- Tibia 8.6 Windows
Additional context
It started happening after the update in the decay code
@Reason184
If I am not mistaken, when using the 'doTransformItem', the item does not start decaying by default(it's intended to be this way it seems), you need to use 'doDecayItem(uid)' so that it starts decaying @Roddett
It was working fine before optimizations on decay system tho https://github.com/mattyx14/otxserver/commit/01e15360cf02baf491cd325a215ce2c78d7c8d33 (i updated my engine few months ago) @Reason184
Don't have this bug in the latest version.
I tested here.
SCRIPT:
doTransformItem(item.uid, 6132)
doDecayItem(item.uid)
Working 100%