opentibiabr / canary

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

Field don`t display the condition #2696

Closed osni12 closed 1 month ago

osni12 commented 4 months ago

Priority

High

Area

What happened?

field don`t change condition on step in fire etc

What OS are you seeing the problem on?

Windows

Code of Conduct

lamonato29 commented 4 months ago

Give more details please

osni12 commented 4 months ago

ex: item campfire in amazon on step in don`t add condition fire on player

attack787 commented 4 months ago

I've done some tests and found that it's necessary to add a line of code to item campfire (amazon and maybe in others).

<attribute key="script" value="moveevent">
    <attribute key="eventType" value="stepin"/>
</attribute>

In items.xml, amazon campfire ID would look like

<item id="1999" article="a" name="campfire">
            <attribute key="primarytype" value="illumination"/>
            <attribute key="type" value="magicfield"/>
            <attribute key="field" value="fire">
                <attribute key="ticks" value="4000"/>
                <attribute key="count" value="7"/>
                <attribute key="damage" value="20"/>
            </attribute>
            <attribute key="script" value="moveevent">
                <attribute key="eventType" value="stepin"/>
            </attribute>
</item>

If this is the solution, I can submit a pull request to address the issue.

kaleohanopahala commented 4 months ago

He mentioned this issue, I believe...

https://github.com/opentibiabr/canary/assets/168607226/3a655786-3121-4c66-991f-89b06052664e