PC Cafe system.
This commit is contained in:
@ -70,6 +70,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ExConnectedTimeAndGettable
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExGetBookMarkInfoPacket;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExNoticePostArrived;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExNotifyPremiumItem;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExPCCafePointInfo;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExPledgeCount;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExPledgeWaitingListAlarm;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExQuestItemList;
|
||||
@ -423,6 +424,18 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
CursedWeaponsManager.getInstance().getCursedWeapon(activeChar.getCursedWeaponEquippedId()).cursedOnLogin();
|
||||
}
|
||||
|
||||
if (Config.PC_CAFE_ENABLED)
|
||||
{
|
||||
if (activeChar.getPcCafePoints() > 0)
|
||||
{
|
||||
activeChar.sendPacket(new ExPCCafePointInfo(activeChar.getPcCafePoints(), 0, 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.sendPacket(new ExPCCafePointInfo());
|
||||
}
|
||||
}
|
||||
|
||||
activeChar.updateEffectIcons();
|
||||
|
||||
// Expand Skill
|
||||
|
@ -16,8 +16,11 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.client.L2GameClient;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
@ -33,12 +36,12 @@ public class ExPCCafeRequestOpenWindowWithoutNPC implements IClientIncomingPacke
|
||||
@Override
|
||||
public void run(L2GameClient client)
|
||||
{
|
||||
// final L2PcInstance activeChar = client.getActiveChar();
|
||||
// if ((activeChar != null) && Config.PC_BANG_ENABLED)
|
||||
// {
|
||||
// final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||
// html.setFile(activeChar.getHtmlPrefix(), "data/html/pccafe.htm");
|
||||
// activeChar.sendPacket(html);
|
||||
// }
|
||||
final L2PcInstance activeChar = client.getActiveChar();
|
||||
if ((activeChar != null) && Config.PC_CAFE_ENABLED)
|
||||
{
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||
html.setFile(activeChar.getHtmlPrefix(), "data/html/pccafe.htm");
|
||||
activeChar.sendPacket(html);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ import java.util.logging.Level;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.MultisellData;
|
||||
import com.l2jmobius.gameserver.handler.BypassHandler;
|
||||
import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
|
||||
import com.l2jmobius.gameserver.handler.IBypassHandler;
|
||||
@ -59,7 +60,8 @@ public final class RequestBypassToServer implements IClientIncomingPacket
|
||||
"_diary",
|
||||
"_olympiad?command",
|
||||
"menu_select",
|
||||
"manor_menu_select"
|
||||
"manor_menu_select",
|
||||
"pccafe"
|
||||
};
|
||||
|
||||
// S
|
||||
@ -252,6 +254,16 @@ public final class RequestBypassToServer implements IClientIncomingPacket
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnNpcManorBypass(activeChar, lastNpc, ask, state, time), lastNpc);
|
||||
}
|
||||
}
|
||||
else if (_command.startsWith("pccafe"))
|
||||
{
|
||||
final L2PcInstance player = client.getActiveChar();
|
||||
if ((player == null) || !Config.PC_CAFE_ENABLED)
|
||||
{
|
||||
return;
|
||||
}
|
||||
final int multisellId = Integer.parseInt(_command.substring(10).trim());
|
||||
MultisellData.getInstance().separateAndSend(multisellId, activeChar, null, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
final IBypassHandler handler = BypassHandler.getInstance().getHandler(_command);
|
||||
|
Reference in New Issue
Block a user