Рандом крафт - там пакет с сервера идетВ последних хрониках появился этот бар с различными кнопками, и я был уверен, что доступность этих кнопок приходит от сервера, но не смог найти пакета, в котором есть эта инфа. Бар настраивается в пакете или на клиенте (что странно, на мой взгляд)?
Посмотреть вложение 41368
А так же хотел бы спросить касательно того, отправляет ли сервер клиенту инфу какой интерфейс (мейн/классик/эссенс) ему юзать? Тоже не нашел инфы.
/*
* 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.lettercollector;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.network.OutgoingPackets;
import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
/**
* @author Index
*/
public class ExLetterCollectorUI implements IClientOutgoingPacket
{
private final int LETTER_COLLECTOR_MIN_LEVEL = 5;
private final PlayerInstance _player;
public ExLetterCollectorUI(PlayerInstance player)
{
_player = player;
}
@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_LETTER_COLLECTOR_UI_LAUNCHER.writeId(packet);
packet.writeC(0x01); // IsEnable (0x00 - no 0x01 - yes)
packet.writeD(LETTER_COLLECTOR_MIN_LEVEL); // Minimum Level
return true;
}
}
это вызовет само окошко лаунчера с кнопкой эвента, но в сайдбаре кнопки эвента не появитсяК примеру буквы - как вызвать УИшку:
при входе в игру прислать этот пакет игроку с таким содержимым:
Java:/* * 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.lettercollector; import org.l2jmobius.Config; import org.l2jmobius.commons.network.PacketWriter; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; /** * @author Index */ public class ExLetterCollectorUI implements IClientOutgoingPacket { private final int LETTER_COLLECTOR_MIN_LEVEL = 5; private final PlayerInstance _player; public ExLetterCollectorUI(PlayerInstance player) { _player = player; } @Override public boolean write(PacketWriter packet) { OutgoingPackets.EX_LETTER_COLLECTOR_UI_LAUNCHER.writeId(packet); packet.writeC(0x01); // IsEnable (0x00 - no 0x01 - yes) packet.writeD(LETTER_COLLECTOR_MIN_LEVEL); // Minimum Level return true; } }
появится как раз таки, если конечно человек не выключил это в интерфейсе;это вызовет само окошко лаунчера с кнопкой эвента, но в сайдбаре кнопки эвента не появится
кнопка коллектора вообще не выключается, она принудительно висит в классик версиипоявится как раз таки, если конечно человек не выключил это в интерфейсе;
только когда логин сервер передает клиенту какой тип сервера запускается - меин, классик или ессенс (или тест, лайт, кавай, релакс и тд);ясно, значит когда-то приснилось, что я их менял )
а касательно второго вопроса, получается сервер присылает где-то флаг, лайв или классик интерфейс отображать?
типа тогоясно, значит когда-то приснилось, что я их менял )
а касательно второго вопроса, получается сервер присылает где-то флаг, лайв или классик интерфейс отображать?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?