• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

(XML) Doubt about a code.

Heyron

Active Member
Joined
Mar 23, 2017
Messages
103
Solutions
1
Reaction score
43
Location
Brazil
What is wrong with this code? I can not make the item that is located in the center of the extension a random item. Only the first line of the item that is located in the center is being applied.

The code below is an extension I'm doing for RME.
Code:
<brush name="green leaves" type="doodad" server_lookid="12918" draggable="true" on_blocking="true">[/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR]
[COLOR=#ff0000][COLOR=#000000][COLOR=#ff0000][COLOR=#000000][COLOR=#ff0000][COLOR=#000000]
        <alternate>
            <composite chance="10">
                <tile x="0" y="0"> <item id="12920"/> </tile>
                <tile x="1" y="0"> <item id="12921"/> </tile>
                <tile x="0" y="1"> <item id="12923"/> </tile>
                <tile x="1" y="1"> <item id="12922"/> </tile>
            </composite>
        </alternate>
    
        <alternate>
            <composite chance="10">
                <tile x="0" y="0"> <item id="12920"/> </tile>
                <tile x="1" y="0"> <item id="12912"/> </tile>
                <tile x="2" y="0"> <item id="12921"/> </tile>
                <tile x="0" y="1"> <item id="12914"/> </tile>
                <tile x="1" y="1"> <item id="12924" chance="10"/> </tile>
                <tile x="1" y="1"> <item id="12925" chance="10"/> </tile>
                <tile x="1" y="1"> <item id="12926" chance="10"/> </tile>
                <tile x="1" y="1"> <item id="12927" chance="10"/> </tile>
                <tile x="2" y="1"> <item id="12915"/> </tile>
                <tile x="0" y="2"> <item id="12923"/> </tile>
                <tile x="1" y="2"> <item id="12913"/> </tile>
                <tile x="2" y="2"> <item id="12922"/> </tile>
            </composite>
        </alternate>
    </brush>
In case, I want the item located in the center to be a random item, being: 12924, 12925, 12926, 12927.
However, what is happening is that only the first item is being placed.
 
Back
Top