Stripped ProjectAlchemy Source Code

02/04/2011 22:13 warning3#871
Type 'AlchemyProxy.Handler' already defines a member called 'NewBot' with the same parameter types <-- Eh?
02/04/2011 22:25 demon17#872
Quote:
Originally Posted by pro4never View Post
When you get disconnected from the game server I print out the last packet type sent. Sounds to me like you're getting dc'd before any packets can be sent.
I was farming a ninja .. xD .. before this DC i got one with 1022 <- ?what is

The 10010 usually got after jumping in FS while hunting ;))
02/05/2011 00:36 OELABOELA#873
Quote:
Originally Posted by demon17 View Post
I was farming a ninja .. xD .. before this DC i got one with 1022 <- ?what is

The 10010 usually got after jumping in FS while hunting ;))
1022 = Something with mobs -> Attacking a invalid target/to fast
10010 = Gen update -> You are jumping invalid.
02/05/2011 01:05 warning3#874
Can someone help me with a hunt code? :)
02/05/2011 02:17 denominator#875
Question would this drop everything apart from Emeralds, DBs, Mets, Sycee, Gold, GoldBars, GoldBullion?

Code:
public static bool IsDP(uint ID)
        {
            if (ID >= 1072059 && ID <= 1080001)
                return true;
            else return false;
        }
02/05/2011 07:52 donady#876
how to set looting only for db, met, gem n money only...
02/05/2011 10:19 caio bola#877
I keep getting error Auth packet of type: 23782

Connecting to game account .. and then crashes

I would like to know if it has something with the fact im using win 32bit ?

And if Yes , how can i make it work with 32bit win xp
02/05/2011 16:53 pro4never#878
Quote:
Originally Posted by caio bola View Post
I keep getting error Auth packet of type: 23782

Connecting to game account .. and then crashes

I would like to know if it has something with the fact im using win 32bit ?

And if Yes , how can i make it work with 32bit win xp
Sounds to me like you're trying to connect to non english conquer servers. The other servers use a different login encryption from what I here (blowfish). I'm not sure on that cause I've never done a proxy for non english conquer but that sounds like the issue.

If you are at all comfortable with programming you could probably change the login to use blowfish.
02/05/2011 19:20 denominator#879
Code:
private static void pathfinding(Client C)
        {
            
            // Sample initialization code
            int width = 5;
            int height = 3;
            width = PathFinderHelper.RoundToNearestPowerOfTwo(width);
            height = PathFinderHelper.RoundToNearestPowerOfTwo(height);

            byte[,] grid = new byte[width, height];
            for (int i = 0; i < 8; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    grid[i, j] = PathFinderHelper.EMPTY_TILE;
                }
            }

            // Create a grid like this (X = wall, . = free):
            // .X...
            // .X.X.
            // ...X.

            grid[1, 0] = PathFinderHelper.BLOCKED_TILE;
            grid[1, 1] = PathFinderHelper.BLOCKED_TILE;
            grid[3, 1] = PathFinderHelper.BLOCKED_TILE;
            grid[3, 2] = PathFinderHelper.BLOCKED_TILE;

            List<PathFinderNode> path = new List<PathFinderNode>();

            if (path != null)
            {
                if (C.Recording)
                {
                    C.Recording = false;
                    Chat(C, "Finished Recording", 2011);
                }
                else
                {
                    C.Recording = true;
                    C.ActivePath = new Path();
                    C.ActivePath.MapID = C.Map;
                    C.ActivePath.Desc = "Custom";
                    C.ActivePath.ID = 0;
                    C.ActivePath.Points.Add(new Point(0, MakeCoord(C.X, C.Y)));
                    C.ActivePoint = null;
                    Chat(C, "Recording path! Jump to add points", 2011);
                }
            }
        }
Should this be working? It is not throwing any errors either
02/05/2011 19:27 hippie#880
hey p4n if i wanted 2 set this up using my external ip addy do i forward ports 9958 or the 5002 ones?
02/05/2011 23:32 kimbola#881
Quote:
Originally Posted by pro4never View Post
Sounds to me like you're trying to connect to non english conquer servers. The other servers use a different login encryption from what I here (blowfish). I'm not sure on that cause I've never done a proxy for non english conquer but that sounds like the issue.

If you are at all comfortable with programming you could probably change the login to use blowfish.

To be honest , iw as hoping to learn the stuff trough the whole proccess.
I wanted to just setup the connection in order to start things out .

So I want to ask if anyone knows how to make it login using Blowfish encryptation?

Thanks in advance
02/06/2011 00:24 pro4never#882
Quote:
Originally Posted by hippie View Post
hey p4n if i wanted 2 set this up using my external ip addy do i forward ports 9958 or the 5002 ones?
The 5000-5002 are the ports it listens on unless you change it. 9958 and such is what it then will connect to from the proxy.

@Kim: You can take a peek at the game server encryption, that's blowfish. Basically you have to intercept and create 2 copies of the encryption and then run the packets through each one/forward if you want them to be sent.

It shouldn't be too bad seeing as blowfish and dhkey exchanges are already in the proxy but if you aren't familiar with it it probably won't be very easy. When I first was trying to setup blowfish for my server it took me quite a long time to understand how to do it properly.
02/06/2011 01:54 kimbola#883
Quote:
Originally Posted by pro4never View Post
The 5000-5002 are the ports it listens on unless you change it. 9958 and such is what it then will connect to from the proxy.

@Kim: You can take a peek at the game server encryption, that's blowfish. Basically you have to intercept and create 2 copies of the encryption and then run the packets through each one/forward if you want them to be sent.

It shouldn't be too bad seeing as blowfish and dhkey exchanges are already in the proxy but if you aren't familiar with it it probably won't be very easy. When I first was trying to setup blowfish for my server it took me quite a long time to understand how to do it properly.
First of all , I would like to thank you for everything you done with your proxy and the time you spent on it. Its good to see theres STILL people that helps other not thinking in personal rewards or selfish stuff.

Second , as you note by my broken english , im brazilian i play on Conquest.

To make your proxy work on Conquest , first we had to change the IP/Ports stuff. So my game authip is 187.17.71.196 , port 9958. Ok I did change it in Program.cs. Did setup everything in hamachi , settings.txt and loader.

So we get the Auth packet type error ( 23782 ) , some other users got the same error , I dont know how they solved it.

Reading the topic I found one user who made your proxy to work on Conquest , here is what he says:
"The first difference i found on Conquest server is that the AuthServer use the same Criptography of the GameServer. You have to change the proxy to use Blowfish Crypto for the AuthServer too."

That being said , I have to make the proxy to use Blowfish Crypto to not just GameServer , but for the AuthServer too.

Is it a simple task? I would be very glad if someone could make a step-by-step on how to do it.

Thanks in advance
02/06/2011 02:22 warning3#884
Can anyone help me adding random jump to the hunt code?

And does anyone have a recording code?
02/06/2011 03:20 denominator#885
Newer code but with far less errors (just fourteen)

Code:
public static void Pathfinder (Client C, PathFinder Distance)
            {
            if (C.Recording)
            {
                
              if(Distance to C.Path[C.PathIndex] < 7); 
              {
              if(C.PathIndex + 1< C.Path.Count)
              {
                 C.PathIndex++; 
              }
              else
              {
                 C.Recording = true;
                 C.Path = new List<Coord>();
                 C.PathIndex = 0;
                 C.Path.Add(new Point(C.X, C.Y));
                 C.Path = C.Path.Reverse();
                 C.PathIndex = 1;
              }
                 Coord To = Calculations.PullWeights(MakeCoord(C.X, C.Y), C.Path[C.PathIndex]);
              } 
            }
        }
My errors are as follows

Code:
Error	1	Embedded statement cannot be a declaration or labeled statement	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	27	AlchemyProxy
Error	2	) expected	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	27	AlchemyProxy
Error	3	Invalid expression term '.'	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	31	AlchemyProxy
Error	4	; expected	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	31	AlchemyProxy
Error	5	; expected	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	32	AlchemyProxy
Error	6	Invalid expression term ')'	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	53	AlchemyProxy
Error	7	; expected	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	53	AlchemyProxy
Error	8	Cannot implicitly convert type 'DeenGames.Utils.AStarPathFinder.PathFinder' to 'bool'	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	18	AlchemyProxy
Error	9	The type or namespace name 'to' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	27	AlchemyProxy
Error	10	A local variable named 'C' cannot be declared in this scope because it would give a different meaning to 'C', which is already used in a 'parent or current' scope to denote something else	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	30	AlchemyProxy
Error	11	Only assignment, call, increment, decrement, and new object expressions can be used as a statement	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	30	AlchemyProxy
Error	12	Only assignment, call, increment, decrement, and new object expressions can be used as a statement	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	32	AlchemyProxy
Error	13	'AlchemyProxy.Path' is a 'type' but is used like a 'variable'	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	32	AlchemyProxy
Error	14	Only assignment, call, increment, decrement, and new object expressions can be used as a statement	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	264	52	AlchemyProxy