|
You last visited: Today at 19:34
Advertisement
2nd parameter of hidn packet
Discussion on 2nd parameter of hidn packet within the Nostale forum part of the MMORPGs category.
09/04/2020, 16:36
|
#1
|
elite*gold: 0
Join Date: Jun 2019
Posts: 102
Received Thanks: 228
|
2nd parameter of hidn packet
Hi, i'm wondering if somebody know how can we get a hidden area position using hidn packet
hidn 0 1.49 23 105
Since 3rd & 4th parameters is character position, i need a way to find hidden area "position" using 2nd parameter.
If somebody know how it's calculated or something, i would like to know thanks
|
|
|
09/04/2020, 17:00
|
#2
|
elite*gold: 0
Join Date: Oct 2013
Posts: 99
Received Thanks: 154
|
Hey, I had the same problem, when I worked on pts bot. It's the angle of the arrow in radians from +x axis (clockwise). Took me few hours to figure it out
and then you can calculate coordinates using matrix or something like that
(again python example )
Code:
def calculate_pts_position(a: Vertex2D, a_angle: float, b: Vertex2D, b_angle: float):
# a: first point, b: second point
# calculating matrix
params = np.linalg.inv(
np.array([[np.cos(a_angle), np.cos(b_angle)],
[np.sin(a_angle), np.sin(b_angle)]])) \
.dot(np.array([b.x-a.x, b.y-a.y]))
# calculating final position
x = int(a.x + params[0] * np.cos(a_angle))
y = int(a.y + params[0] * np.sin(a_angle))
return Vertex2D(x, y)
|
|
|
09/04/2020, 21:59
|
#3
|
elite*gold: 0
Join Date: Jun 2019
Posts: 102
Received Thanks: 228
|
Quote:
Originally Posted by romdrak
Hey, I had the same problem, when I worked on pts bot. It's the angle of the arrow in radians from +x axis (clockwise). Took me few hours to figure it out
and then you can calculate coordinates using matrix or something like that
(again python example )
Code:
def calculate_pts_position(a: Vertex2D, a_angle: float, b: Vertex2D, b_angle: float):
# a: first point, b: second point
# calculating matrix
params = np.linalg.inv(
np.array([[np.cos(a_angle), np.cos(b_angle)],
[np.sin(a_angle), np.sin(b_angle)]])) \
.dot(np.array([b.x-a.x, b.y-a.y]))
# calculating final position
x = int(a.x + params[0] * np.cos(a_angle))
y = int(a.y + params[0] * np.sin(a_angle))
return Vertex2D(x, y)
|
Thanks for your help
|
|
|
09/15/2020, 14:46
|
#4
|
elite*gold: 0
Join Date: Sep 2013
Posts: 35
Received Thanks: 4
|
Quote:
Originally Posted by romdrak
Hey, I had the same problem, when I worked on pts bot. It's the angle of the arrow in radians from +x axis (clockwise). Took me few hours to figure it out
and then you can calculate coordinates using matrix or something like that
(again python example )
Code:
def calculate_pts_position(a: Vertex2D, a_angle: float, b: Vertex2D, b_angle: float):
# a: first point, b: second point
# calculating matrix
params = np.linalg.inv(
np.array([[np.cos(a_angle), np.cos(b_angle)],
[np.sin(a_angle), np.sin(b_angle)]])) \
.dot(np.array([b.x-a.x, b.y-a.y]))
# calculating final position
x = int(a.x + params[0] * np.cos(a_angle))
y = int(a.y + params[0] * np.sin(a_angle))
return Vertex2D(x, y)
|
what is a_angle and b_angle
|
|
|
09/15/2020, 16:31
|
#5
|
elite*gold: 0
Join Date: Oct 2013
Posts: 99
Received Thanks: 154
|
You need to have at least 2 these packets from different positions to get the final position of pts. (a - first, b - second)
|
|
|
09/16/2020, 02:41
|
#6
|
elite*gold: 0
Join Date: Sep 2013
Posts: 35
Received Thanks: 4
|
Quote:
Originally Posted by romdrak
You need to have at least 2 these packets from different positions to get the final position of pts. (a - first, b - second)
|
is that means we need to calculate the angle first?
the angle a is the angle of point a to b and angle b is the angle of point b to a?
|
|
|
09/16/2020, 06:31
|
#7
|
elite*gold: 0
Join Date: Oct 2013
Posts: 99
Received Thanks: 154
|
Quote:
Originally Posted by ctyjason2
is that means we need to calculate the angle first?
the angle a is the angle of point a to b and angle b is the angle of point b to a?
|
No, you need 2 hidn packets which looks like hidn 0 {angle} {pos_x} {pos_y} (they need to have different positions and angles)
|
|
|
Similar Threads
|
[VK]Captain 2nd Class & 2nd.Leutant 2nd Class
12/28/2010 - CrossFire Trading - 9 Replies
Hallo liebe Elitepvpers Community , da ich jetzt leider aufhöre mit Crossfire und für was bestimmtes spare verkaufe ich nun meine beiden Crossfire Accounts.
Captain Account 2nd Class
Z8Games ? Home of the Best Free MMO Games - Clans - Character Details
M4A1 Crystal
AWM - Red Dragon
AK Scope
|
S> 2nd rb Archer + 2nd rb Trojan + 2nd rb Water
06/03/2008 - Conquer Online 2 Trading - 0 Replies
Why am I selling these:
So far I have sold many of my chars through here and have had some pretty succesfull deals, leading to me selling the last bit of chars I have got left, if you are looking for 2 sockets other then a bow, then this aint the deal you're looking for, allthough the chars are pretty good and for a newcomer or someone who never had any luck the gear aint all that bad.
Selling the following:
Water 130 / Archer 130 / Archer 70
Water 130 / Water 130 / Trojan 130
Warrior...
|
All times are GMT +1. The time now is 19:34.
|
|