Quote:
Originally Posted by ffenril
ok nothing in my dbo.NPCResource in coordinates x 132814, y 86968 for moon 1 portal
|
Code:
DECLARE @charname NVARCHAR(55)
SET @charname = 'Enter your char name'
declare @radius int
set @radius = 30 --change radius for long or short search range
--do not edit anything here :) --
---------------------------------
---------------------------------
-- by Eziorav/MasterX1-----------
select char.name , npcres.id as near_npc_id, STRINGRES.value as npc_name , npcres.x, npcres.y
from arcadia.dbo.NPCResource NPCRES
INNER JOIN arcadia.dbo.StringResource STRINGRES
on STRINGRES.code = NPCRES.name_text_id
INNER JOIN Telecaster.dbo.Character CHAR
on CHAR.name = @charname
WHERE npcres.x between CHAR.x -@radius and CHAR.x +@radius and NPCRES.y between CHAR.y -@radius and CHAR.y +@radius
this is a little query codded by me to help auto you find npc_id