Register for your free account! | Forgot your password?

You last visited: Today at 16:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Big jump

Discussion on Big jump within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2011
Posts: 98
Received Thanks: 12
Big jump

hello , im use IAmHawtness
Hook library it work 100% but i dont know how to jump in Distant point
Code:
            ActionPacket jumpPacket = new ActionPacket(_player.Id, destination, 0, (uint)Environment.TickCount, ActionType.Jump, 0, _player.Position, _currentMap.Id, 0xFFFFFFFF, 0);
            if (_player.Position.Distance(destination) < 15)
            {
                SendPacket(jumpPacket);
                _player.Position = destination;
                _screen.Update();
            }
            else
            {
                Program.Print("Big jump :" + _player.Position.Distance(destination));
                Program.Print("Dont know how to jump");
                //if me jump now it will disconnect please help me to fix it
            }
tariqx111 is offline  
Old 05/18/2012, 22:24   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
So the issue is in mapping a path to a distant location? This code should work just fine for single jumps. You need a pathing system, not a single 'big jump'.


Just take a destination point, your current point and the maximum distance which can be traveled in a jump...

Now use basic geometry to calculate the best point to jump to.. If it is not valid, check slightly closer. Continue doing this until you end up with a valid position which is closer to the desired location.

Once you are within 1 jump of the desired location, jump directly to it and stop your pathing code.

Note: Make sure you add in proper jump delays so you don't get dc'd for speedhacking.


Yay math?
pro4never is offline  
Old 05/18/2012, 23:29   #3
 
elite*gold: 0
Join Date: Jul 2011
Posts: 98
Received Thanks: 12
example please
@pro4never
tariqx111 is offline  
Old 05/19/2012, 01:09   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
.... what kind of example? I just told you exactly how to do it.

Take a piece of grid paper...

Shade in a cell near the center. This is your current location

Draw a 4x4 square around this cell. Everything inside that is a location that can be reached in a single movement.

Select a cell outside of this square (anywhere on the paper). This is the location you want to finally end up.

Draw a line connecting your current cell and the destination cell. This represents the 'ideal' route you'd like to take (Least movements. Does not account for terrain that could block you)

The cell intersected by this line that is closest to the border of your square is the 'ideal' candidate for your first movement.


Now write an equation that represents this geometric line given a starting point, ending point and max movement range.

Now modify this calculation to take into account the fact that the ideal point may not be valid... add in a small loop that checks for less ideal points (points near the ideal point that are valid in both distance and being free of obstacles). If this recursion fails, stop the path finding.


Congratz! You've now written the simplest form of path finding. It will work just fine in regards to 'simple' pathing but will fall apart as soon as you add large obstacles. If you want something more... robust, look into the A* and similar pathfinding algorithms. There's plenty of information around the net.


Ooh... by example you meant "copy and paste, fully working and robust/efficient working code"? Sorry, not my job to write your code for you <3
pro4never is offline  
Thanks
1 User
Old 05/19/2012, 03:01   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 98
Received Thanks: 12
i can't understand you
tariqx111 is offline  
Old 05/19/2012, 03:33   #6
 
elite*gold: 0
Join Date: Jul 2011
Posts: 98
Received Thanks: 12
i said i need example to understand, your words does not give difference
tariqx111 is offline  
Old 05/19/2012, 08:57   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Does the problem lie in your ability to comprehend english? If so, work on learning english
Does the problem lie in understanding the concepts behind what I'm saying? If so, work on learning basic geometry/trig as well as some on logic.
Does the problem lie in translating my (very detailed) layout of how to write such a function into workable code? If so, work on learning to program.

All boils down to you learning what you need to be doing.
pro4never is offline  
Old 05/19/2012, 10:51   #8
 
elite*gold: 0
Join Date: Jan 2007
Posts: 118
Received Thanks: 20
Quote:
Originally Posted by pro4never View Post
Does the problem lie in your ability to comprehend english? If so, work on learning english
Does the problem lie in understanding the concepts behind what I'm saying? If so, work on learning basic geometry/trig as well as some on logic.
Does the problem lie in translating my (very detailed) layout of how to write such a function into workable code? If so, work on learning to program.

All boils down to you learning what you need to be doing.
He want you to code for him. He don't understand what you are trying to say. He is a plain lechers.
xmen01235 is offline  
Old 05/19/2012, 14:07   #9
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
i can't believe the degree of patience you have shown to him, lol.
shitboi is offline  
Old 05/19/2012, 22:04   #10
 
elite*gold: 0
Join Date: Jul 2011
Posts: 98
Received Thanks: 12
lol , lol, lol, lol, why reply if you dont want to help me ?
tariqx111 is offline  
Old 05/19/2012, 23:01   #11
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by tariqx111 View Post
lol , lol, lol, lol, why reply if you dont want to help me ?
I did help you.

It's not my fault if you didn't learn anything from the instructions I gave.

It's like going to a class, listening to a teacher give you all the information you need and then saying "Why talk if you aren't going to help me?!" because they didn't write your exam for you.

I gave you all the information you need... you just need to apply it.
pro4never is offline  
Reply


Similar Threads Similar Threads
[Release]Imba Jump Hack or High Jump
09/26/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 127 Replies
Hello there anyways I am here again just for me to release this nice .cfg file to make your jumping more higher and better even though you are just using the space bar and I will say this unto you all things has a Pros and Cons even though it is very nice. ============================= : This file makes things easier for you to jump, it will make you look like a Pro like that video that I have posted below. ============================= : You will not enhance your skills because you are...
[Exploit] Jump through the ground and move whereever you want then jump back
06/28/2008 - General Gaming Releases - 7 Replies
Hai, in my effort to try and contribute to this amazing place =) This can work like a teleport in getting you almost any place you want to go. It requires no addons/bots/programs, its built in nicly in age of conan Here is how you do it : Simply type : /minion_falling_down Voila you fall through and can move wherever you want to go
Any jump gate, jump wall tool for 5028
06/23/2008 - Conquer Online 2 - 0 Replies
I've searched the whole site looking for a tool for the above mentioned. Anyone know any tools still work for 5028 patch with the above mentioned feature?



All times are GMT +1. The time now is 16:24.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.