opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
377 stars 630 forks source link

Years Balloon onUse #2923

Closed AureusP closed 3 days ago

AureusP commented 1 month ago

Priority

High

Area

What happened?

When using the item 25 years balloon, it is being transformed into item with count = 255 instead of maintaining the correct count = 1. This issue occurs in a balloon script that transforms items when used inside a house.

Steps to Reproduce Use the item all balloons inside a house. Notice that the item transforms into 37514 with count = 255 instead of count = 1.

What OS are you seeing the problem on?

Windows

Code of Conduct

AureusP commented 1 month ago

In the script, it's possible to force the count to 1 during the transformation by adding the following adjustment:

item:transform(balloon, 1)

tutbarao commented 1 month ago

Confirmed, the error occurs