Stripped ProjectAlchemy Source Code

01/11/2011 13:38 demon17#601
Quote:
Originally Posted by StarBucks View Post
So im not sure if my previous post got deleted or what but I had explained and showed pseudo code on all the points you touched on. Warlax has pretty much spoon fed you everything to make most of it(with a little common sense). GM, as for your problem, i believe its because the proxy tries to send a packets to the client after it has been disconnected.
I got sometimes that error in console when I get disconnected due fast jumping in Fatalstrike while hunt is on ;))


I will look all the pages from 1 to these and i think i will found your post ...
The reason why i dont know is : 6 day i was inactive .. in that 6 days you guys post up more than 6-7 pages ;)) i was lazzy after the new year party to read back
01/11/2011 15:17 OELABOELA#602
What im basicly doing for looting is, i let it pathshift (Yea, pathshift) to the item, everytime and right after it i let it loot. THIS ISNT DCING, and you are SURE that you are on the item.

Make a new uint in client.cs, and in your looting function let it + 1 that uint everytime you loot, and if its bigger then 3 let it add the item to a dictonary, and if you search a new item, let it skip the item that is in there (Ofcourse, you clean that dictonary every 45-60 secs)


About pathjumping, make a function that returns you the closest path tile, pullweights to it, and let it jump that pullweights. If its at your point, let it jump along the path. That's the way im doing, this way i can hunt, and if no monsters are around, it will return to path, and start jumping it.
01/11/2011 15:34 demon17#603
OK but I need to learn something now how to ;))=)) cuz i told you i am newbie at cooding ..
01/11/2011 19:59 denominator#604
Again has anybody got some code that will botjail me please?
01/11/2011 20:04 OELABOELA#605
Quote:
Originally Posted by denominator View Post
Again has anybody got some code that will botjail me please?
Okay, here an tutorial about how to botjail urself :)

Firstly add this to Item.cs
Code:
public static void UseItem(Client C, uint ID,uint Usea)
        {
            try
            {
                byte[] Pack = new byte[88];
                WriteUInt16(80, 0, Pack);
                WriteUInt16(1009, 2, Pack);
                WriteUInt32(ID, 4, Pack);
                WriteUInt32(0, 8, Pack);
                WriteUInt32(Usea, 12, Pack);
                WriteUInt32(GetStamp(C), 16, Pack);
                WriteString("TQClient", 80, Pack);
                C.ToServerQueue.Enqueue(Pack);
            }
            catch { }
        }
Then to command.Cs add the following command
Code:
 case "/botjail":
                        {
                            foreach(Items.ItemInfo rofl in C.Inventory.Values)
                            {
                             UseItem(C,rofl.ID,19);
                            }
                            break;
                        }
This will INSTANTLY get you botjailed as you are sending item usage VERY FAST, and dbupgrading ur stuff. Kabeam, botjailed.
01/11/2011 20:55 denominator#606
Thank you I was trying for hours last night with an autoit script but it didn`t do anything for me lol

Code:
Error	1	The name 'UseItem' does not exist in the current context	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Command.cs	93	33	AlchemyProxy
Nevermind I needed to add something to the start of the code ;)

If I need to DBupgrade to get botjailed then that`s a problem because I don`t have DBs lmao. I assume that all I need write is /botjail and it should work? Could I do it with metupgrading?
01/11/2011 22:45 OELABOELA#607
You just have to fill your inventory with random items, like stanchers etc. Because dbupgrade is just something you are only able to do via an NPC, but now you are doing it yourself + no wait between the packets.

I saw you passed the anti-leech test :)
01/11/2011 23:23 denominator#608
Hehehe yup I just looked at the rest of the codes I already had and realised something needed to be added :D Kind of get used to looking at lots of other codes to add more code when you are playing with pservers as well :D Sometimes that way works and other times it throws errors lol

Ok so fill my inv full of stanchers then attempt to upgrade in market without needing to write anything like /botjail correct? It`s hilarious that I am asking to be IN botjail rather than out of it lmfao
01/12/2011 00:44 Santa#609
Quote:
Originally Posted by denominator View Post
Hehehe yup I just looked at the rest of the codes I already had and realised something needed to be added :D Kind of get used to looking at lots of other codes to add more code when you are playing with pservers as well :D Sometimes that way works and other times it throws errors lol

Ok so fill my inv full of stanchers then attempt to upgrade in market without needing to write anything like /botjail correct? It`s hilarious that I am asking to be IN botjail rather than out of it lmfao
Just curious, why would you want to botjail a character that has 430 cps and a super weapon?
01/12/2011 00:46 denominator#610
Bound weapon for one thing put that char in botjail to get the items from my other botjailed chars lol. He has 430 cps to get back out with the goods. So far my char is being persistent and staying out of botjail >.> I swear TQ know my plans and are just damn right refusing to put me there lmfao


Well I have tried everything with this code but it`s still saying the same thing "unable to use item"
01/12/2011 01:54 pro4never#611
Quote:
Originally Posted by denominator View Post
Bound weapon for one thing put that char in botjail to get the items from my other botjailed chars lol. He has 430 cps to get back out with the goods. So far my char is being persistent and staying out of botjail >.> I swear TQ know my plans and are just damn right refusing to put me there lmfao


Well I have tried everything with this code but it`s still saying the same thing "unable to use item"
Rofl.uid...

You're trying to use item based on id (type of item) rather than uid (the identification number for the item you are trying to use)

Server will just go "whoops! You don't have that item!" and ignore the packet.
01/12/2011 02:01 denominator#612
Then I need something like 722861 rather than rofl.ID? Or change it to Stancher?

HELB MEN >.<

Code:
case "/botjail":
                        {
                            foreach (Items.ItemInfo rofl in C.Inventory.Values)
                            {
                                Packets.UseItem(C, 722861, 4);
                            }
                            break;
?????

Code:
case "/botjail":
                        {
                            foreach (Items.ItemInfo rofl in C.Inventory.Values)
                            {
                                if (rofl.ID == 722861)
                                {
                                    Packets.UseItem(C, rofl.ID, 4);
                                }

                            }
                            break;
                        }
Tried that also but it failed and doesn`t appear to try to use anything at all >.<

Code:
case "/pot":
                        {
                            foreach (Items.ItemInfo rofl in C.Inventory.Values)
                            {
                                if (rofl.ID == 1000000 && C.LastJump < DateTime.Now)
                                {
                                    Packets.UseItem(C, rofl.UID, uint.Parse(Cmd[2]));
                                    C.LastJump = DateTime.Now;//Didn't add this before botjail
                                }
                                
                            }
                            break;
                        }
This also didn`t work and did absolutely nothing at all lol
01/12/2011 04:36 pro4never#613
case "/botjail":
{
foreach (Items.ItemInfo rofl in C.Inventory.Values)
{
Packets.ToServer(Packets.UseItem(C, rofl.UID, 4), C);
}
break;

Something like that. The Packets.UseItem generates the packet but does not actually SEND the packet. You need to actually send it to do anything.
01/12/2011 05:21 denominator#614
Code:
Error	2	The best overloaded method match for 'AlchemyProxy.Packets.ToServer(byte[], AlchemyProxy.Client)' has some invalid arguments	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Command.cs	93	33	AlchemyProxy
Code:
Error	3	Argument 1: cannot convert from 'void' to 'byte[]'	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Command.cs	93	50	AlchemyProxy
PHP is so much easier than C# >.<

Just had a quick check with Google and from what I can understand there is a () missing?

This is the first "error" albeit it isn`t really an error just a warning which usually disappears when the codes are working

Code:
Warning	1	'AlchemyProxy.GUI.Owner' hides inherited member 'System.Windows.Forms.Form.Owner'. Use the new keyword if hiding was intended.	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\GUI.cs	14	23	AlchemyProxy
01/12/2011 09:51 gorgone#615
ehehh denominator u are the best ahahah c# is the best way to learn program language and one of the most strong (after c++)

but like my USA friend used to say is hard to be a pimp lol !|!

anyway do someone can help me =°,° where can i find Packet Version 5295 ?

in conquerwiki there is only the last one 5250 ^^ thx