otxserver icon indicating copy to clipboard operation
otxserver copied to clipboard

two bugs on decaying (soft boots example)

Open roddett opened this issue 3 years ago • 4 comments

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

Image from Gyazo

Second BUG

  • boots shouldnt get the 'onEquip effect' unless they are on feet slot (it happens with doTransformItem aswell)

Image from Gyazo

Environment

  • Tibia 8.6 Windows

Additional context

It started happening after the update in the decay code

roddett avatar Dec 31 '21 07:12 roddett

@Reason184

mattyx14 avatar Jan 04 '22 22:01 mattyx14

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

Reason184 avatar Mar 02 '22 23:03 Reason184

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

roddett avatar Mar 03 '22 04:03 roddett

Don't have this bug in the latest version.

I tested here.

SCRIPT: doTransformItem(item.uid, 6132) doDecayItem(item.uid)

Working 100%

WeslleyKiyo avatar Sep 23 '22 10:09 WeslleyKiyo