Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 10:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



What's wrong with my Nighttime command(impulse's source)

Discussion on What's wrong with my Nighttime command(impulse's source) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
What's wrong with my Nighttime command(impulse's source)

Heres my command
Code:
#region Night
                                    case "night":
                                        {
                                            Client.GameState.ScreenColor = 5855577;
                                            GamePackets.GeneralData Packet = new GamePackets.GeneralData(true);
                                            Packet.UID = client.Entity.UID;
                                            Packet.GetType();
                                            Packet.ID = (ushort)Client.GameState.ScreenColor;
                                            foreach (Client.GameState pclient in ServerBase.Kernel.GamePool.Values)
                                            {
                                                pclient.Send(Packet);
                                            }
                                            //pclient.Send(GeneralData(pclient.Entity.UID, Client.GameState.ScreenColor, 0, 0, 104));
                                            //pclient.Send(GamePackets.GeneralData(pclient.Entity.UID, Client.GameState.ScreenColor, 0, 0, 104));
                                        }
                                        break;
                                    #endregion
Been at this for 3 hours or so and nothing seems to work
MonstersAbroad is offline  
Old 07/21/2010, 22:03   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
#bump
MonstersAbroad is offline  
Old 07/21/2010, 22:12   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
If I understand the source correctly (never opened it before) you're setting the ID wrong. The ID should be 104 and the "value" of the packet should be the color.
_tao4229_ is offline  
Old 07/21/2010, 22:27   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Something like
Code:
Client.GameState.ScreenColor = 5855577;
                                            GamePackets.GeneralData Packet = new GamePackets.GeneralData(true);
                                            Packet.UID = client.Entity.UID;
                                            Packet.GetType();
                                            Packet.ID = 104;
                                            Packet.dwParam = Client.GameState.ScreenColor;
                                            foreach (Client.GameState pclient in ServerBase.Kernel.GamePool.Values)
                                            {
                                                pclient.Send(Packet);
                                            }
?

#edit
Or this?
Code:
                                            Client.GameState.ScreenColor = 5855577;
                                            GamePackets.GeneralData Packet = new GamePackets.GeneralData(true);
                                            Packet.UID = client.Entity.UID;
                                            Packet.GetType();
                                            Packet.ID = 104;
                                            Packet.dwParam = Client.GameState.ScreenColor;
                                            Packet.wParam1 = 0;
                                            Packet.wParam2 = 0;
                                            foreach (Client.GameState pclient in ServerBase.Kernel.GamePool.Values)
                                            {
                                                pclient.Send(Packet);
                                            }
MonstersAbroad is offline  
Old 07/21/2010, 23:15   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Hmm, what's GetType()?

and it should be ...


Client.GameState.ScreenColor = 5855577;
GamePackets.GeneralData Packet = new GamePackets.GeneralData(true);
Packet.UID = client.Entity.UID;
Packet.ID = 104;
Packet.dwParam = Client.GameState.ScreenColor;
foreach (Client.GameState pclient in ServerBase.Kernel.GamePool.Values)
{
pclient.Send(Packet);
}
-impulse- is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] Breeder NPC (Impulse's source)
07/25/2010 - CO2 PServer Guides & Releases - 4 Replies
Hello, I am very very pleased and proud of myself that I managed to do this FIRST time trying to send a packet via npc so I'm happy :) SPECIAL THANKS TO: .Arco's thread Breeder packet with NPC. That gave me the packet id's. all it is, is this npc in dialog.cs #region Breeder case 13118:
[Release] No whisper's command (Impulse's source)
07/23/2010 - CO2 PServer Guides & Releases - 2 Replies
Here. First define in entity.cs public bool nowhsp = false; then goto packethandler.cs and where whisper is handled make it this foreach (Client.GameState pClient in ServerBase.Kernel.GamePool.Values) {
Been at this stupid thing for adges. (Impulse's source)
07/18/2010 - CO2 Private Server - 5 Replies
I have this item #region Firwork EndlessLove case 720031: { client.Send(GamePackets.StringPacket.Effect(clien t.Entity.UID, "firework-1love")); client.Inventory.Remove(item, Game.Enums.ItemUse.Remove); //MyClient.AddSend(Packets.String(MyClient.MyChar. EntityID, 10, "firework-1love")); } break;



All times are GMT +1. The time now is 10:07.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.