[4.0.02] - Customizing the initial lvl 5 chest

Good afternoon everybody,

I'm editing the initial lvl 5 chest, where I want to add some items when playing open the chest like:
* 6x clean runes lvl 8
* 1 magic carpet

I even managed to place both, but I couldn't place 6x runes, only 1 unit of the clean rune always appears, I didn't find the correct tag to pass the item quantity parameter.

Another thing I would like to do but I don't know how, would be to add 1 item that when used, the player will automatically go to level 55, and level 55 of their patronage.

I would also like some help that would be a validation so that the 6x lvl 8 runes are only delivered if the player owns the parent and cannot be delivered to a reborn player.

Thank you in advance for your help!


XML:
            <Item type="gameMechanics.elements.impacts.ImpactIfCaster">
                <impacts>
                    <Item type="gameMechanics.elements.impacts.ImpactGiveItem">
                        <item type="gameMechanics.constructor.schemes.item.SimpleItemProvider">
                            <item
                                href="/Items/Mechanics/RareBoxLoot/OwnRune08.xdb#xpointer(/gameMechanics.constructor.schemes.item.ItemResource)" />
                        </item>
                        <number>6</number>
                    </Item>
                    <Item type="gameMechanics.elements.impacts.ImpactGiveItem">
                        <item type="gameMechanics.constructor.schemes.item.SimpleItemProvider">
                            <item
                                href="/Mechanics/Mounts/5thGrade/Items/Carpet.xdb#xpointer(/gameMechanics.constructor.schemes.item.ItemResource)" />
                        </item>
                    </Item>
                </impacts>
            </Item>

1736890415167.png
 

Attachments

  • Spell05.(SpellCasterSelf).xdb
    13.5 KB · Views: 1
Try to use ImpactIfTarget -> PredicateNot -> PredicateIsRemort for checking if avatar is parent, and use tag <count> instead of <number>
 
Try to use ImpactIfTarget -> PredicateNot -> PredicateIsRemort for checking if avatar is parent, and use tag <count> instead of <number>
Sorry for my ignorance my friend, but I didn't understand, I'm still adapting with the allods sources, I was unsure how to use the predicates you mentioned, if I would use them in cascade or in other words using more than one at the same time, or just using one of these would be enough to validate if the char is the progenitor, could you demonstrate the source code snippet of what this validation would be like? I was also wondering if I could use an "Item" tag inside another "Item" tag if it was casted:

<Item>
<Item></Item>
</Item>
with the initial "I" capitalized, or it needs to be:
<Item>
<item></item>
</Item>
just the parent tag with capital "I" and the children in lowercase?
 

Top Bottom