Stripped ProjectAlchemy Source Code

01/14/2011 17:27 macavladu#646
Quote:
Originally Posted by vecko12 View Post
Another Egyptian fool...
He's romanian :P
01/14/2011 18:51 OELABOELA#647
P4N, how can i know if the player actually shifted to my location i gave it? Because i let it update the c.lastserverx,y and now it isnt really accurate.

Can you please help me with this? Somehow when i filter 1022, and i check if the UID is the same, it doesnt work.
01/14/2011 18:56 denominator#648
Any reason as to why my waterelf is not autoactivating o.0? It did at one stage but now it doesn`t?


Code:
public static bool Water(Client Client)
        {
            return (Client.Job > 130 && Client.Job < 135);
        }
Code:
if (Water(Client))
                            {
                                Client.XpSkill = 1280;
                                Client.XpAttackSpeed = 150;
                                Client.ActionSpeed = 100;
                                Client.XpLootSpeed = 300;
                            }
Tested with superman and that still activates >.<

WaterElf works using my ninja though o.0? I`m sure I got job numbers or name wrong because it`s the correct skill number and I looked in the ini but I am exhausted so I might be putting something wrong :(
01/14/2011 20:41 gorgone#649
Quote:
Originally Posted by [GM] View Post
i got a problem using gorgone's filter
Code:
Dictionary<uint, string> Filter = new Dictionary<uint, string>();
                    Dictionary<uint, Items.GroundItem> Return = new Dictionary<uint, Items.GroundItem>();
                    if (C.Looting)
                    {
                        Filter = Program.RareItem;
                    }
                    else if (C.LootMoney)
                    {
                        Filter.Add(1090020, "Money");
                        Filter.Add(1091000, "Money");
                        Filter.Add(1091010, "Money");
                        Filter.Add(1091020, "Money");
                    }
                    else if (C.LootAll)
                    {
                        Filter = null;
                    }
                    if (Filter != null)
                    {
                        foreach (Items.GroundItem Item in WholeObject.Values)
                        {
                            if (!(Program.Dontloot.ContainsKey(Item.ID)))
                            {
                                if (Filter.ContainsKey(Item.ID))
                                {
                                    Return.Add(Item.ID, Item);
                                }
                            }
                        }
                    }
                    else Return = WholeObject;
                    {

                        return [COLOR="Red"]Return[/COLOR];

                    }
the word in red says "Cannot implicitly convert type 'System.Collections.Generic.Dictionary<uint,Alchem yProxy.Items.GroundItem>' to 'bool' "

my filter work on Client.GroundItem

this is my GetclosestItem methods
public static Items.GroundItem GetClosestItem(Client C)
{
Items.GroundItem I = null;
int Dist = 22,Gh;
foreach (Items.GroundItem Item in ItemsFilter(C, C.GroundItems).Values)
{
if ((Gh = Calculations.Distance(C.X, C.Y, Item.X, Item.Y)) < Dist)
{
I = Item;
Dist = Gh;
}
}
return I;
}

i don t undestood why my filter must give a bool ?! the filter work on Grounditems of Client and filter it to only items that i want to take at ground ... so give back a group of items filtered ^^
01/14/2011 21:07 gabrola#650
Quote:
Originally Posted by vecko12 View Post
Another Egyptian fool...
Quote:
Originally Posted by macavladu View Post
He's romanian :P
Now YOU made a fool of yourself.
01/14/2011 22:10 Bean_Junior7#651
4.5 Years as a member, and my first post.

So far I have working:
Specify which type of potion to use by name
Use potion when needed
Loot items
Specify which preset lists of items to loot (rare,book,gold,the pot your using)
Add custom items to list
Hunting with both warrior and ninja
Following the recorded path when no items to loot, or monsters around
After disconnecting a lot with ninjas when trying to do the looting and pathing I noticed that the server doesn't put your character on top of the monster when attacking in fatal strike, but actually 1-2 squares back in the direction you just came from. So if you then try and shift 7 units in the same direction to pick something up, or follow a path the proxy will think its only 7 when the server says it's 8-9.

Goodies so far:
0 characters botjailed
0 DB's
tons of mets
tons of gems
(mainly just killing hawks)
I was wondering how to generate my own smap files for the adventure zone (Basilisks), and a few other places.
I noticed a post about the maps a while back, but search couldn't find it
Without them, checking for valid coordinates when trying to shift target or move back to the path becomes a problem.

Also, can anyone else get the bot to attack the monster in th Frozen Grotto?

And I noticed that after I leave my bot running for a long time, if I try and talk to an npc, or use a potion/scroll manually, it takes a long time for the server to respond and can sometimes disconnect me. Almost like theres back up of packets of a certain type going through the proxy.
01/14/2011 22:33 pro4never#652
The issue with smaps is because tq duplicates many of their maps... you need the dynamic map id in order to perform actions (read from jump packets or w/e) and the static map (read from teleport/login stuff) to check dmaps.

I had it working in groto at one point using two variables. One for static map and one for dynamic map. It wasn't perfect but it worked.

Alternatively you could make a list of known maps and what their static id is and use that for your dmap checks.


@ The fatal strike thing: Yah I'm aware the server doesn't place you directly ontop of mobs. I THINK you can read some of that from the 157 gendat or the attack packet which the server returns... problem is syncing that up with your movement so it doesn't sorta... 'reset' your position.
01/14/2011 23:19 macavladu#653
Quote:
Originally Posted by gabrola View Post
Now YOU made a fool of yourself.
To be honest , many romanian guys are smart asses , some of them are just stupid.But mostly they are smart:P
01/15/2011 00:02 OELABOELA#654
Quote:
Originally Posted by macavladu View Post
To be honest , many romanian guys are smart asses , some of them are just stupid.But mostly they are smart:P
Dont forgot the dutch people.
01/15/2011 00:03 vecko12#655
Quote:
Originally Posted by macavladu View Post
He's romanian :P
Sorry.. My mistake... Plz no bk me :)
01/15/2011 07:48 demon17#656
Quote:
Originally Posted by macavladu View Post
To be honest , many romanian guys are smart asses , some of them are just stupid.But mostly they are smart:P
Yeah i was know a girls .. Andreea .. she was cracked the limits in the cof ;))
But also the Egy , BR , German, Rus , and so more peoples are smarts ...
01/15/2011 08:58 macavladu#657
Yes , dont have to blame the whole peoples for few guys :D
01/15/2011 09:04 Laur#658
sorry i just put a question :)
01/15/2011 10:08 macavladu#659
Quote:
Originally Posted by OELABOELA View Post
Dont forgot the dutch people.
Forgot about them :P
01/15/2011 14:03 gorgone#660
ehee much on this forum are smart beleve me not importa if are dutch romans or egypts :) ehehe
we all rocks ^^ ''