Can someone help me, Aimbot code

06/11/2009 02:58 Vortex.#1
I tried everything, if you could fix it post it back here

Code:
if (Splitter[0] == "/aimbot")
                                        {
                                            bool going = false;
                                            byte Chance = 0;
                                            Chance = byte.Parse(Splitter[1]);
                                            if (Splitter[1] != "off")
                                            {
                                                going = true;
                                            }
                                            else
                                            {
                                                going = false;
                                            }
                                            byte win = (byte)General.Rand.Next(0, 100);
                                            ushort wait = (ushort)General.Rand.Next(750, 1600);
                                            while (going)
                                            {
                                                Character Char = Other.CharNearest(MyChar.LocX, MyChar.LocY, MyChar.LocMap, false);

                                                if (Char.Team != MyChar.Team && Char.GuildID != MyChar.GuildID)
                                                {
                                                    if (Char.Alive && MyMath.PointDistance(MyChar.LocX, MyChar.LocY, Char.LocX, Char.LocY) <= 10 && Char.LocMap == MyChar.LocMap)
                                                    {
                                                        if (win <= Chance)
                                                        {
                                                            MyChar.UseSkill(1045, Char.LocX, Char.LocY, Char.UID);
                                                        }
                                                        else
                                                        {
                                                            MyChar.UseSkill(1045, (ushort)(Char.LocX + 2), Char.LocY, Char.UID);
                                                        }
                                                        System.Threading.Thread.Sleep((ushort)wait);
                                                    }
                                                }
                                            }
                                        }
06/11/2009 04:07 tao4229#2
Run the command on a new thread
06/11/2009 04:31 Vortex.#3
I did this

Code:
if (Splitter[0] == "/aimbot")
                                            {
                                                bool going = false;
                                                byte Chance = 0;
                                                Chance = byte.Parse(Splitter[1]);
                                                if (Splitter[1] != "off")
                                                {
                                                    going = true;
                                                }
                                                else
                                                {
                                                    going = false;
                                                }
                                                byte win = (byte)General.Rand.Next(0, 100);
                                                ushort wait = (ushort)General.Rand.Next(750, 1600);
                                                while (going)
                                                {
                                                    Character Char = Other.CharNearest(MyChar.LocX, MyChar.LocY, MyChar.LocMap, false);

                                                    if (Char.Team != MyChar.Team && Char.GuildID != MyChar.GuildID)
                                                    {
                                                        if (Char.Alive && MyMath.PointDistance(MyChar.LocX, MyChar.LocY, Char.LocX, Char.LocY) <= 10 && Char.LocMap == MyChar.LocMap)
                                                        {
                                                            if (win <= Chance)
                                                            {
                                                                MyChar.UseSkill(1045, Char.LocX, Char.LocY, Char.UID);
                                                            }
                                                            else
                                                            {
                                                                MyChar.UseSkill(1045, (ushort)(Char.LocX + 2), Char.LocY, Char.UID);
                                                            }
                                                            Thread.Sleep((ushort)wait);
                                                        }
                                                    }
                                                }
                                            }
Still doesn't work
06/11/2009 04:57 tao4229#4
Because it's blocking the clients recieve thread, you need to move it to a timer or a different thread...
06/11/2009 05:17 Vortex.#5
WTF HOW. YOU MADE BOTS EDIT IT FOR ME.
06/11/2009 07:55 _Emme_#6
Quote:
if (Char.Aimbot && Char.Stamina >= 20)
{
foreach (Character Target in LiveManager.SurroundingChars(Char,false,8))
{
SkillUse skill = new SkillUse();
skill.SetInfo(1045, 4);
skill.AimX = Target.Loc.X;
skill.AimY = Target.Loc.Y;
skill.C = Char;
skill.Target = Target.EntityID;
skill.Use();
}
}
That's how mine works, it's not completely done and took me about 5 minutes to do. It is placed in a timethread which updates like every 0.02 second.

Hope that helped you some of how you could make it.

Regards,
Emme
06/11/2009 19:14 Vortex.#7
So thats fully working?
06/11/2009 22:42 _Emme_#8
In my source, yes. Don't think you can copy paste that =P
06/11/2009 23:42 InfamousNoone#9
Quote:
Originally Posted by EmmeTheCoder View Post
In my source, yes. Don't think you can copy paste that =P
[Only registered and activated users can see links. Click Here To Register...]
06/12/2009 00:18 _Emme_#10
Quote:
Originally Posted by InfamousNoone View Post
[Only registered and activated users can see links. Click Here To Register...]
Hm, shouldn't be long before your dogs hop in and comment aswell, haha.
I wonder why I'm all over your signature and most of your post's is about me, (I smell jelousy)

[Only registered and activated users can see links. Click Here To Register...]
06/12/2009 00:36 InfamousNoone#11
Funny, I smell stupidity =/ You make a ton of ad-hominem argument, funny thing is; I can back mine up.

[Only registered and activated users can see links. Click Here To Register...]

is better than

[Only registered and activated users can see links. Click Here To Register...]

Any day.

Edit: Dogs isn't a synonym for rational competent people, but I suppose I can't bash you on not knowing something of a language you don't speak as your first tongue, yes?
06/12/2009 00:55 Vortex.#12
In case you was like wtf

Quote:
An ad hominem argument, also known as argumentum ad hominem (Latin: "argument to the man", "argument against the man") consists of replying to an argument or factual claim by attacking or appealing to a characteristic or belief of the person making the argument or claim, rather than by addressing the substance of the argument or producing evidence against the claim.

The process of proving or disproving the claim is thereby subverted, and the argumentum ad hominem works to change the subject.