|
You last visited: Today at 18:41
Advertisement
Jump/Walk/Run
Discussion on Jump/Walk/Run within the CO2 Private Server forum part of the Conquer Online 2 category.
10/09/2023, 11:29
|
#1
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
Jump/Walk/Run
So im currently working on a AutoHunting Function for 5165.
Im currently trying to work on the part that deals with auto movement
Code:
private void MoveTowards(Mob mob)
{
// Check if the character is already in range of the target mob
if (IsInRange(mob))
{
// The character is in range, so you can choose to attack the mob here
AttackMob(mob);
return; // Exit the method
}
}
I was going to see if i can use
GC.MyChar.Loc.Jump(NX, NY);
GC.AddSend(Data);
And have the cords set to the mobs location but i dont fully understand the data structure
Code:
- Data {byte[40]} byte[]
[0] 32 byte
[1] 0 byte
[2] 26 byte
[3] 39 byte
[4] 235 byte
[5] 70 byte
[6] 15 byte
[7] 0 byte
[8] 211 byte
[9] 1 byte
[10] 216 byte
[11] 1 byte
[12] 64 byte
[13] 134 byte
[14] 105 byte
[15] 91 byte
[16] 137 byte
[17] 0 byte
[18] 0 byte
[19] 0 byte
[20] 219 byte
[21] 1 byte
[22] 219 byte
[23] 1 byte
[24] 0 byte
[25] 0 byte
[26] 0 byte
[27] 0 byte
[28] 255 byte
[29] 255 byte
[30] 255 byte
[31] 255 byte
[32] 84 byte
[33] 81 byte
[34] 67 byte
[35] 108 byte
[36] 105 byte
[37] 101 byte
[38] 110 byte
[39] 116 byte
So i have manage to learn that
It's an array of bytes with a length of 40 bytes.
Each line represents one byte of data.
The numbers in square brackets represent the index or position of each byte in the array (0 to 39).
The hexadecimal values (e.g., 32, 0, 26) are the actual data stored in each byte.
The decimal values (e.g., 50, 0, 38) are the equivalent decimal representations of the hexadecimal values. but i have no idea how to make it think its sending the data to jump lol any help would be massively appreciated thank you
|
|
|
10/09/2023, 17:54
|
#2
|
elite*gold: 0
Join Date: Oct 2022
Posts: 34
Received Thanks: 2
|
as far as i know the only way to change the position of your character from the server is to use teleportation of some kind - MsgAction Kickback, Set Location or by using that ninja skill (shadow step or smth?) You can probably abuse the two player emotes or whatever they are called, like holding hands, to actually do a jump initiated by the server too.
|
|
|
10/09/2023, 18:21
|
#3
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
that shadow step method i eventually stumbled on
Currently im trying to make a function to move towards the mobs
Code:
private void MoveTowards(Mob mob)
{
// Check if the character is already in range of the target mob
if (IsInRange(mob, 10.0f))
{
// The character is in range, so you can choose to attack the mob here
AttackMob(mob);
return; // Exit the method
}
// Calculate the direction towards the target mob
float angleTowardsMob = (float)MyMath.GetAngle(Loc.X, Loc.Y, mob.Loc.X, mob.Loc.Y);
// Define movement offsets based on the calculated direction
int offsetX = (int)(Math.Cos(angleTowardsMob) * 5); // Adjust the magnitude as needed
int offsetY = (int)(Math.Sin(angleTowardsMob) * 5); // Adjust the magnitude as needed
// Move the character using the calculated offsets based on its current location
MoveCharacter(Loc.X + offsetX, Loc.Y + offsetY);
}
|
|
|
10/10/2023, 07:56
|
#4
|
elite*gold: 0
Join Date: Oct 2022
Posts: 34
Received Thanks: 2
|
I recommend to debug your offsets and target positions, you spawn effects on the map to get visual feedback.
For walking in the right direction, towards a target, I use the following code
PHP Code:
ref readonly var pos = ref ntt.Get<PositionComponent>(); ref readonly var brn = ref ntt.Get<BrainComponent>();
var targetPos = NttWorld.GetEntity(brn.Target).Get<PositionComponent>().Position; var dir = CoMath.GetRawDirection(targetPos, pos.Position); var wlk = new WalkComponent(dir, false); ntt.Set(ref wlk);
GetRawDirection: (idk where I stole this from, i got frustrated after a while and just copy pasted this into my Math class..)
PHP Code:
public static byte GetRawDirection(Vector2 end, Vector2 start) { var dir = 0;
var tan = new[] { -241, -41, 41, 241 }; var deltaX = end.X - start.X; var deltaY = end.Y - start.Y;
if (deltaX == 0) dir = deltaY > 0 ? 0 : 4; else if (deltaY == 0) dir = deltaX > 0 ? 6 : 2; else { var flag = Math.Abs(deltaX) / deltaX;
deltaY *= 100 * flag; int i; for (i = 0; i < 4; i++) tan[i] *= (int)Math.Abs(deltaX);
for (i = 0; i < 3; i++) if (deltaY >= tan[i] && deltaY < tan[i + 1]) break;
deltaX = end.X - start.X; deltaY = end.Y - start.Y;
if (deltaX > 0) { switch (i) { case 0: dir = 5; break; case 1: dir = 6; break; case 2: dir = 7; break; case 3: dir = deltaY > 0 ? 0 : 4; break; default: break; } } else { switch (i) { case 0: dir = 1; break; case 1: dir = 2; break; case 2: dir = 3; break; case 3: dir = deltaY > 0 ? 0 : 4; break; default: break; } } }
dir += 8; return (byte)dir; }
This method returns the direction byte you put into MsgWalk
EDIT:
You probably dont use vectors, so here's a conversion function
PHP Code:
internal static Vector2 DirectionToVector(Direction direction) { return direction switch { Direction.North => new Vector2(0, 1), Direction.NorthEast => new Vector2(1, 1), Direction.East => new Vector2(1, 0), Direction.SouthEast => new Vector2(1, -1), Direction.South => new Vector2(0, -1), Direction.SouthWest => new Vector2(-1, -1), Direction.West => new Vector2(-1, 0), Direction.NorthWest => new Vector2(-1, 1), _ => throw new ArgumentException($"Invalid direction: {direction}"), }; }
sorry, i gotta go to work now, but if you want to find points to *jump* to, instead of multiplying the magnitude, you might want to look into the scent-sword/fast-blade DDA Line algo to get the points on the line and chose one to jump to instead.
|
|
|
10/10/2023, 20:53
|
#5
|
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
|
Oh come on dude, stop using the 5165 source, I'm telling you, that has a lot's of bugs and the main bug on that source is duplicate which is a non-stop bug. If I were you continue to use the 5517 you get. If you want I can give you a 5517 source that has autohunt.
|
|
|
10/10/2023, 22:57
|
#6
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
What's the method for duping?
|
|
|
10/11/2023, 16:51
|
#7
|
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
|
Quote:
Originally Posted by TheFadedOne
What's the method for duping?
|
I'm not sure, however there are numerous techniques to get this duplicate item to work. As far as I know, most Filipino players are attempting to re-create the dupe in a different manner. You know American/Europeans are easily to scam in p-server because they are lazy.
But here are some list that dupe work:
1. Warehouse Withdraw/Deposit
2. ItemDropping
3. Pick Item at the same time with other character.
4. Vending (Don't know how it works but this is the latest I gather).
5. GoldDrop (Not sure how it's done but saw some players dropping golds).
6. Trade (not sure about this) but it something like a connection about gold and gambling npc.
|
|
|
10/11/2023, 17:05
|
#8
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
So i have patched all of the methods that I'm aware of, and always seek people to test exploits on my private development server. so your welcome to test. but everything you listed there can easily be fixed, im not lazy i know enough myself. but if i need more complex methods i have people to help me learn. im not going to abandon 5165 as i know with alot of patience it will be a real nice server.
|
|
|
10/11/2023, 17:42
|
#9
|
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
|
We'll that would be great everything can be fixed anyway. I just noticed that most of 5165 server using impulse based source is running only a few months due to this exploit. Oh, if you want some client modification to your 5165 server, I have a friend that goods at client modification, and he is in China.
|
|
|
10/12/2023, 02:22
|
#10
|
elite*gold: 0
Join Date: Apr 2019
Posts: 23
Received Thanks: 1
|
I have a ncos with autohunt but its 5095 version. We dont use it. We used different source now. He is right though ncos has alot of dup we have figured it out. You can have it if you want. But its still ncos though.
|
|
|
10/12/2023, 16:35
|
#11
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
Surely if you dupe an item it would have the same UID? just make a check for them uids and destroy the items if found with same IDS?
|
|
|
10/12/2023, 18:17
|
#12
|
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
|
Quote:
Originally Posted by TheFadedOne
Surely if you dupe an item it would have the same UID? just make a check for them uids and destroy the items if found with same IDS?
|
We aren't sure but I bet they already did that and yet it's still exist. The last time I heard with the fixed on the vending dupe was it involve the Mac Address on each PC.
|
|
|
10/13/2023, 13:27
|
#13
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
Interesting, Well if you know someone who knows how to do the exploit, I'm willing to work with you to create the patch and we can share it.
|
|
|
10/13/2023, 14:18
|
#14
|
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
|
Quote:
Originally Posted by TheFadedOne
Interesting, Well if you know someone who knows how to do the exploit, I'm willing to work with you to create the patch and we can share it.
|
I would love too but it's a never ending exploit. Also it's rare nowadays to get a loyalty player who will tell you when they found exploit/bug most of it they abused to ruin the server.
|
|
|
10/13/2023, 17:05
|
#15
|
elite*gold: 0
Join Date: Nov 2020
Posts: 48
Received Thanks: 4
|
I just cant agree with a never ending exploit, Anything can be patched
|
|
|
Similar Threads
|
S4 Fly,Run,Walk,Jump Speed Cheat Engine Table
12/11/2010 - S4 League Hacks, Bots, Cheats & Exploits - 21 Replies
Hi guys ok i already released this but i'm gonna release it and a download attachment too
Screen → http://img844.imageshack.us/img844/628/multispeed. jpg
VirusTotal → Virustotal. MD5: d1c40b7f483960604a9b0d2be698e6c5
MediaFire → http://www.mediafire.com/download.php?dz0ovc4mvvda cd5
It's a .ct file but for who doesn't believe me i'll scan the file with VirusTotal...
|
All times are GMT +2. The time now is 18:41.
|
|