Stripped ProjectAlchemy Source Code

01/07/2011 12:18 argon69#511
P4N,

I have little problem of dropping item. What should be right dropping speed? I am trying to figure out why I am in loop of picking up and dropping continuesly.. :) Eventually I will figure out how to fix this bug.... I still need to get used to event handling to protect critical section...I guess.

Thanks.
01/07/2011 12:21 gorgone#512
:p
Quote:
Originally Posted by denominator View Post
Then you will need to use Hamachi ip for everything including your loader :)

A bit off-topic but somebody said that TQ can detect people transferring CPs? Can they then also detect trading of DBs? And apparently if you are caught doing this you are again botjailed or I assume don`t actually leave botjail >.<
u don t have bonus pack for Anniversary CP on noobs u used it past on my noob full of elite ;)

if some1 need -> GameMapEx.ini here in folder ini are all map ID and name of relatives maps
01/07/2011 12:42 argon69#513
Quote:
Originally Posted by argon69 View Post
P4N,

I have little problem of dropping item. What should be right dropping speed? I am trying to figure out why I am in loop of picking up and dropping continuesly.. :) Eventually I will figure out how to fix this bug.... I still need to get used to event handling to protect critical section...I guess.

Thanks.
I see the logic :). I am in process of refine the current steps. Thanks.
01/07/2011 14:37 OELABOELA#514
Quote:
Originally Posted by argon69 View Post
P4N,

I have little problem of dropping item. What should be right dropping speed? I am trying to figure out why I am in loop of picking up and dropping continuesly.. :) Eventually I will figure out how to fix this bug.... I still need to get used to event handling to protect critical section...I guess.

Thanks.
If you just use 200ms, you'll be fine, because im doing that myself to.
01/07/2011 15:59 pro4never#515
Quote:
Originally Posted by OELABOELA View Post
If you just use 200ms, you'll be fine, because im doing that myself to.
Personally I used random rates as well as chances of dropping.


Something like...

if(ChanceSuccess(2 * OreCount) && DateTime.Now > LastDropped.AddSecond(1))
DropOre(Client);


public static void DropOre(Client)
{
foreach (Item I in Client.Inventory)
{
if (IsOre(I.ID))
Packets.DropItem(Client, I);
Client.LastDroped = DateTime.Now;
Client.LastItemID = I.ID;
return;
}
}

as always that's just pseudo code and doesn't relate to anything exactly. Then what I do is I read the incoming drop item packets from server (what spawns things on ground) and checks if it's what I last dropped. if so I know I can drop another item (not always something I implemented but good to use for reference)

Randomized drop rates are always a good thing. Anything that's 'too precise' can easily bot jail you.
01/07/2011 16:44 OELABOELA#516
Quote:
Originally Posted by pro4never View Post
Personally I used random rates as well as chances of dropping.


Something like...

if(ChanceSuccess(2 * OreCount) && DateTime.Now > LastDropped.AddSecond(1))
DropOre(Client);


public static void DropOre(Client)
{
foreach (Item I in Client.Inventory)
{
if (IsOre(I.ID))
Packets.DropItem(Client, I);
Client.LastDroped = DateTime.Now;
Client.LastItemID = I.ID;
return;
}
}

as always that's just pseudo code and doesn't relate to anything exactly. Then what I do is I read the incoming drop item packets from server (what spawns things on ground) and checks if it's what I last dropped. if so I know I can drop another item (not always something I implemented but good to use for reference)

Randomized drop rates are always a good thing. Anything that's 'too precise' can easily bot jail you.
What im doing basicly is, i let it drop. And if a certain time is passed and, another action is done (Not while mining) it can drop an item again, this is kinda random
01/07/2011 17:26 [GM]#517
iam stuck at logging into account server
iam using hamachi, and i putted hamachi ip in ProxyIp/AuthIp/Loader
but still not working.
01/07/2011 18:30 gorgone#518
do u use Conquerloader 4.0 ? and in ini u put right configuration to log on ur server ?
01/07/2011 18:36 [GM]#519
no really i don't know what ver is my loader since i got it from an arabian forum.
but the configuration in the ini file is correct
so i think that i have an old ver of loader, any one can upload it here?
ty
01/07/2011 18:56 gorgone#520
u can find in this section if u looking for "Conquerloader 2.0" take 4.0 version is in middle i used that



like i said in past if u need use, this is my Filter_grouditems Selection

public static Dictionary<uint, Items.GroundItem> ItemFilter(Client C, Dictionary<uint, Items.GroundItem> oggettiInteri)
{
Dictionary<uint, string> Filtr = new Dictionary<uint, string>();
Dictionary<uint, Items.GroundItem> Rientro = new Dictionary<uint, Items.GroundItem>();

if (C.Looting)
Filtr = Program.RareItem;
else if (C.LootMoney)
{
Filtr.Add(1090020, "Money");
Filtr.Add(1091000, "Money");
Filtr.Add(1091010, "Money");
Filtr.Add(1091020, "Money");
}
else if (C.LootAll)
Filtr = null;

if (Filtr != null)
foreach (Items.GroundItem Item in oggettiInteri.Values)
{
if (!(Program.DontLoot.ContainsKey(Item.ID)))
if (Filtr.ContainsKey(Item.ID))
Rientro.Add(Item.ID, Item);

}
else Rientro = oggettiInteri;

return Rientro;

}
01/07/2011 21:25 [GM]#521
what ports should i put in the ini file? , iam on an old server btw
01/07/2011 22:43 gorgone#522
Quote:
Originally Posted by [GM] View Post
what ports should i put in the ini file? , iam on an old server btw
5002 and game port 5000
01/07/2011 22:56 [GM]#523
Quote:
Originally Posted by gorgone View Post
5002 and game port 5000
thx gorgone for your help but its still stuck at logging into account server
ok here are my settings take alot at them:
Code:
        public static string AuthIp = "5.164.251.234";
        public static string ProxyTitle = "[ProjectAlchemy]";
        public static string Version = "v1.1";
        public static string Username = "root";
        public static string Password = "";
        public static string Host = "alchemy";
        public static DMapServer DmapHandler = new DMapServer();
        public static Dictionary<ushort, Ending> PortBindings = new Dictionary<ushort, Ending>();
        public static ushort AuthPort = 9959;
        public static string ProxyIp = "5.164.251.234";
        public static string GameKey = "DR654dt34trg4UI6";
        public static string GameIp = "";
        public static ushort GamePort = 5816;
and in LoaderSet.ini

5.164.251.234 is my hamachi ip
now whats wrong?!
thx in advance
01/07/2011 23:15 gorgone#524
did u have mysql correctly installed ? and Navicat too ?


public static string AuthIp = "208.96.34.46";
public static string ProxyTitle = "[ProjectAlchemy]";
public static string Version = "v1.1";
public static string Username = "root";
public static string Password = "IF UR SQL SERVER HAVE PASSWORD PUT HERE";
public static string Host = "alchemy";
public static DMapServer DmapHandler = new DMapServer();
public static Dictionary<ushort, Ending> PortBindings = new Dictionary<ushort, Ending>();
public static ushort AuthPort = 9959;
public static string ProxyIp = "HERE YR IP HAMACY OR ROUTER ";
public static string GameKey = "DR654dt34trg4UI6";
public static string GameIp = "";
public static ushort GamePort = 5816;

in the LoaderConquer.ini (of loaderConquer) u need to copy exactly YR IP HAMACY OR ROUTER and same port ...

then... in AlchemyProxy\AlchemyProxy\bin there is a txt recopy all skill info there

and i think u ll be logs normaly i started with very huge Speed handicap 1000 ms
01/07/2011 23:27 pro4never#525
Ooh yah keep in mind almost all settings inside the proxy are overwritten by whatever is in the settings.txt file in the bin.