Register for your free account! | Forgot your password?

You last visited: Today at 19:14

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

Advertisement



help with adding unique.

Discussion on help with adding unique. within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1

 
Bocc1337's Avatar
 
elite*gold: 737
Join Date: Oct 2007
Posts: 730
Received Thanks: 133
help with adding unique.

I need help with adding a unique in the job temple. for some reason it will not spawn there. if i make it spawn anywhere els it works but not in the job temple. anyone know why or can help?
Bocc1337 is offline  
Old 07/04/2014, 05:33   #2
 
Eslam Galull's Avatar
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,278
Received Thanks: 524
just Copy a RefNest Line From a Unique Current Spawn in job temple & edit the hive & reftactices ids ,,, you may wanna change the spawn position from regon id & x & y & x .. remmber it will spawn in the same time with the unique you copied his line .. you cant edit time to ^^

aha forget ,, make sure you did the same with a refhive & reftactices lines .. for auto spawn

in refhive just change the last string128 to ur own
in reftactices : dont forget to objectcommon id & last string 128 name .. dont duplicate the reftactices id .. just get the last id and +1 .. understand any thing ?
Eslam Galull is offline  
Old 07/06/2014, 22:13   #3
 
Midnight ™'s Avatar
 
elite*gold: 212
Join Date: Jul 2014
Posts: 782
Received Thanks: 538
use this query to add a new monster spawn

PHP Code:
USE PGN_DB_SHARD /* Add Unique Spot By Midnight */

DECLARE @UNIQUE VARCHAR (129)
DECLARE @
CHARNAME VARCHAR (64)
DECLARE @
mindealy INT
DECLARE @maxdelay int
DECLARE @INITRADIUS INT
DECLARE @RADIUS int
DECLARE @MAXNEST int = (SELECT MAX (dwNestIDFROM Tab_RefNest)+1
DECLARE @MAXHIVE int = (SELECT MAX (dwHiveIDFROM Tab_RefHive)+1
DECLARE @MAXTACTICS int = (SELECT MAX (dwTacticsIDFROM Tab_RefTactics)+1

/* put your settings here */
SET @UNIQUE 'MOB_CH_TIGERWOMAN' -- Unique code name from _RefobjCommon table
SET 
@CHARNAME 'Midnight' -- Character name from _Char table to get mob position X Y Z
SET 
@mindealy 20000  -- Minimum time before appears in seconds
SET 
@maxdelay 21600  -- Maximum time before appears in seconds
SET 
@INITRADIUS 100  -- Radius around spot unique can generated at
SET 
@RADIUS 5000  -- Radius around spot Unique can move in
/* end of settings area */

/* get ID of mob by code name */
Declare @MOBID int SET @MOBID = (SELECT ID FROM _RefObjCommon WHERE CodeName128 = @UNIQUE)

SET IDENTITY_INSERT Tab_RefTactics ON
INSERT INTO Tab_RefTactics 
(dwTacticsID,dwObjID,btAIQoS,nMaxStamina,btMaxStaminaVariance,nSightRange,btAggressType,AggressData,btChangeTarget,btHelpRequestTo,btHelpResponseTo,btBattleStyle,BattleStyleData,btDiversionBasis,DiversionBasisData1,DiversionBasisData2,DiversionBasisData3,DiversionBasisData4,DiversionBasisData5,DiversionBasisData6,DiversionBasisData7,DiversionBasisData8,btDiversionKeepBasis,DiversionKeepBasisData1,DiversionKeepBasisData2,DiversionKeepBasisData3,DiversionKeepBasisData4,DiversionKeepBasisData5,DiversionKeepBasisData6,DiversionKeepBasisData7,DiversionKeepBasisData8,btKeepDistance,KeepDistanceData,btTraceType,btTraceBoundary,TraceData,btHomingType,HomingData,btAggressTypeOnHoming,btFleeType,dwChampionTacticsID,AdditionOptionFlag,szDescString128VALUES
(@MAXTACTICS,@MOBID,0,500,50,200,0,0,2,2,2,0,0,5,0,0,0,0,0,30,0,0,4,0,0,0,0,0,0,0,0,0,0,0,1,500,0,0,2,0,0,112,@UNIQUE)
SET IDENTITY_INSERT Tab_RefTactics OFF

SET IDENTITY_INSERT Tab_RefHive ON
INSERT INTO Tab_RefHive 
(dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTotalCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRate,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjType,szDescString128VALUES
(@MAXHIVE,0,1,0,0,0,0,1,1,@UNIQUE)
SET IDENTITY_INSERT Tab_RefHive OFF

/* get position coordinates of your character */

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)

SET IDENTITY_INSERT Tab_RefNest ON
INSERT INTO Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btTypeVALUES
(@MAXNEST,@MAXHIVE,@MAXTACTICS,@REGION,@POSX,@POSY,@POSZ,0,@RADIUS,@INITRADIUS,0,@mindealy,@maxdelay,1,0,1,0)
SET IDENTITY_INSERT Tab_RefNest OFF


print ''
print ''
print 'Done!' 
Midnight ™ is offline  
Reply


Similar Threads Similar Threads
Adding NPC's and Adding Items in Shopping Mall
03/19/2015 - CO2 Private Server - 21 Replies
Hello there, I have an 5518 source; Albetros Source. Now I have a few questions about it. 1. How do you add new NPC's and where can I find them in the Source? 2. How to add items in the Shopping Mall. I tried a few things but that didn't helped me alot. 3. How to set game char to GM. I tried to give it 5 but that didn't helped either. I looked in the Commands file and that was 5. But it didn't helped. Thanks...
[Request Help] In adding new Uniques Spawn + adding its notice
03/14/2013 - SRO Private Server - 13 Replies
Hello ... I am learning some DB Editing .. i wanted any one to explain HOW TO , add new unique spawn at one place , like add a Devil shitan at jangan door ever 2 hours from last kill .. ++ i wanted to know how to add Unique Notice .. like " Demon shitan has appeared in Roc Mt. "
Adding Unique Icon to VSRO
01/16/2012 - SRO Private Server - 0 Replies
Hello, how i can add the Unique Icon (Blue Icon & the lila point on the mini Map) to a normal monster? Just found the Unique.ddj Icon, but i dont know how i can add it to a normal Monster like Manyang or something... Thank you :) No one can help :/ ?



All times are GMT +1. The time now is 19:15.


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