Stripped ProjectAlchemy Source Code

01/04/2011 23:42 denominator#481
Ahhhh well you cleared a few things up for me :) I mean I have three chars logged in and for some reason when I do anything else on my comp then I get thrown back to Conquer screen. It means that trying to write things here and next thing I know I look at my screen and the screen is on Conquer not the webpage etc.

I guess having three laptops a computer and an xbox running on a 10meg broadband is going to hurt my net :(

Code:
Error	1	'AlchemyProxy.Handler.MineBot(AlchemyProxy.Client)': not all code paths return a value	C:\Users\AlanKnight\Desktop\AlchemyProxy(2)\AlchemyProxy\Handlers\Bot.cs	125	21	AlchemyProxy
For some reason the screen has stopped jumping back to my last Conquer logged in >.< very strange lmao
01/05/2011 00:41 Santa#482
Quote:
Originally Posted by OELABOELA View Post
3. No, and i think its just your net doing it, because sometimes i instantly logg, and sometimes i cant event logg(this is when my net is unstable)
Did the way i showed you not fix the login mess?
01/05/2011 01:10 denominator#483
Ok I fixed the problem that I was having lol. Thank you p4n for an earlier post which I just noticed :D Means I don`t have to add the whole public static MineBot thing now lol
01/05/2011 07:34 kivu94#484
im log in char but command is not work! help me!
01/05/2011 07:53 sharinggan#485
Quote:
Originally Posted by kivu94 View Post
im log in char but command is not work! help me!
new year and alot of bitching still going on. lmao. some people just doesnt care to read the first post.
01/05/2011 09:37 OELABOELA#486
Quote:
Originally Posted by StarBucks View Post
Did the way i showed you not fix the login mess?
It fixed that when i login, and dc again, that i can relog again, instead having to restart the proxy.

Quote:
Originally Posted by sharinggan View Post
new year and alot of bitching still going on. lmao. some people just doesnt care to read the first post.
Seems like the leecherness have just increased in the new year.
01/05/2011 18:25 denominator#487
Quote:
instead having to restart the proxy.
You had to restart your proxy o.0?
01/05/2011 19:10 OELABOELA#488
Quote:
Originally Posted by denominator View Post
You had to restart your proxy o.0?
Yes


/toshort
01/05/2011 22:31 pro4never#489
@not all code paths return a value

You are using a method that has a return type.. make sure all paths return SOMETHING.


IE

public static bool(Client C)
{
blablabla

return true;
}

it HAS to return a bool cause that's the return type. If you have a bunch of if/else type statements there is a chance it WON'T return something which is not permitted. The simplest way is to have a default return statement at the very end of the code and then simply check for the opposite conditions...

IE:

public static bool CanPk(Client Attacker, Client Attacked)
{
if(Attacker.Mode == Pk)
return true;
else if (Bluename(Attacked) || BlackName(Attacked)
return true;
return false;
}

in that example you always return something yet still check your conditions you need. Etc
01/05/2011 23:45 denominator#490
It`s cool p4n I worked my way around it with something you posted earlier in this thread :D
Wow OELA everytime it lagged out a char you seriously had to restart the proxy? Couldn`t you just relog them back in or do you mean when you was adding code lol?
01/06/2011 00:44 Santa#491
Quote:
Originally Posted by denominator View Post
It`s cool p4n I worked my way around it with something you posted earlier in this thread :D
Wow OELA everytime it lagged out a char you seriously had to restart the proxy? Couldn`t you just relog them back in or do you mean when you was adding code lol?
He meant how when you hit Enter on the client and it freezes...you would either have to close to the client or proxy...
01/06/2011 01:25 koko425#492
p4n please just solve login proplem i will built my owen bot this proplem its big on
01/06/2011 02:37 argon69#493
Thx P4N.

I just started working a bot using your framework. Your work was really good. I still have few questions to be answered but I haven't went through all forum yet. So, I will post a questions later.

I have finished basic attacking function using Monk. I am working on algorithm to move around within perimeter. I need to add item pickup / drop functions as well as auto potting. I have re-worked on bot handling so that each client can work on different bot such as hunting, mining, etc.
01/06/2011 02:43 argon69#494
Someone asked a questions about dc after few jumps. I am wondering about the dc. If I can be notified by server packet that I finished jumping, I don't have to wait xxx ms. The server won't send client's location information?
01/06/2011 03:05 pro4never#495
Quote:
Originally Posted by argon69 View Post
Someone asked a questions about dc after few jumps. I am wondering about the dc. If I can be notified by server packet that I finished jumping, I don't have to wait xxx ms. The server won't send client's location information?
The server replies with a general data 137 packet when you jump but that doesn't mean you are 'done' jumping.

As far as I remember it's between 700-800 ms that you can jump. Keep in mind if you attack/jump at same time it will often dc you but you can do CONSTANT jumping back and forth using 750 ms from what I remember in my tests.

Or you could code a proper speedhack system and then you can jump way faster (I was doing 100 ms jumps without dcing in my tests)

Finally assuming tq still hasn't fixed it you can use the 'shift' packet I have in the proxy which is basically a low range teleport. It can send you up to 7 coords away instantly and that makes for some damn good hunting. In my tests I could do like 50-60 ms without dcing.