Displaying Messages

This is a discussion on Displaying Messages within the Warcraft 3 forum board part of the Hot Games category; I was wondering how to display messages to the user. I was thinking of these ways: 1. Send in-game message ...

Results 1 to 3 of 3
  1. #1
    Shadow14l is offline Newbie
    Array
    Join Date
    Dec 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    Displaying Messages

    I was wondering how to display messages to the user. I was thinking of these ways:



    1. Send in-game message to user only through packets
    2. Overlay text like banlist (except not interfere with banlist).
    3. Use SendKeys to type to user.

    Well I've been trying to do first one for awhile, Second one won't work because I want my program to be able to work with banlist / xfire, so no hooks. Third one doesn't work well and gives error due to lagging system post messages.

    Any source code to send packets appropriately to user so wc3 picks them up and reads them?
    (I'm using c#)

    Or just some dissected packets, so I know what is what.

    Some current code I have:

    Code:
    TcpClient DummyClient = new TcpClient("localhost", 6112);
    NetworkStream DummyStream = DummyClient.GetStream();
    BinaryReader DummyReader = new BinaryReader(DummyStream);
    BinaryWriter DummyWriter = new BinaryWriter(DummyStream);
    
     byte[] JoinPacket;
    
    JoinPacket = new byte[95] {
        0x45, 0x00, 0x00, 0x5F, 0x12, 0xF2, 0x00, 0x00, 0x6C, 0x06, 0x64, 0x47, 0x3F, 0xF1, 0x53, 0x09,
        0x48, 0xF1, 0xFB, 0x74, 0x17, 0xE0, 0x09, 0x48, 0x44, 0xD0, 0xF7, 0x8E, 0x78, 0xFA, 0xBB, 0x8C,
        0x50, 0x18, 0xFF, 0xFF, 0x44, 0xF0, 0x00, 0x00, 0xFF, 0x0F, 0x37, 0x00, 0x05, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0xF0, 0xAD, 0xBA,
        0x0D, 0xF0, 0xAD, 0xBA, 0x61, 0x62, 0x31, 0x32, 0x33, 0x34, 0x34, 0x34, 0x34, 0x34, 0x34, 0x34,
        0x40, 0x55, 0x53, 0x57, 0x65, 0x73, 0x74, 0x00, 0x72, 0x65, 0x61, 0x6C, 0x6C, 0x79, 0x00
    };
    
    DummyWriter.Write(JoinPacket);
    // ResponsePacket[h] = DummyReader.ReadByte();
    
    if (DummyWriter != null) DummyWriter.Close();
    if (DummyReader != null) DummyReader.Close();
    if (DummyStream != null) DummyStream.Close();
    if (DummyClient != null) DummyClient.Close();
    Last edited by Shadow14l; 12-27-2008 at 07:29 PM.

  2. #2
    t0pcraft- is offline Hacker
    Array
    Join Date
    Jan 2008
    Location
    Under Your Bed
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    61
    cannot help you, but what is that:
    Code:
    E??_????l?dG??S?H[email protected]USWest?really?
    I converted ur byte array into ascii code, that's the result


  3. #3
    Shadow14l is offline Newbie
    Array
    Join Date
    Dec 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    That's just a (test) packet i received, when someone chatted.

    All I want is to be able to send something like that to myself (localhost)...

Similar Threads

  1. How to set WoW XP rates
    By vashidu in forum WoW Private Servers
    Replies: 10
    Last Post: 09-20-2010, 06:02 PM
  2. Advanced IRC Commands
    By Diesel in forum Operating Systems
    Replies: 1
    Last Post: 08-23-2009, 12:03 PM
  3. AutoIt3 Random Messages
    By t0pcraft- in forum Development
    Replies: 3
    Last Post: 08-09-2008, 09:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •