Register for your free account! | Forgot your password?

You last visited: Today at 02:13

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

Advertisement



[Release] Add Unique Spot

Discussion on [Release] Add Unique Spot within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
xxnukertube's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 579
Received Thanks: 166
Wink [Release] Add Unique Spot

PHP Code:
USE [SRO_VT_SHARD/* Add Unique Spot By Arabianfox */ 

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)+
DECLARE @MAXHIVE int = (SELECT MAX (dwHiveIDFROM Tab_RefHive)+
DECLARE @MAXTACTICS int = (SELECT MAX (dwTacticsIDFROM Tab_RefTactics)+

/* put your settings here */ 
SET @UNIQUE 'MOB_CH_MANGNYANG_EVIL' -- Unique code name from _RefobjCommon table 
SET 
@CHARNAME '[GM]Shutdown' -- Character name from _Char table to get mob position X Y Z 
SET 
@mindealy 900  -- Minimum time before appears in seconds 
SET 
@maxdelay 1200  -- Maximum time before appears in seconds 
SET 
@INITRADIUS 10  -- Radius around spot unique can generated at 
SET 
@RADIUS 50  -- 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!' 
xxnukertube is offline  
Thanks
3 Users
Old 06/25/2012, 17:39   #2
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,508
#approved
just a tip, dont ask for thanks that way
PortalDark is online now  
Old 06/26/2012, 02:51   #3
 
elite*gold: 0
Join Date: Aug 2011
Posts: 257
Received Thanks: 72
at lasted give the Credits to arabianfox ^_^ OSAMA
and btw its RZ Copy please make ur own xD Query to feel EPIC
paltalkadel is offline  
Old 06/26/2012, 15:57   #4
 
xxnukertube's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 579
Received Thanks: 166
please you shut up
xxnukertube is offline  
Old 06/26/2012, 20:18   #5
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,508
do not flame
unless the poster on RZ demands not to post this here, there is no problem
PortalDark is online now  
Old 09/30/2018, 04:32   #6
 
elite*gold: 0
Join Date: Mar 2015
Posts: 175
Received Thanks: 16
how to add unqie spot in more place??
Also normal.uniqes isy ivy tiger
Duty* is offline  
Old 09/30/2018, 10:43   #7
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,482
Quote:
Originally Posted by Duty* View Post
how to add unqie spot in more place??
Also normal.uniqes isy ivy tiger
Example from my server
old hotan unique Taishan

( Green is the TacticsID & Blue MobID)

RefTactics
46061 24637 0 500 50 150 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 MOB_KT_BOSSSPIDER

( RefHiveID is red )
RefHive
1575 0 1 0 0 0 0 1 1 MOB_KT_BOSSSPIDER

Refnest
36832 1575 46061 25226 1 21 1014 0 1000 600 0 7200 10800 1 0 1 0
36833 1575 46061 24711 440 27 1183 0 1000 600 0 7200 10800 1 0 1 0
36834 1575 46061 24196 1534 410 1570 0 1000 600 0 7200 10800 1 0 1 0
36835 1575 46061 23173 1565 266 1067 0 1000 600 0 7200 10800 1 0 1 0
36836 1575 46061 22919 1646 20 1180 0 1000 600 0 7200 10800 1 0 1 0
36837 1575 46061 23435 1564 -7 533 0 1000 600 0 7200 10800 1 0 1 0
36838 1575 46061 24202 161 -7 1254 0 1000 600 0 7200 10800 1 0 1 0
NorseGodTyr is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE] WIN A CO-OWNER SPOT ON MY SERVER
03/03/2009 - CO2 PServer Guides & Releases - 19 Replies
Hello ElitePvpers, I will Give Co-Owner to Whoever Submits The Best Source!!! Ok What is Needed In Source is 1. 5065 or 5090 Patch Support 2. Server Must Be stable



All times are GMT +1. The time now is 02:14.


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.