Register for your free account! | Forgot your password?

You last visited: Today at 05:18

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

Advertisement



Change NPC Place

Discussion on Change NPC Place within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Change NPC Place

as title said, how can i change NPC Place
maybe a query by char name, or manually
some one can help me with it ?!
Little Messi is offline  
Old 01/19/2015, 09:22   #2
 
PlantiX's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 1,037
Received Thanks: 478
1. Open _RefObjCommon, get the ID of the NPC.
2. Open _RefTactics -> paste the ID of the NPC and copy the Nest ID
3. Open RefNest -> change the coordinates

Done, gl
PlantiX is offline  
Old 01/19/2015, 10:17   #3
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
or just use that query

PHP Code:
declare @npcname varchar(128)
DECLARE @
CHARNAME VARCHAR (64
set @npcname 'CODENAMENPC'
SET @CHARNAME 'test' -- Character name from _Char table to get mob position X Y Z 
DECLARE @REGION INT SET @REGION = (SELECT (LatestRegionFROM _Char WHERE CharName16 = @CHARNAME
DECLARE @
POSX INT SET @POSX = (SELECT (POSXFROM _Char WHERE CharName16 = @CHARNAME
DECLARE @
POSY INT SET @POSY = (SELECT (POSYFROM _Char WHERE CharName16 = @CHARNAME
DECLARE @
POSZ INT SET @POSZ = (SELECT (POSZFROM _Char WHERE CharName16 = @CHARNAME
UPDATE Tab_RefNest set nRegionDBID = @REGIONfLocalPosX = @posxfLocalPosY = @posyfLocalPosZ = @posz where dwTacticsID = (select dwTacticsID from Tab_RefTactics where dwObjID = (select ID from _RefObjCommon where CodeName128 = @npcname )) 
Crue* is offline  
Old 01/19/2015, 17:54   #4
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Quote:
Originally Posted by Crue* View Post
or just use that query

PHP Code:
declare @npcname varchar(128)
DECLARE @
CHARNAME VARCHAR (64
set @npcname 'CODENAMENPC'
SET @CHARNAME 'test' -- Character name from _Char table to get mob position X Y Z 
DECLARE @REGION INT SET @REGION = (SELECT (LatestRegionFROM _Char WHERE CharName16 = @CHARNAME
DECLARE @
POSX INT SET @POSX = (SELECT (POSXFROM _Char WHERE CharName16 = @CHARNAME
DECLARE @
POSY INT SET @POSY = (SELECT (POSYFROM _Char WHERE CharName16 = @CHARNAME
DECLARE @
POSZ INT SET @POSZ = (SELECT (POSZFROM _Char WHERE CharName16 = @CHARNAME
UPDATE Tab_RefNest set nRegionDBID = @REGIONfLocalPosX = @posxfLocalPosY = @posyfLocalPosZ = @posz where dwTacticsID = (select dwTacticsID from Tab_RefTactics where dwObjID = (select ID from _RefObjCommon where CodeName128 = @npcname )) 
that's the query result ..

Little Messi is offline  
Old 01/19/2015, 17:56   #5
 
WickedNite.'s Avatar
 
elite*gold: 15
Join Date: Jul 2014
Posts: 1,602
Received Thanks: 1,357
Queries....just do it manually like PlantiX said.
WickedNite. is offline  
Old 01/19/2015, 18:02   #6
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
Quote:
Originally Posted by Little Messi View Post
that's the query result ..

change it from STORE to NPC

Quote:
Originally Posted by TheWickedNite View Post
Queries....just do it manually like PlantiX said.
Queries always do most of the work
Crue* is offline  
Old 01/19/2015, 18:41   #7
 
elite*gold: 15
Join Date: Jul 2014
Posts: 146
Received Thanks: 6
Quote:
Originally Posted by Crue* View Post
change it from STORE to NPC



Queries always do most of the work

same thing

MissinGDeaTh is offline  
Old 01/19/2015, 19:05   #8
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Quote:
Originally Posted by PlantiX View Post
1. Open _RefObjCommon, get the ID of the NPC.
2. Open _RefTactics -> paste the ID of the NPC and copy the Nest ID
3. Open RefNest -> change the coordinates

Done, gl
i'm a little lost here, Paste the ID of NPC where exactly :S

Quote:
Originally Posted by MissinGDeaTh View Post
same thing

Little Messi is offline  
Old 01/19/2015, 20:17   #9
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
are you sure that the codename in refobjcommon ?
Crue* is offline  
Old 01/19/2015, 20:24   #10
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Quote:
Originally Posted by Crue* View Post
are you sure that the codename in refobjcommon ?
i did searched for it and here's the result

Little Messi is offline  
Old 01/19/2015, 20:33   #11
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
Quote:
Originally Posted by Little Messi View Post
i did searched for it and here's the result

so try this one,

PHP Code:
Declare @trcid as varchar (MAX)
Declare @
NPC as varchar (200)
Declare @
ref as varchar (250)
Declare @
as varchar (250)
Declare @
as varchar (250)
Declare @
as varchar (250)
Declare @
region as varchar (250)
Declare @
app as varchar (250)
Declare @
char as varchar (MAX)

Set @char 'xxx'      
Set @NPC 'NPC_LEGENDKNIGHT10' 
-----------------------------------------------------------------------------------
Set @= (Select PosX From _Char Where CharName16 = @char)
Set @= (Select PosY From _Char Where CharName16 = @char)
Set @= (Select PosZ From _Char Where CharName16 = @char)
Set @region = (Select LatestRegion From _Char Where CharName16 = @char)
Set @app = (Select AppointedTeleport From _Char Where CharName16 = @char)
set @trcid = (Select dwTacticsID from Tab_RefTactics where dwObjID = (Select ID from _RefObjCommon where CodeName128 = @NPC ))
UPDATE Tab_RefNest set fLocalPosX = @fLocalPosY = @fLocalPosZ = @nRegionDBID = @region ,wInitialDir = @app where dwTacticsID = @trcid 
Crue* is offline  
Thanks
1 User
Old 01/19/2015, 20:42   #12
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Quote:
Originally Posted by Crue* View Post
so try this one,

PHP Code:
Declare @trcid as varchar (MAX)
Declare @
NPC as varchar (200)
Declare @
ref as varchar (250)
Declare @
as varchar (250)
Declare @
as varchar (250)
Declare @
as varchar (250)
Declare @
region as varchar (250)
Declare @
app as varchar (250)
Declare @
char as varchar (MAX)

Set @char 'xxx'      
Set @NPC 'NPC_LEGENDKNIGHT10' 
-----------------------------------------------------------------------------------
Set @= (Select PosX From _Char Where CharName16 = @char)
Set @= (Select PosY From _Char Where CharName16 = @char)
Set @= (Select PosZ From _Char Where CharName16 = @char)
Set @region = (Select LatestRegion From _Char Where CharName16 = @char)
Set @app = (Select AppointedTeleport From _Char Where CharName16 = @char)
set @trcid = (Select dwTacticsID from Tab_RefTactics where dwObjID = (Select ID from _RefObjCommon where CodeName128 = @NPC ))
UPDATE Tab_RefNest set fLocalPosX = @fLocalPosY = @fLocalPosZ = @nRegionDBID = @region ,wInitialDir = @app where dwTacticsID = @trcid 
i rly appreciate that you are helping me, and am sorry for your waste of time. take a look at this :/

Little Messi is offline  
Old 01/19/2015, 20:51   #13
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
it was working before change the npc spot ?
Crue* is offline  
Thanks
1 User
Old 01/19/2015, 20:54   #14
 
elite*gold: 0
Join Date: Mar 2010
Posts: 177
Received Thanks: 11
Quote:
Originally Posted by Crue* View Post
it was working before change the npc spot ?
ye it was working, but don't worry about that i alrdy got a back up and i restore it, but query didn't worked yet :/
Little Messi is offline  
Old 01/19/2015, 21:01   #15
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
Quote:
Originally Posted by Little Messi View Post
ye it was working, but don't worry about that i alrdy got a back up and i restore it, but query didn't worked yet :/
so you've to do it manually
Crue* is offline  
Closed Thread


Similar Threads Similar Threads
[Release] Simple query to change mobs respawn place
04/06/2015 - SRO PServer Guides & Releases - 4 Replies
Hello , i would like to share this query that will make you able to change mobs respawn place's , Example : you can replace 74-76 Niya hunter mobs into Roc.mt USE SRO_VT_SHARD UPDATE .SET dwObjID = replace(dwObjID, 'OldMobID', 'NewMobID')WHERE dwObjID LIKE 'OldMobIDAgain'; * You can also find the mob id's by using the querys Jangan mobs: select * from _RefObjCommon where CodeName128 like '%MOB_CH%'
How to Change The Place Of any Teleport to Other Place
11/29/2014 - SRO Private Server - 6 Replies
How to Change The Place Of any Teleport to Other Place http://i.epvpimg.com/oQrEe.jpg
[Help]how to change mobs and Unique Spawn place !!
07/24/2012 - SRO Private Server - 3 Replies
how to change Mobs and Unique spawn place i don't need jupiter and alx map all what i need mobs and Uniques player will summon lv 70 and i don't need Dw cave and JG ~ Costnipol map i have alot of place all i need some one to explian to me with pic sorry for bad english ;(
Nephalem Buff Stack Place/Possible Farm Place
06/30/2012 - Diablo 3 Guides & Strategies - 33 Replies
Sers zusammen, ich habe gestern Abend beim Zocken einen Dungeon gefunden den ich vorher noch nicht gesehen habe. Er ist relativ kurz und geht über 2 Etagen. Wodurch er sich zum stacken eignet ist die Tatsache, dass in der 2. Etage 5-6 Rare/Elite Mobs rumlaufen. Und das auf einer (zumindest war es bei mir so) geraden Strecke. Was das ganze noch interessanter macht, bei mir war zusätzlich zu den 5-6 Mobs noch ein Goblin da war und am Ende eine Prächtige Truhe. :) Ich hoffe das ist...



All times are GMT +2. The time now is 05:18.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.