public SpCreateCharacter(Player playerData, Connection conn)
 {
     PlayerData = playerData;
     Connection = conn;
     Data1 =
      ("00000000009EDB45FEF6" +
       "7F000000F08C170B0000000000F4010B" +
       "00340000000000230D0000F028B70100" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "00000000000000000000000000000000" +
       "0000");
     Data2 =
      ("FFFFFFFF" +
       "FFFFFFFF0032420A0000000100000000" +
       "000000E0000000000000000000000000" +
       "00FFFFFFFFFFFFFFFF00000000000000" +
       "0000000000000000000000F0F58C170B" +
       "00");
 }
Exemplo n.º 2
0
        //Example Command
        public void ProcessAction(Player player, string message)
        {
            try
            {

            }
            catch (Exception)
            {
            }
        }
Exemplo n.º 3
0
 public SpCharacterInfo(Player playerData)
 {
     PlayerData = playerData;
     _data = "010000" +
              "000100003C2D0000189EC600207EC500" +
              "CC9847046788BE0000000080BF763F";
     _data1 = "0001000000FA00000058FAFFFFFFFFFF" +
             "FF58FAFFFFFFFFFFFF58FAFFFFFFFFFF" +
             "FF02946DE49500000000000000000000" +
             "00000000000003000000000000000000" +
             "00000000000000000089004300000000" +
             "00000001000000";
     _data11 = "02" +
              "00000001000000030000000000000000" +
              "006929000000FCFFFF1C000000000000" +
              "00000000000005B40100000000000000" +
              "00000000000000000000000000000000" +
              "00000000000000000000000000000000" +
              "00000000FCFFFF014B0C000001000000" +
              "4200440045004D005500000077006E00" +
              "55007300650072002400000000000000" +
              "00000000000000000000000000000000" +
              "00000000000000000000000000000003" +
              "02000000";
     _data12 = "01C16F";
     _data13 = "010000001000000090000080040012" +
              "000000B4000009000000000009000000" +
              "0000";
        _data2 = "00000300000069290000" +
             "3000CD29000032000000000000000000" +
             "00000000000000000000000000000000" +
             "00000000000000000000000000000000" +
             "00000000000000000000000000000000" +
             "00000000000000000000000000000000" +
             "050000000080EA120000000000780256" +
             "0500000000B026570500000000FD7D94" +
             "400100000000000000000047543DEDF9" +
             "7F00000000000000000000000080EA12" +
             "00000000003054067700000000000000" +
             "00000058F1E4D0000000001F20010055" +
             "05000058F16C170B0000001800000000" +
             "000000000000000000000000000000FA" +
             "76000000000000000000000000000000" +
             "000000000000000000000090F1E4D000" +
             "00000001000000020000000000000095" +
             "400100000000000000000058F1E4D000" +
             "000000607FD307000800FCFFFF";
 }
Exemplo n.º 4
0
 public static void CreateNewCharacter(Connection connection, CharacterData playerData)
 {
     var cached = new Player
     {
         AccountId = connection.AccountInfo.Id,
         CharacterData = playerData
     };
     lock (PlayersLock)
     {
         if (Players.Exists(s => s.CharacterData.Name == playerData.Name))
         {
             new SpFailCreateCharacter().Send(connection);
             return;
         }
         cached.PlayerId = GUIDGenerator.NextGUID();
         cached.Level = 1;
         Players.Add(cached);
     }
     new SpCreateCharacter(cached,connection).Send(connection, 1);
     Log.Info("New character created!");
 }
Exemplo n.º 5
0
 public static void SendWhisperMessage(Player sender, string msg, string target)
 {
     Connection t = PlayerService.GetConnectionFromCharacterName(target);
     if (t == null)
         return;
     ChatMessage message = new ChatMessage(sender, msg, MessageType.WHISPER, SendMessageType.PRIVATE);
     PacketHandler.SendPacket((Connection)sender.Connection, new SpChatMessage(message));
     PacketHandler.SendPacket(t, new SpChatMessage(message));
 }
Exemplo n.º 6
0
 public static void SendMessage(Player senderPlayer, string msg, MessageType msgType = MessageType.GENERAL, SendMessageType sendType = SendMessageType.BROADCAST)
 {
     SendMessage(new ChatMessage(senderPlayer, msg, msgType, sendType));
 }
Exemplo n.º 7
0
 public ChatMessage(Player sender, string msg, MessageType msgType, SendMessageType sendType)
 {
     Sender = sender;
     Message = msg;
     MsgType = msgType;
     SendType = sendType;
     if(MsgType == MessageType.WHISPER)
         SendType = SendMessageType.PRIVATE;
 }
Exemplo n.º 8
0
 public ChatMessage(Player sender, string msg, SendMessageType sendType = SendMessageType.BROADCAST)
     : this(sender, msg, MessageType.GENERAL, sendType)
 {
 }