Stripped ProjectAlchemy Source Code

04/19/2011 22:43 pro4never#1141
Quote:
Originally Posted by pyralis View Post
I've been browsing the programming forum but I still couldn't find info on it
could someone tell me the steps in hosting the proxy with hamachi?

btw there are many hard coded strings in the code, do I need to modify those too for the first run?
I mean these: public static string ProxyIp = "5.1.98.6";

thanks a lot

*edit, Ill keep checking the older post in this thread, lots of information in it
although not many got stuck where i did
thank you for pm ill try that now :)
Most of those strings are modified from the settings.txt file when you run the proxy.
04/20/2011 20:26 denominator#1142
Ok so on further inspection my char jumps into the mob then the mob moves and my char stays where he is and keeps attacking without jumping into the mob all the time so that`s a good thing :) Unsure as to how to speed him up though and still having issues with cyclone activating so the char then stops what he is doing and also picking up more than one item from mob drops.
04/21/2011 16:47 OELABOELA#1143
So basicly, your hunting works? But the looting is a problem? Because i will be glad to help, but i won't chew the code, and give it, ill give instructions how, and you must code it yourself.
04/21/2011 18:25 BadBoY_AC#1144
cant post it right now cuz im on my laptop... but as soon as i come home ill post a loot-code (easter holidays so not home lol) but i figured out a good way.. thx to denominator, helped me a lot..
04/21/2011 18:50 denominator#1145
My hunting and pathfinding system is working fine yes. The looting system is the problem but as I said there is the newer problem of when cyclone activates the char stops hunting and I have to either jump or manually hit the mob for the bot to start working again. I have never used cyclone before though so it may have always been this way. I think when I used it before the char was still only 1st RB and ninja?
04/22/2011 03:29 mateco000#1146
any cand code this for conquest? i can pay for it.

PM if is ok
04/22/2011 13:16 demon17#1147
Oh yeah .. im back again :D..

But i have some problems what i dont understand ,.. how exactly i need to change and what in this
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace AlchemyProxy
{
    public partial class Handler
    {
        public static void AuthSvrPacket(byte[] Data, LoginClient Client)
        {
            try
            {
                Client.ServerAuth.DecryptBackwards(Data);
                PacketReader PR = new PacketReader(Data, 2);
                ushort Type = PR.ReadUInt16();
                bool send = true;
                switch (Type)
                {
                    case 1059:
                        Client.PassSeed = (int)PR.ReadUInt32();
                        break;
                    case 1055:
                        if (Data.Length > 50)
                        {
                            byte[] Pack = Packets.AuthResponse(Data, Client);
                            Client.ServerAuth.Encrypt(Pack);
                            Client.ClientSock.Send(Pack);
                            send = false;
                        }
                        else
                        {
                            COut("Server refused connection!");
                            Client.ServerAuth.Encrypt(Data);
                            Client.ClientSock.Send(Data);
                            Client.AuthServer.Disconnect();
                            Client.ClientSock.Disconnect(false);
                            return;
                        }
                        break;
                    default:
                        Console.WriteLine("Auth server packet of type: " + Type);
                        break;
                }
                if (send)
                {
                    Client.ServerAuth.Encrypt(Data);
                    Client.ClientSock.Send(Data);
                    return;
                }
            }
            catch { }
        }
        public static void AuthCliPacket(byte[] Data, LoginClient Client)
        {
            try
            {
                Client.ClientAuth.Decrypt(Data);
                PacketReader PR = new PacketReader(Data, 0);
                PR.ReadUInt16();
                ushort type = PR.ReadUInt16();
                switch (type)
                {
                    case 1086:
                        byte[] Usr = PR.ReadBytes(16);
                        string Username = Encoding.ASCII.GetString(Usr);
                        Username = Username.Replace("\0", "");
                        PR.ReadBytes(112);
                        byte[] Pass = PR.ReadBytes(16); //Removed decryption
                        PR.ReadBytes(112);
                        string Passw = Encoding.ASCII.GetString(Pass);
                        Passw = Passw.Replace("\0", "");
                        byte[] Svr = PR.ReadBytes(16);
                        string Server = Encoding.ASCII.GetString(Svr);
                        Server = Server.Replace("\0", "");
                        Client.Username = Username;
                        Client.Server = Server;
                        Client.Password = Passw;

                        break;
                    case 1100:
                        break;
                    default:
                        Console.WriteLine("Augh! Unknown client auth packet of type: " + type);
                        break;
                }
                Client.ClientAuth.EncryptBackwards(Data);
                Client.AuthServer.Send(Data);
            }
            catch { }
        }
    }
}
?:D
04/22/2011 17:18 BadBoY_AC#1148
change the case 1086 to 1060.. that fixed my login problem... but you didnt even ask what your problem is lol..
04/22/2011 18:07 OELABOELA#1149
Quote:
Originally Posted by BadBoY_AC View Post
change the case 1086 to 1060.. that fixed my login problem... but you didnt even ask what your problem is lol..
I've also posted many times that they have to change it to 1060, but you know, leechers don't listen, they only take.
04/22/2011 19:00 demon17#1150
Quote:
Originally Posted by OELABOELA View Post
I've also posted many times that they have to change it to 1060, but you know, leechers don't listen, they only take.


yeha but i wasnt understand that part ;))=))

anyway this is what i understand from the previsious posts
Code:
public static void AuthCliPacket(byte[] Data, LoginClient Client)
        {
            try
            {
                Client.ClientAuth.Decrypt(Data);
                PacketReader PR = new PacketReader(Data, 0);
                PR.ReadUInt16();
                ushort type = PR.ReadUInt16();
                switch (type)
                {
                    case 1086: [COLOR="Red"] ( there I need to change the 1086 to 1060 ?)[/COLOR]
                        byte[] Usr = PR.ReadBytes(16);
                        string Username = Encoding.ASCII.GetString(Usr);
                        Username = Username.Replace("\0", "");
                        PR.ReadBytes(112);
                        byte[] Pass = PR.ReadBytes(16); //Removed decryption
                        PR.ReadBytes(112);
                        string Passw = Encoding.ASCII.GetString(Pass);
                        Passw = Passw.Replace("\0", "");
                        byte[] Svr = PR.ReadBytes(16);
                        string Server = Encoding.ASCII.GetString(Svr);
                        Server = Server.Replace("\0", "");
                        Client.Username = Username;
                        Client.Server = Server;
                        Client.Password = Passw;

                        break;
                    case 1100:
                        break;
                    default:
                        Console.WriteLine("Augh! Unknown client auth packet of type: " + type);
                        break;
                }

So tell me when i understand something wrong
04/22/2011 19:10 BadBoY_AC#1151
just one answer: yes

^^^^
04/22/2011 19:23 demon17#1152
Quote:
Originally Posted by BadBoY_AC View Post
just one answer: yes

^^^^
xD ... Im not new but im out of work :D ...


so I just need to rename the 1086 to 1060 ?:D
04/22/2011 20:15 BadBoY_AC#1153
^lol.. ... yeeeeeeeeeeeeeeeeeeeeeeees
04/22/2011 22:26 demon17#1154
Quote:
Originally Posted by BadBoY_AC View Post
^lol.. ... yeeeeeeeeeeeeeeeeeeeeeeees
oh $|-|!t :D i needed to reinstal my windows :D ...
I need to restart all my projects xD :(=(
04/23/2011 18:42 OELABOELA#1155
Quote:
Originally Posted by demon17 View Post
oh $|-|!t :D i needed to reinstal my windows :D ...
I need to restart all my projects xD :(=(
Ok, that's good. Now start good, and dont use any sleeps. Use timestamps correct and such. Basicly what p4n gave you, is a complete proxy, only you have to say what it has to do. And if you do that right, i'ts basicly a good/done proxy.