Stripped ProjectAlchemy Source Code

01/17/2011 01:52 denominator#676
The 136 thing worked :)
01/17/2011 02:52 argon69#677
I have a code piece to disconnect when a player starts flashing. This is for packet 10017. I think this is useful for mining bot. Anyone who worked on Talk-to-NPC function, please share the information? :) Eventually I will get there but we could exchange basic functions :) P4N, first "if section" for char update can be refactored using similar pattern, btw.

Thanks.

else if (Client.DcOnFlashing)
{
uint Amount = ReadUInt32(Data, 8);
int Pointer = 12;
for (uint i = 0; i < Amount; i++)
{
uint StatusCode = ReadUInt16(Data, Pointer);
if (StatusCode == 25)
{
ulong StatusValue = ReadUInt32(Data, Pointer + 4);
if ((StatusValue & 0x1) > 0)
{
COut(Client.Name + " Disconnecting due to flashing player name: ");
Client.Disconnect();
}
Pointer += 12;
}
}
}
01/17/2011 09:34 Warlax#678
lol u lot should just get an svn and be done with it :P

altho id recommend only adding users if some1 actually contributes to the origional source code, then let em get access to add it to ur svn. ull all get stuff done much quicker
01/17/2011 14:41 Kiyono#679
Just so you know but decrypting passwords with your own code doesn't work properly, lol
I downloaded the proxy, stuck your code in, ran it, logged in and it printed the wrong password to the console.
01/17/2011 15:53 argon69#680
Anyone using ConquerLoader on Vista? I have no problem using in XP but it uses real conquer ips rather Loadset.ini in Vista. I have been scratching my head... ConquerLoader V4 should work as it is. Well, say something about this, brothers :)
01/17/2011 17:20 demon17#681
Quote:
Originally Posted by argon69 View Post
Anyone using ConquerLoader on Vista? I have no problem using in XP but it uses real conquer ips rather Loadset.ini in Vista. I have been scratching my head... ConquerLoader V4 should work as it is. Well, say something about this, brothers :)
Mu bro created a new user in his computer (windows xp) .
In admin mode not work , and in new user works nicely. IDK why .
01/17/2011 17:42 argon69#682
Quote:
Originally Posted by demon17 View Post
Mu bro created a new user in his computer (windows xp) .
In admin mode not work , and in new user works nicely. IDK why .
What are u saying? New user in windows xp? I have no problem with XP. I only have issue with Vista.
01/17/2011 17:44 pro4never#683
Quote:
Originally Posted by Kiyono View Post
Just so you know but decrypting passwords with your own code doesn't work properly, lol
I downloaded the proxy, stuck your code in, ran it, logged in and it printed the wrong password to the console.
It does... you're just not reading the original password byte array properly. I used that exact code back when I logged passwords going through the proxy. (removed for obvious reasons when I released the source lol)

@warlax: Good idea for them.

Dropbox or svn would be a great option for you guys so that you can simply share copies of it between you simply.
01/17/2011 18:20 Kiyono#684
Quote:
Originally Posted by pro4never View Post
It does... you're just not reading the original password byte array properly. I used that exact code back when I logged passwords going through the proxy. (removed for obvious reasons when I released the source lol)

@warlax: Good idea for them.

Dropbox or svn would be a great option for you guys so that you can simply share copies of it between you simply.
How could it be wrong when I just used what you had in there?
//edit I stuck the code between this btw.
byte[] Pass = PR.ReadBytes(16); //Removed decryption
PR.ReadBytes(112);
01/17/2011 19:54 gorgone#685
the pass is good to be stay in cripted way no release decryption :) ... work on pakcets and new hunt method.. i start to used a spiral method hunt use spiral function to move char then restart to started point.

Spiral - Wikipedia, the free encyclopedia

i use logarithmic spiral.... about path and move char between maps i use Dijistra algoritm is the similar used in google maps..
Dijkstra's algorithm - Wikipedia, the free encyclopedia
01/17/2011 20:44 OELABOELA#686
You have your algorithm working?
01/17/2011 22:10 gorgone#687
yes this is the structure

function Dijkstra(L[1..n, 1..n]) : array [2..n]
{
array D[2..n]
set C
C <- {2, 3, 4, 5, 6, …, n}
for i <- 2 to n
D[i] <- L[1,i]
repeat n - 2 times
v <- C // minimum D[v] extract to C
v <- C - {v}
for each w in C do
D[w] <- min(D[w], D[v] + L[v,w])
return D
}

Dijkstra's Algorithm solves to shortest path problem .. i posted the algoritm when is fixed i pubblish all
01/17/2011 22:14 gorgone#688
this is my new MAP location GPS

private void RefreshMap()
{

float x1, y1;

//o1 = float.Parse(textBox3.Text)/100;
if ((xo > 0) && (yo >1 ))
{
// o = float.Parse(textBox3.Text) / 100;
x1 = xo + (float)(Owner.X * Math.Cos(o) - Owner.Y * Math.Sin(o));
y1 = yo + (float)(Owner.X * Math.Sin(o) + Owner.Y * Math.Cos(o));

label15.Content = "X : " + x1;
label16.Content = "Y : " + y1;
label17.Content = " O : " + o;

if (freshmap < 60)
freshmap += 1;
else
{
ImageSource imageFile = new BitmapImage(new Uri(System.IO.Directory.GetCurrentDirectory() + @"\map\skap\" + App.MapID[(uint)(Owner.Map)] + ".png"));

DrawingVisual drawingVisual = new DrawingVisual();
DrawingContext drawingContext = drawingVisual.RenderOpen();

Ellipse Char_pointer = new Ellipse();
Char_pointer.Width = 18;
Char_pointer.Height = 18;

RadialGradientBrush myBrush = new RadialGradientBrush();
myBrush.GradientOrigin = new System.Windows.Point(0.75, 0.25);
myBrush.GradientStops.Add(new GradientStop(Colors.Yellow, 0.0));
myBrush.GradientStops.Add(new GradientStop(Colors.Orange, 0.5));
myBrush.GradientStops.Add(new GradientStop(Colors.Red, 1.0));

Char_pointer.Fill = myBrush;

drawingContext.DrawImage(imageFile,new Rect(new System.Windows.Size(imageFile.Width,imageFile.Heig ht)));

if ((x1 >0) && (y1>0))
{
System.Windows.Media.Pen pen = new System.Windows.Media.Pen(myBrush, 5.0);

EllipseGeometry el = new EllipseGeometry(new System.Windows.Point(x1, y1 + 5), 12,18);
drawingContext.DrawGeometry(myBrush, pen, el);

}
// Persist the drawing content.
drawingContext.Close();

RenderTargetBitmap bmp = new RenderTargetBitmap((int)(imageFile.Width), (int)(imageFile.Height), 96, 96,PixelFormats.Default);
bmp.Render(drawingVisual);
image1.Source = bmp;
freshmap = 0;
}
}
}


(this methods works on WPF i used to incress the rendering)

like i said if u need is free used other way by pass ^^
01/17/2011 22:16 OELABOELA#689
Im working with star together to get the map working on a seperate thread, to improve the speed & stability.
01/17/2011 22:27 macavladu#690
Hihi
The noob dutch is working once again :D