Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 06:59

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

Advertisement



How to read nearby Characters & mobs location

Discussion on How to read nearby Characters & mobs location within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
ahmed4ever2u's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 1,514
Received Thanks: 891
How to read nearby Characters & mobs location

Code:
[S -> C][B021]
C5 7B 02 00                                    Character ID [Int32()]
01                                                  Flag [Int8()]
A6 60                                             Region ID [Int16()]
F9 06                                             ................
00 00                                             ................
56 06                                             ................
01                                                  Flag [Int8()]
A6 60                                             Region ID [Int16()]
BB 45                                             ................
98 5E 18 40                                    ................
69 3B                                             ................
can any buddy help me to understand which is the x&y&z
as i can see there are 2 (x&y&z) data in the same packet,
thank you in advance


my C# code
Code:
Int32 ID = packet.ReadInt32();
            if (ID == UniqueID)
            {

                if (packet.ReadInt8() == 1)
                {
                    int RegionIDsecPacket = packet.ReadInt16();
                    int sec_x = packet.ReadUInt16();
                    int sec_y = packet.ReadUInt16();
                    int sec_z = packet.ReadUInt16();
                    packet.ReadInt8();
                    int RegionIDPacket = packet.ReadInt16();
                    int x = packet.ReadInt16();
                    int z = packet.ReadInt16();
                    int y = packet.ReadInt16();
                    Single angle = packet.ReadInt16();
                }
            }
ahmed4ever2u is offline  
Old 04/16/2020, 14:45   #2
 
homelesshobo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 103
Received Thanks: 17
Code:
[S -> C][B021]
C5 7B 02 00                                    Character ID [Int32()]
01                                             Flag [Int8()]
A6 60                                          Region ID [Int16()]
F9 06                                          // x offset
00 00                                          // z offset
56 06                                          // y offset
01                                             //has origin
A6 60                                          Region ID [Int16()]
BB 45                                          // x offset
98 5E 18 40                                    // z offset // y offset
69 3B                                          // angle
Source:
homelesshobo is offline  
Old 04/16/2020, 15:29   #3
 
ahmed4ever2u's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 1,514
Received Thanks: 891
okay what if i want to convert db postion to ingame postion ? any idea?
ahmed4ever2u is offline  
Old 04/16/2020, 16:24   #4
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 939
Quote:
Originally Posted by ahmed4ever2u View Post
okay what if i want to convert db postion to ingame postion ? any idea?
C# right? One of three constructors I use for this task.

Code:
/// <summary>
/// Creates a Silkroad coordinate with all information by using an internal coordinate.
/// </summary>
public SRCoord(ushort Region, int X, int Z, int Y)
{
	this.Region = Region;
	if (inDungeon())
	{
		this.PosX = 128 * 192 + X / 10;
		this.PosY = 128 * 192 + Y / 10;
		this.xSector = (byte)(((128.0 * 192.0 + this.PosX) / 192.0) - 128);
		this.ySector = (byte)(((128.0 * 192.0 + this.PosY) / 192.0) - 128);
	}
	else
	{
		this.xSector = (byte)(Region & 0xFF);
		this.ySector = (byte)(Region >> 8);
		this.PosX = (xSector - 135) * 192 + X / 10;
		this.PosY = (ySector - 92) * 192 + Y / 10;
	}

	this.X = X;
	this.Y = Y;
	this.Z = Z;
}
JellyBitz is offline  
Reply


Similar Threads Similar Threads
[iOS HACK] Pokemon GO v1.7.1 - Fake location, Joystick, Show the nearby Pokemon and M
12/31/2016 - Pokemon Hacks, Bots, Cheats & Exploits - 12 Replies
This hack is pretty easy to do. All you need is: -Cydia Impactor -Pokemon GO .ipa file -Follow the tutorial Cydia Impactor: Cydia Impactor Pokemon GO .ipa file: https://we.tl/h5B8eGZYLg Tutorial: https://youtu.be/ievy31lw2bg I am not the creator of this! All the thanks goes to:
[Selling] Dragonite Nest Location [Auto-Buy] + Free Dratini Hotspot Location for Candyfarming
08/07/2016 - Pokemon Trading - 0 Replies
AutoBuy: https://sellfy.com/p/AuNn/ http://i.imgur.com/QmNYGb1.jpg
Selecting nearby enemies
07/09/2011 - 12Sky2 - 8 Replies
Is there a way, a shortcut key, a script? to select nearby enemies because the bot works fine but you have to click the mobs around by yourself so is there a way to do it automatically?
Enumerating all nearby monsters
12/26/2009 - General Gaming Discussion - 0 Replies
I'm working on reversing where the game stores the nearby mobs but I haven't worked everything out yet. I'm really looking for some input from programmers and reverse engineers, I know you guys are hiding out there! :) I've worked out a function where the game checks the current hp of all nearby monsters non stop if you have the hp bars above head enabled (default ingame hot-key F8). I could just place a hook there to update my own list of nearby mobs but I'd much rather find the actual...



All times are GMT +1. The time now is 07:01.


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.