[HELP]ConquerSourceCode

01/05/2020 03:49 Procq#1
Hi ePvP, I'm looking in the source and i search #commands (gm / pm) and I don't see it ... after a time with the Ransack Agent program (search text in file) I find the commands (@scroll @dc @[Only registered and activated users can see links. Click Here To Register...] etc ...)
FileName PacketHandler.cs
I pasted the order "@rev"
Code:
		           case "rev":
                                {
                                    client.Entity.Action = Wait.Game.Enums.ConquerAction.None;
                                    client.ReviveStamp = Time32.Now;
                                    client.Attackable = false;

                                    client.Entity.TransformationID = 0;
                                    client.Entity.RemoveFlag(Update.Flags.Dead);
                                    client.Entity.RemoveFlag(Update.Flags.Ghost);
                                    client.Entity.Hitpoints = client.Entity.MaxHitpoints;
                                    break;
                                }
but it doesn't work .. .. I said I am probably stupid and stupid put command bad "@rev" :confused: ... I still tried to change @[Only registered and activated users can see links. Click Here To Register...] command (it works like @[Only registered and activated users can see links. Click Here To Register...])
Code:
                           case "bring":
                                {
                                    foreach (var pClient in ServerBase.Kernel.GamePool.Values)
                                    {
                                        if (pClient.Entity.Name.ToLower().Contains(Data[1]) || Data[1].ToLower() == "all")
                                            if (Data[1].ToLower() == "all")
                                            {
                                                pClient.Entity.Teleport(client.Entity.MapID,
                                                    (ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
                                                    (ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5));
                                            }
                                            else
                                                pClient.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y);

                                    }
                                    break;
                                }
i change in "@come"
Code:
                           case "come": //bring
                                {
                                    foreach (var pClient in ServerBase.Kernel.GamePool.Values)
                                    {
                                        if (pClient.Entity.Name.ToLower().Contains(Data[1]) || Data[1].ToLower() == "all")
                                            if (Data[1].ToLower() == "all")
                                            {
                                                pClient.Entity.Teleport(client.Entity.MapID,
                                                    (ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
                                                    (ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5));
                                            }
                                            else
                                                pClient.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y);

                                    }
                                    break;
                                }
but "@come" no working why ??:confused:. anything answer help me :handsdown:

P.S I have windows xp and i use notepad++ (Visual studio is a new version but my windows not supported, if this is problem and you know anything program for xp. Please.
P.S.S To make server cs 1.6(amxmodx) or samp(pawno) file is compiler to conquer idk i am beginner..
01/05/2020 13:22 Aimless Angel#2
#moved Main -> Conquer Online
01/06/2020 09:52 Procq#3
Can help me??
01/06/2020 21:50 Spirited#4
You can't copy and paste code between sources and expect them to work most of the time, just fyi. Besides that, you need to compile your source code using Visual Studio. It sounds like you should go through [Only registered and activated users can see links. Click Here To Register...] on C# before starting a Conquer server. Windows XP is dead as well; you should upgrade to Windows 10 for security and app compatibility.
01/08/2020 11:03 Procq#5
Thx .. I solved it now, but I have the last problem ... I connect the source and the debugin serv with visual studio, but I do not connect to mysql ... I make changes in the file programs (gameip = xxxxx, root localhost) and i make mysql connection (succesfull conection and execute sql ...), but server say mysql was not connected ... before this error i have an error, it is first error"system.collections.generic.keynotfoundexcept ion, the key was not present in the dictionary "... ok I know" the key is not in the folder ... "but how to fix / eliminate this error ?.. connection to mysql is not a problem .. this "key" make to not connected my mysql db .. I know .. but I do not know what this key F ***** g .. I search on Google but ... do not understand .. can you help me? this is a last problem .. I promise you

P.s sorry for bad english but its not my first language.
p.s.s i want to learn is very hard with language and learn language c#..but i need one hand of help. is last
01/08/2020 19:12 Spirited#6
Quote:
Originally Posted by Procq View Post
Thx .. I solved it now, but I have the last problem ... I connect the source and the debugin serv with visual studio, but I do not connect to mysql ... I make changes in the file programs (gameip = xxxxx, root localhost) and i make mysql connection (succesfull conection and execute sql ...), but server say mysql was not connected ... before this error i have an error, it is first error"system.collections.generic.keynotfoundexcept ion, the key was not present in the dictionary "... ok I know" the key is not in the folder ... "but how to fix / eliminate this error ?.. connection to mysql is not a problem .. this "key" make to not connected my mysql db .. I know .. but I do not know what this key F ***** g .. I search on Google but ... do not understand .. can you help me? this is a last problem .. I promise you

P.s sorry for bad english but its not my first language.
p.s.s i want to learn is very hard with language and learn language c#..but i need one hand of help. is last
If you'd like help with the MySQL error, you can post it here. Idk what "the error" is unless you share it. Your English isn't that bad, to be honest.
01/08/2020 19:39 Procq#7
in my language is reverse words how not learn to school english...idk is ok or not :))
ok.
error on source (cmd) Photo:[Only registered and activated users can see links. Click Here To Register...]

Program.cs
[Only registered and activated users can see links. Click Here To Register...]

i post all file for see what you want
01/08/2020 21:15 Spirited#8
Idk where you got that source code, but that's the worst code I've seen to date. I know they're loaded with problems, but I can't believe they've gotten that bad. I strongly encourage that you work with a recommended source from here... Otherwise, you'll have to debug it yourself to understand why it's not working. It may be a configuration error?
01/08/2020 21:25 Procq#9
yea..little coder say me is lack code ..who source recommend (no close the topic.. can anyone know)
01/08/2020 22:32 Spirited#10
Quote:
Originally Posted by Procq View Post
yea..little coder say me is lack code ..who source recommend (no close the topic.. can anyone know)
I know you've already seen this, but this is the list:
[Only registered and activated users can see links. Click Here To Register...]
01/16/2020 22:11 donaistheboss#11
check this if help you