public void OnChangeChannel(Character character, Packet packet) { if (character.Field.DisableChangeChannel) { MapPacket.BlockedMessage(character, MapPacket.PortalBlockedMessage.CannotGoToThatPlace); return; } var channel = packet.ReadByte(); DoChangeChannelReq(channel); }
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 ); }