Beuty Shop prices

Horyon

Пляшущий с бубном
Участник
Сообщения
220
Розыгрыши
0
Решения
4
Репутация
53
Реакции
78
Баллы
273
Хроники
  1. Shadow of the Kamael
Исходники
Присутствуют
Сборка
L2jMobius Master class ch3
Hey guys, as tittle says, where is set the prices for BeutyShop(live version)

ty in advance!!!
 
Sry... root of datapack... BeutyShop XML file
 
Sry... root of datapack... BeutyShop XML file
I change the values but server it not updating it . Maybe a source java file with error.

cause gameserver\data\xml\BeautyShopData.java is taking the BeautyShop.xml normaly.

1690993131821.png

I just change from 4 to 5 itens but dont work.

Any tip?

Ty for help
 
the dat that control the options i already find, are colorEX, hairEX and faceEX... but they dont have prices... and no other files with EX on name... also i really think is a bad read from xml cause i change like i show the prices but its keeps taking old amount...

A bit lost here... but i'll download 228 protocol like u say to search it, ty
 
By litle searches in client (in which I found nothing) I start search in server packets... And found EX_BEAUTY_ITEM_LIST :Hi:
Java:
        writeInt(HAIR_TYPE);
        writeInt(_beautyData.getHairList().size());
        for (BeautyItem hair : _beautyData.getHairList().values())
        {
            writeInt(0); // ?
            writeInt(hair.getId());
            writeInt(hair.getAdena());
            writeInt(hair.getResetAdena());
            writeInt(hair.getBeautyShopTicket());
            writeInt(1); // Limit
        }
 
By litle searches in client (in which I found nothing) I start search in server packets... And found EX_BEAUTY_ITEM_LIST :Hi:
Java:
        writeInt(HAIR_TYPE);
        writeInt(_beautyData.getHairList().size());
        for (BeautyItem hair : _beautyData.getHairList().values())
        {
            writeInt(0); // ?
            writeInt(hair.getId());
            writeInt(hair.getAdena());
            writeInt(hair.getResetAdena());
            writeInt(hair.getBeautyShopTicket());
 writeInt(1);  Limit
        }
my file is exacly like this... i'm too bad in coding for know if is some problem in there XD

Код:
/*
 * This file is part of the L2J Mobius project.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.l2jmobius.gameserver.network.serverpackets;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import org.l2jmobius.gameserver.data.xml.BeautyShopData;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.beautyshop.BeautyData;
import org.l2jmobius.gameserver.model.beautyshop.BeautyItem;
import org.l2jmobius.gameserver.network.ServerPackets;

/**
 * @author Sdw
 */
public class ExBeautyItemList extends ServerPacket
{
    private static final int HAIR_TYPE = 0;
    private static final int FACE_TYPE = 1;
    private static final int COLOR_TYPE = 2;
    
    private int _colorCount;
    private final BeautyData _beautyData;
    private final Map<Integer, List<BeautyItem>> _colorData = new HashMap<>();
    
    public ExBeautyItemList(Player player)
    {
        _beautyData = BeautyShopData.getInstance().getBeautyData(player.getRace(), player.getAppearance().getSexType());
        for (BeautyItem hair : _beautyData.getHairList().values())
        {
            final List<BeautyItem> colors = new ArrayList<>();
            for (BeautyItem color : hair.getColors().values())
            {
                colors.add(color);
                _colorCount++;
            }
            _colorData.put(hair.getId(), colors);
        }
    }
    
    @Override
    public void write()
    {
        ServerPackets.EX_BEAUTY_ITEM_LIST.writeId(this);
        writeInt(HAIR_TYPE);
        writeInt(_beautyData.getHairList().size());
        for (BeautyItem hair : _beautyData.getHairList().values())
        {
            writeInt(0); // ?
            writeInt(hair.getId());
            writeInt(hair.getAdena());
            writeInt(hair.getResetAdena());
            writeInt(hair.getBeautyShopTicket());
            writeInt(1); // Limit
        }
        writeInt(FACE_TYPE);
        writeInt(_beautyData.getFaceList().size());
        for (BeautyItem face : _beautyData.getFaceList().values())
        {
            writeInt(0); // ?
            writeInt(face.getId());
            writeInt(face.getAdena());
            writeInt(face.getResetAdena());
            writeInt(face.getBeautyShopTicket());
            writeInt(1); // Limit
        }
        writeInt(COLOR_TYPE);
        writeInt(_colorCount);
        for (Entry<Integer, List<BeautyItem>> entry : _colorData.entrySet())
        {
            for (BeautyItem color : entry.getValue())
            {
                writeInt(entry.getKey());
                writeInt(color.getId());
                writeInt(color.getAdena());
                writeInt(color.getResetAdena());
                writeInt(color.getBeautyShopTicket());
                writeInt(1);
            }
        }
    }
}

if u can take a look, ty
 
Назад
Сверху Снизу