예제 #1
0
            public bool SetCharListServer(CharacterLoginInfo[] charList)
            {
                byte count = CharListCount;

                if (count != charList.Length)
                    return false;

                uint pointer = client.Memory.ReadUInt32(Addresses.Client.LoginCharList);

                for (int i = 0; i < count; i++)
                {
                    pointer += 60;
                    client.Memory.WriteUInt32(pointer, charList[i].WorldIP);
                    pointer += 4;
                    client.Memory.WriteString(pointer, BitConverter.GetBytes(charList[i].WorldIP).ToIPString());
                    pointer += 16;
                    client.Memory.WriteUInt16(pointer, charList[i].WorldPort);
                    pointer += 4; // 2 padding bytes..
                }

                return true;
            }
예제 #2
0
 public GameServerConnection(Constants.OperatingSystem opSystem, ushort version, string accountName,
     string password, bool openTibia, bool debug, CharacterLoginInfo charInfo) :
     this(opSystem, version, accountName, password, openTibia, debug, charInfo.CharName, charInfo.WorldIPString, charInfo.WorldPort) { }