Register for your free account! | Forgot your password?

You last visited: Today at 08:06

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

Advertisement



WorldMap_LocalInfo

Discussion on WorldMap_LocalInfo within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
WorldMap_LocalInfo

I'm pretty curious about how some NPC's and gates inside town maps are showing their respective tooltip description but ouside towns (worldmap) doesn't.

Also the Fortress Gate icon from worldmap it's the only one having this tooltip description.


This is not happening on iSRO type files where are shown correctly on worldmap.

I even ended up having this info.
Code:
# ________ WORLDMAP_LOCALINFO ________
1 ##### Service
99652 ##### Unique Npc Map ID
2 ##### Type : 1 - Zone; 2 - Point
interface\worldmap\map\xy_npc.ddj ##### Icon
NPC 아이콘 ##### Name 1
왕궁 조사단 이자둔 ##### Name 2
몽환의 사막 필드 ##### Name 3
0 ##### Open Regional Map
0 ##### Location Regional Map
81 ##### xSector
78 ##### ySector
24 ##### x pixel
5 ##### y pixel
16 ##### width
16 ##### height
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 #####
0 #####
1 ##### Use Description(?)
SN_NPC_AR_SPECIAL_INVESTIGATION_1 ##### Description
It's possible create the Fortress Gate tooltip behavior for npc and gates icons somehow in worldmap? A tricky media.pk2 edit that I'm missing on this line arguments? Maybe an ASM edition it's the only way? Or some DLL injection? (:

What I'm looking for in worldmap not only town maps..
JellyBitz is offline  
Thanks
2 Users
Old 07/15/2020, 05:15   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
It's not supported in VSRO 188, but supported on newer files.
I'm not sure if it's a support issue. It could be a simple check on the sro_client as well.
sarkoplata is offline  
Old 07/28/2020, 13:06   #3
 
bimbum*'s Avatar
 
elite*gold: 47
Join Date: Oct 2017
Posts: 574
Received Thanks: 967
Quote:
Originally Posted by JellyBitz View Post
I'm pretty curious about how some NPC's and gates inside town maps are showing their respective tooltip description but ouside towns (worldmap) doesn't.

Also the Fortress Gate icon from worldmap it's the only one having this tooltip description.


This is not happening on iSRO type files where are shown correctly on worldmap.

I even ended up having this info.
Code:
# ________ WORLDMAP_LOCALINFO ________
1 ##### Service
99652 ##### Unique Npc Map ID
2 ##### Type : 1 - Zone; 2 - Point
interface\worldmap\map\xy_npc.ddj ##### Icon
NPC 아이콘 ##### Name 1
왕궁 조사단 이자둔 ##### Name 2
몽환의 사막 필드 ##### Name 3
0 ##### Open Regional Map
0 ##### Location Regional Map
81 ##### xSector
78 ##### ySector
24 ##### x pixel
5 ##### y pixel
16 ##### width
16 ##### height
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 #####
0 #####
1 ##### Use Description(?)
SN_NPC_AR_SPECIAL_INVESTIGATION_1 ##### Description
It's possible create the Fortress Gate tooltip behavior for npc and gates icons somehow in worldmap? A tricky media.pk2 edit that I'm missing on this line arguments? Maybe an ASM edition it's the only way? Or some DLL injection? (:

What I'm looking for in worldmap not only town maps..
i wonder how do we specify x,y
bimbum* is offline  
Old 03/31/2021, 19:35   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 972
Received Thanks: 453
Quote:
Originally Posted by sarkoplata View Post
It's not supported in VSRO 188, but supported on newer files.
I'm not sure if it's a support issue. It could be a simple check on the sro_client as well.
it's not sro_client , it's pure media.pk2 edit
leo2111 is offline  
Old 02/15/2023, 15:54   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 5
Received Thanks: 7
anyone managed to specify x,y ?
ahmed007boss is offline  
Old 02/16/2023, 20:29   #6
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
Quote:
Originally Posted by ahmed007boss View Post
anyone managed to specify x,y ?
SQL script to make it easier to use.
PHP Code:
-- Game Coordinates
DECLARE @_@X INT 0
DECLARE @_@Y INT 0

-- Fix offset position from from map layer
SET 
@_@+= 192
SET 
@_@+= 192*2
-- Transform into relative position
DECLARE @_@PosX INT ABS(@_@X) % 768
DECLARE @_@PosZ INT ABS(@_@Y) % 768
-- Fix direction
IF @_@0 SET @_@PosX 768 - @_@PosX
IF @_@0 SET @_@PosZ 768 - @_@PosZ
-- Extract Region values and fix offset position from map layer
DECLARE @_@RX INT = (@_@- @_@PosX) / 192 134
DECLARE @_@RZ INT = (@_@- @_@PosZ) / 192 93

-- Result
SELECT CONCAT
('interface/worldmap/map/map_world_',@_@RX,'x',@_@RZ,'.ddj') AS 'Media.pk2', @_@PosX*128/768 AS 'Pixel X', (128-(@_@PosZ*128/768)) AS 'Pixel Y' 
JellyBitz is offline  
Old 02/18/2023, 13:46   #7
 
elite*gold: 0
Join Date: Nov 2011
Posts: 64
Received Thanks: 12
how to get x y pixels ?
kingklosa is offline  
Thanks
2 Users
Old 10/15/2023, 12:10   #8


 
*Deadly's Avatar
 
elite*gold: 1
Join Date: Feb 2020
Posts: 418
Received Thanks: 199
Quote:
Originally Posted by kingklosa View Post
how to get x y pixels ?
let me know if you found it using db region x y z please, thanks in advance.
*Deadly is offline  
Old 10/15/2023, 19:35   #9


 
notHype*'s Avatar
 
elite*gold: 50
Join Date: Feb 2018
Posts: 651
Received Thanks: 578
Quote:
Originally Posted by *Deadly View Post
let me know if you found it using db region x y z please, thanks in advance.
Yes. It is using the X/Z coordinates from _RefRegion; however, I recommend using the /frame command. It's much easier and both give the same coordinates.
notHype* is offline  
Thanks
1 User
Old 10/16/2023, 01:26   #10


 
*Deadly's Avatar
 
elite*gold: 1
Join Date: Feb 2020
Posts: 418
Received Thanks: 199
Quote:
Originally Posted by notHype* View Post
Yes. It is using the X/Z coordinates from _RefRegion; however, I recommend using the /frame command. It's much easier and both give the same coordinates.
The hardest part is finding the pixel x and y of that x/z map file.
*Deadly is offline  

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.