распаковка датника PurchaseLimitCraft-ru.dat 520

  • Автор темы Автор темы Dev_mod
  • Дата начала Дата начала
Статус
В этой теме нельзя размещать новые ответы.

Dev_mod

Пляшущий с бубном
Участник
Сообщения
64
Розыгрыши
0
Решения
3
Репутация
5
Реакции
20
Баллы
240
не мог ли кто-то подсказать с структурой файла PurchaseLimitCraft-ru.dat не могу понять что в нём изменилось
XML:
<file pattern="ShieldOfKingdom" isSafePackage="true">
        <node name="data" reader="UINT" />
        <for name="product" size="#data" hidden="false">
            <node name="shop_index" reader="UCHAR" />
            <node name="product_id" reader="UINT" />

            <node name="category" reader="UCHAR" />
            <node name="category_sub" reader="UINT" />
            <wrapper name="max_buy_qty">
                <node name="mark_type" reader="UBYTE" />
                <node name="max_buy_count" reader="UCHAR" />
            </wrapper>

            <node name="product_name" reader="ASCF" />
            <node name="product_item" reader="UINT" />
            <node name="product_enchant" reader="UINT" />
            <node name="buy_item" reader="UCHAR" />
            <for name="buy_item" size="#buy_item">
                <node name="ItemClassID" reader="UINT" />
                <node name="Count" reader="UINT" />
                <!-- <node name="Prob" reader="FLOAT" /> -->
                <node name="Enchant" reader="UINT" />
                <node name="ProductRank" reader="UINT" />
                <node name="IsLimitServer" reader="UBYTE" />
            </for>
            <wrapper name="limit_lv">
                <node name="LevelMin" reader="SHORT" />
                <node name="LevelMax" reader="SHORT" />
            </wrapper>
            <wrapper name="buy_type">
                <node name="LimitType" reader="UCHAR" />
                <node name="ResetType" reader="UCHAR" />
            </wrapper>
            <node name="LimitServerBuyCountMax" reader="UINT" />
            <node name="RequirementBuySkills" reader="UBYTE" />
            <for name="RequirementBuySkills"  size="#RequirementBuySkills">
                <node name="skill_id" reader="UINT" />
            </for>
            <node name="KeepOptionFee" reader="UBYTE" />
            <for name="KeepOptionFee"  size="#KeepOptionFee">
                <node name="KeepItemClassID" reader="UINT" />
                <node name="KeepCount" reader="UINT" />
                <!-- <node name="KeepProb" reader="FLOAT" /> -->
                <node name="KeepEnchant" reader="UINT" />
                <node name="KeepProductRank" reader="UINT" />
                <node name="KeepIsLimitServer" reader="UBYTE" />
            </for>
            <node name="KeepOption" reader="UBYTE" />
            <node name="automatic_type" reader="UBYTE" />
        </for>
    </file>
клиент 520 протокола
я смотрел через дебаг вот что у меня он выдаёт
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 4 data: 311
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 5 shop_index: 4
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 9 product_id: 1001
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 10 category: 0
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 14 category_sub: 1803914
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 15 mark_type: 0
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 16 max_buy_count: 1
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 47 product_name: Острие Хелиоса
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 51 product_item: 17416
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 55 product_enchant: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 56 buy_item: 2
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 60 ItemClassID: 17416
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 64 Count: 1
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 68 Enchant: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 72 ProductRank: 2
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 73 IsLimitServer: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 77 ItemClassID: 81215
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 81 Count: 452
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 85 Enchant: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 89 ProductRank: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 90 IsLimitServer: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 90 buy_item: 2
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 92 LevelMin: 1
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 94 LevelMax: 999
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 95 LimitType: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 96 ResetType: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 100 LimitServerBuyCountMax: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 101 RequirementBuySkills: 1
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 105 skill_id: 30943
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 105 RequirementBuySkills: 1
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 106 KeepOptionFee: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 106 KeepOptionFee: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 107 KeepOption: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 108 automatic_type: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 109 shop_index: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 113 product_id: 20791041
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 114 category: 0
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 118 category_sub: 4526
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 119 mark_type: 0
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 120 max_buy_count: 0
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 121 product_name:
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 125 product_item: 16777216
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 129 product_enchant: 81216
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 130 buy_item: 40
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 134 ItemClassID: 3
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 138 Count: 0
я думаю что проблема где-то в этой части KeepOptionFee KeepOption automatic_type
пробывал их подбирать в хмл но не получилось
 
Решение
не мог ли кто-то подсказать с структурой файла PurchaseLimitCraft-ru.dat не могу понять что в нём изменилось
XML:
<file pattern="ShieldOfKingdom" isSafePackage="true">
        <node name="data" reader="UINT" />
        <for name="product" size="#data" hidden="false">
            <node name="shop_index" reader="UCHAR" />
            <node name="product_id" reader="UINT" />

            <node name="category" reader="UCHAR" />
            <node name="category_sub" reader="UINT" />
            <wrapper name="max_buy_qty">
                <node name="mark_type" reader="UBYTE" />
                <node name="max_buy_count" reader="UCHAR" />
            </wrapper>

            <node name="product_name" reader="ASCF" />
            <node...
не мог ли кто-то подсказать с структурой файла PurchaseLimitCraft-ru.dat не могу понять что в нём изменилось
XML:
<file pattern="ShieldOfKingdom" isSafePackage="true">
        <node name="data" reader="UINT" />
        <for name="product" size="#data" hidden="false">
            <node name="shop_index" reader="UCHAR" />
            <node name="product_id" reader="UINT" />

            <node name="category" reader="UCHAR" />
            <node name="category_sub" reader="UINT" />
            <wrapper name="max_buy_qty">
                <node name="mark_type" reader="UBYTE" />
                <node name="max_buy_count" reader="UCHAR" />
            </wrapper>

            <node name="product_name" reader="ASCF" />
            <node name="product_item" reader="UINT" />
            <node name="product_enchant" reader="UINT" />
            <node name="buy_item" reader="UCHAR" />
            <for name="buy_item" size="#buy_item">
                <node name="ItemClassID" reader="UINT" />
                <node name="Count" reader="UINT" />
                <!-- <node name="Prob" reader="FLOAT" /> -->
                <node name="Enchant" reader="UINT" />
                <node name="ProductRank" reader="UINT" />
                <node name="IsLimitServer" reader="UBYTE" />
            </for>
            <wrapper name="limit_lv">
                <node name="LevelMin" reader="SHORT" />
                <node name="LevelMax" reader="SHORT" />
            </wrapper>
            <wrapper name="buy_type">
                <node name="LimitType" reader="UCHAR" />
                <node name="ResetType" reader="UCHAR" />
            </wrapper>
            <node name="LimitServerBuyCountMax" reader="UINT" />
            <node name="RequirementBuySkills" reader="UBYTE" />
            <for name="RequirementBuySkills"  size="#RequirementBuySkills">
                <node name="skill_id" reader="UINT" />
            </for>
            <node name="KeepOptionFee" reader="UBYTE" />
            <for name="KeepOptionFee"  size="#KeepOptionFee">
                <node name="KeepItemClassID" reader="UINT" />
                <node name="KeepCount" reader="UINT" />
                <!-- <node name="KeepProb" reader="FLOAT" /> -->
                <node name="KeepEnchant" reader="UINT" />
                <node name="KeepProductRank" reader="UINT" />
                <node name="KeepIsLimitServer" reader="UBYTE" />
            </for>
            <node name="KeepOption" reader="UBYTE" />
            <node name="automatic_type" reader="UBYTE" />
        </for>
    </file>
клиент 520 протокола
я смотрел через дебаг вот что у меня он выдаёт
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 4 data: 311
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 5 shop_index: 4
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 9 product_id: 1001
2026.06.15 15:53:08,679 INFO 72 org.l2jmobius.util.DebugUtil pos: 10 category: 0
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 14 category_sub: 1803914
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 15 mark_type: 0
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 16 max_buy_count: 1
2026.06.15 15:53:08,680 INFO 72 org.l2jmobius.util.DebugUtil pos: 47 product_name: Острие Хелиоса
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 51 product_item: 17416
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 55 product_enchant: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 56 buy_item: 2
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 60 ItemClassID: 17416
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 64 Count: 1
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 68 Enchant: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 72 ProductRank: 2
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 73 IsLimitServer: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 77 ItemClassID: 81215
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 81 Count: 452
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 85 Enchant: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 89 ProductRank: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 90 IsLimitServer: 0
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 90 buy_item: 2
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 92 LevelMin: 1
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 94 LevelMax: 999
2026.06.15 15:53:08,681 INFO 72 org.l2jmobius.util.DebugUtil pos: 95 LimitType: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 96 ResetType: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 100 LimitServerBuyCountMax: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 101 RequirementBuySkills: 1
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 105 skill_id: 30943
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 105 RequirementBuySkills: 1
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 106 KeepOptionFee: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 106 KeepOptionFee: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 107 KeepOption: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 108 automatic_type: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 109 shop_index: 0
2026.06.15 15:53:08,682 INFO 72 org.l2jmobius.util.DebugUtil pos: 113 product_id: 20791041
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 114 category: 0
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 118 category_sub: 4526
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 119 mark_type: 0
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 120 max_buy_count: 0
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 121 product_name:
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 125 product_item: 16777216
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 129 product_enchant: 81216
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 130 buy_item: 40
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 134 ItemClassID: 3
2026.06.15 15:53:08,683 INFO 72 org.l2jmobius.util.DebugUtil pos: 138 Count: 0
я думаю что проблема где-то в этой части KeepOptionFee KeepOption automatic_type
пробывал их подбирать в хмл но не получилось
 

Вложения

Решение
огромное тебе спасибо, помог всё работает
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху Снизу