Ejemplo n.º 1
0
        public void OnChangeChannel(Character character, Packet packet)
        {
            if (character.Field.DisableChangeChannel)
            {
                MapPacket.BlockedMessage(character, MapPacket.PortalBlockedMessage.CannotGoToThatPlace);
                return;
            }

            var channel = packet.ReadByte();

            DoChangeChannelReq(channel);
        }
Ejemplo n.º 2
0
        public void OnEnterCashShop(Character character)
        {
            if (character.Field.DisableGoToCashShop)
            {
                MapPacket.BlockedMessage(character, MapPacket.PortalBlockedMessage.CannotGoToThatPlace);
                return;
            }

            Server.Instance.CenterConnection.RequestCharacterConnectToWorld(
                Player.SessionHash,
                character.ID,
                Server.Instance.WorldID,
                50,
                character
                );
        }