What am i missing

01/06/2011 22:51 { Angelius }#1
This is the awaiting BroadCast packet its being sent Everytime you open the BradCast board and you have a message that is waiting to be sent
PHP Code:
public static byte[] BroadCast(BroadCastStruct BCint PTypeint Position)
    {
        
PacketGen Packet = new PacketGen(new byte[270 8]key 5165);
        
Packet.WriteUInt16(270);
        
Packet.WriteUInt16(2051);
        
Packet.WriteUInt32((uint)10);
        
Packet.WriteUInt16(0);
        
Packet.WriteUInt16(BC.BCUID);
        
Packet.WriteUInt16(PType);
        
Packet.WriteUInt16(Position);
        
Packet.WriteUInt32((uint)BC.BCUID);
        
Packet.WriteUInt32((uint)BC.EntID);
        
Packet.WriteString(BC.Name);
        
Packet.StepOver(17 BC.Name.Length);
        
Packet.WriteUInt32((uint)BC.Cost);
        
Packet.WriteString(BC.Message);
        
Packet.WriteTQServer();
        return 
Packet.Packet;
    } 
so far it works fine but the only thing is
this is how the awaiting BreadCasts looks like
[Only registered and activated users can see links. Click Here To Register...]

those green numbers in the top with no messages must be other ppl BreadCasts And ther message that is also awaiting to be sent just like the ones in the bottom of the BCBoard .

It must show how many message is waiting to be released but it dosent i can only see my own broad cast and its position an the upgrade option but all other awaiting BraodCasts are not showing up i though the packet might be missing something but im not sure

what im asking here is.

is that the right packet to be sent to the breadCaster and to other players at the same time and if yes did i miss any other info that need to be sent in that packet ?
if not than what do i need to do must be a good question :)
thanks everyone .
01/06/2011 22:59 Iron~Man#2
It has nothing to do with the packet,, Check out PacketHandler.cs I Think.
01/06/2011 23:48 { Angelius }#3
Quote:
Originally Posted by Iron~Man View Post
It has nothing to do with the packet,, Check out PacketHandler.cs I Think.
thats the PacketHandler job
PHP Code:
#region Broadcaster
case 2050:
 {
  
Handler.BroadCast.Handle(ClientData);
  break;
 }
#endregion 
this is the Handler.BroadCast.Handle void
PHP Code:
fixed (bytePtr Data)
                {
                    
byte Type Data[4];
                    switch (
Type)
                    {
                        case 
1:
                            {
//waiting breadcast with out the upgrade button 
                             
}
                                break;
                            }
                        case 
2:
                            {
Client.sendPacketP(HarCOP.BroadCast(BCMessage.ValueTypea)); break;
//waiting breadcast With the upgrade button being sent to the BC sender 
//and here is the problem the packet i posted in top of the thread is what should be sent here 
                                
break;
                            }
                        case 
3:
                            {
//Process BC sending cps/message/bad words/BC id /etc
                                
break;
                            }
                        case 
4:
                            {
// BC Upgrade button for 15 cps 
                                
break;
                            }
                        case 
5:
                            {
// BC Upgrade button for 5 cps 
                                
break;
                            }
                        default:
                            {
                                
Console.WriteLine("Unknow subType: " Type);
                                break;
                            }
                    }
                } 
01/07/2011 01:05 -Shunsui-#4
Your offsets could of changed, if im not wrong that packet right there is from Elite CoEmue 5095
01/07/2011 03:26 { Angelius }#5
Quote:
Originally Posted by -Shunsui- View Post
Your offsets could of changed, if im not wrong that packet right there is from Elite CoEmue 5095
coenum is the source of that packet .