حفظ بياناتي ؟

1/01/2023

22/05/2024_hema

22/05/2024_hema

END_shaher_01/01/2025

Ahmed_k_nayel_01_01_2025

END_02/12/2024

END 29/01/2025

END 30/02/2025_Belal

END 06/01/2025

END 12/01/2025

END _14/01/2025_Karuoke

END _14/01/2025_Karuoke

END 18/01/2025

END 20/01/2025_coinY

END 20/01/2025_1418

END 21/02/2025

END 30/01/2025

END 01/02/2025

END 13/02/2025

25/01/2022

QueenSro_01_10_2024

Ahmed_k_nayel_01_01_2025

ibrahim_END 07/1212024

END 29/01/2025

END 12/01/2025

END _14/01/2025_Karuoke

END 18/01/2025

END 20/01/2025_coinY

END 21/02/2025

END 30/01/2025

END 06/02/2025

END 06/02/2025

END_shaher_01/01/2025

END_16/02/2025

 الـجـروب الـرسـمى لـلـمـنـتـدى FaceBook | Official Group 



قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة [ قسم خاص لأسئلة واستفسارات عمل السيرفرات الخاصة ] [ يرجى الالتزام بقوانين قسم الأسئلة والاستفسارات ]

موضوع مغلق
 
أدوات الموضوع انواع عرض الموضوع
قديم 23-07-2020, 02:28 AM   #1

mohamed habib
عضو فعال



الصورة الرمزية mohamed habib


• الانـتـسـاب » Nov 2013
• رقـم العـضـويـة » 115405
• المشـــاركـات » 356
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 20
mohamed habib صـاعـد

mohamed habib غير متواجد حالياً



افتراضي Mobs



السلام عليكم كل سنه وانتم بخير
عندي sky temple مفيش فيه اي mobs عايز احط فيه mobs تكون Lv 105 مثلا
وبأعداد كتيره اعمل ايه وشكرااا




إعلانات google

قديم 24-07-2020, 01:33 AM   #2

mohamed habib
عضو فعال



الصورة الرمزية mohamed habib


• الانـتـسـاب » Nov 2013
• رقـم العـضـويـة » 115405
• المشـــاركـات » 356
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 20
mohamed habib صـاعـد

mohamed habib غير متواجد حالياً



افتراضي رد: Mobs



فين يا جدعان




قديم 24-07-2020, 07:06 PM   #3

Mad_z7
عضو جديد



الصورة الرمزية Mad_z7


• الانـتـسـاب » Jun 2020
• رقـم العـضـويـة » 152721
• المشـــاركـات » 19
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 14
Mad_z7 صـاعـد

Mad_z7 غير متواجد حالياً



افتراضي رد: Mobs



ده كيورى روح المكان ال انت عاوزة باى اكونت ورستر ويعدين غير كل ال بالاحمر بال انت عاوزه 50 ده عدد ال مويس و متنساش تحط اسم الكراكتر مكان B_1
وعندك لحد 25 كراكتر ممكن تحطلهم اماكن


كود:
USE SRO_VT_SHARD /* Add Unique Multiple Spots  */

/* 
   This Query can uses for add spawn unique spot(s) by 25x spot.
   Leave Character names don't change if u want few of spots not all of 25x
   For example :
   if u want to add unique name MOB_RM_ROC in only 5 selected spots.
   create 5 characters and go with them to the selected 5 spots in-game then logout these characters,
   then edit here first 5 characters names to get 5x spots, monster codename 'MOB_RM_ROC' , spawn time and radius
   if u need more or few spots than 5x just change character name for an exists characters.
*/

-- Declare expression.
Declare @MonsterCodeName Varchar(Max) , @MinDealy Int , @MaxDelay Int , @InitRadius Int , @Radius Int , @NestID Int ,
@HiveID Int , @TacticsID Int , @MonsterID Int , @CharName1 Varchar(64) , @Region1 Int , @PosX1 Int , @PosY1 Int , @PosZ1 Int ,
@CharName2 Varchar(64) , @Region2 Int , @PosX2 Int , @PosY2 Int , @PosZ2 Int , @CharName3 Varchar(64) , @Region3 Int , @PosX3 Int , @PosY3 Int , @PosZ3 Int ,
@CharName4 Varchar(64) , @Region4 Int , @PosX4 Int , @PosY4 Int , @PosZ4 Int , @CharName5 Varchar(64) , @Region5 Int , @PosX5 Int , @PosY5 Int , @PosZ5 Int ,
@CharName6 Varchar(64) , @Region6 Int , @PosX6 Int , @PosY6 Int , @PosZ6 Int , @CharName7 Varchar(64) , @Region7 Int , @PosX7 Int , @PosY7 Int , @PosZ7 Int ,
@CharName8 Varchar(64) , @Region8 Int , @PosX8 Int , @PosY8 Int , @PosZ8 Int , @CharName9 Varchar(64) , @Region9 Int , @PosX9 Int , @PosY9 Int , @PosZ9 Int ,
@CharName10 Varchar(64) , @Region10 Int , @PosX10 Int , @PosY10 Int , @PosZ10 Int , @CharName11 Varchar(64) , @Region11 Int , @PosX11 Int , @PosY11 Int , @PosZ11 Int ,
@CharName12 Varchar(64) , @Region12 Int , @PosX12 Int , @PosY12 Int , @PosZ12 Int , @CharName13 Varchar(64) , @Region13 Int , @PosX13 Int , @PosY13 Int , @PosZ13 Int ,
@CharName14 Varchar(64) , @Region14 Int , @PosX14 Int , @PosY14 Int , @PosZ14 Int , @CharName15 Varchar(64) , @Region15 Int , @PosX15 Int , @PosY15 Int , @PosZ15 Int ,
@CharName16 Varchar(64) , @Region16 Int , @PosX16 Int , @PosY16 Int , @PosZ16 Int , @CharName17 Varchar(64) , @Region17 Int , @PosX17 Int , @PosY17 Int , @PosZ17 Int ,
@CharName18 Varchar(64) , @Region18 Int , @PosX18 Int , @PosY18 Int , @PosZ18 Int , @CharName19 Varchar(64) , @Region19 Int , @PosX19 Int , @PosY19 Int , @PosZ19 Int ,
@CharName20 Varchar(64) , @Region20 Int , @PosX20 Int , @PosY20 Int , @PosZ20 Int , @CharName21 Varchar(64) , @Region21 Int , @PosX21 Int , @PosY21 Int , @PosZ21 Int ,
@CharName22 Varchar(64) , @Region22 Int , @PosX22 Int , @PosY22 Int , @PosZ22 Int , @CharName23 Varchar(64) , @Region23 Int , @PosX23 Int , @PosY23 Int , @PosZ23 Int ,
@CharName24 Varchar(64) , @Region24 Int , @PosX24 Int , @PosY24 Int , @PosZ24 Int , @CharName25 Varchar(64) , @Region25 Int , @PosX25 Int , @PosY25 Int , @PosZ25 Int
--------------------------------------------------------
/* Put Your Correct Settings Here */
Set @MonsterCodeName = 'MOB U Want To add' -- Monster CodeName128 , must be a correct monster codename to execute the query
Set @MinDealy = 7200  -- Minimum time before appears in seconds
Set @MaxDelay = 7201  -- Maximum time before appears in seconds
Set @InitRadius = 500  -- Radius around spot unique can generated at
Set @Radius = 500  -- Radius around spot Unique can move in
 -- 20x Character names to get monster position X Y Z
Set @CharName1 = 'B_1'    Set @CharName2 = 'CharName 2'    Set @CharName3 = 'Character 3'    Set @CharName4 = 'Character 4'
Set @CharName5 = 'Character 5'    Set @CharName6 = 'Character 6'    Set @CharName7 = 'Character 7'    Set @CharName8 = 'Character 8'
Set @CharName9 = 'Character 9'    Set @CharName10 = 'Character 10'    Set @CharName11 = 'Character 11'    Set @CharName12 = 'Character 12'
Set @CharName13 = 'Character 13'    Set @CharName14 = 'Character 14'    Set @CharName15 = 'Character 15'    Set @CharName16 = 'Character 16'
Set @CharName17 = 'Character 17'    Set @CharName18 = 'Character 18'    Set @CharName19 = 'Character 19'    Set @CharName20 = 'Character 20'
Set @CharName21 = 'Character 21'    Set @CharName22 = 'Character 22'    Set @CharName23 = 'Character 23'    Set @CharName24 = 'Character 24'
Set @CharName25 = 'Character 25'    
/* End Of Settings Press F5 To Execute The Query */
--------------------------------------------------------
/* Get parameters for tables Inserting */
Set @MonsterID = (Select ID From _RefObjCommon Where CodeName128 = @MonsterCodeName)
Set @HiveID = (Select Max(dwHiveID) From Tab_RefHive)+1
Set @TacticsID = (Select Max(dwTacticsID) From Tab_RefTactics)+1
Set @Region1  = (Select (LatestRegion) From _Char Where CharName16 = @CharName1)    Set @PosX1  = (Select (POSX) From _Char Where CharName16 = @CharName1)    Set @PosY1  = (Select (POSY) From _Char Where CharName16 = @CharName1)    Set @PosZ1  = (Select (POSZ) From _Char Where CharName16 = @CharName1)
Set @Region2  = (Select (LatestRegion) From _Char Where CharName16 = @CharName2)    Set @PosX2  = (Select (POSX) From _Char Where CharName16 = @CharName2)    Set @PosY2  = (Select (POSY) From _Char Where CharName16 = @CharName2)    Set @PosZ2  = (Select (POSZ) From _Char Where CharName16 = @CharName2)
Set @Region3  = (Select (LatestRegion) From _Char Where CharName16 = @CharName3)    Set @PosX3  = (Select (POSX) From _Char Where CharName16 = @CharName3)    Set @PosY3  = (Select (POSY) From _Char Where CharName16 = @CharName3)    Set @PosZ3  = (Select (POSZ) From _Char Where CharName16 = @CharName3)
Set @Region4  = (Select (LatestRegion) From _Char Where CharName16 = @CharName4)    Set @PosX4  = (Select (POSX) From _Char Where CharName16 = @CharName4)    Set @PosY4  = (Select (POSY) From _Char Where CharName16 = @CharName4)    Set @PosZ4  = (Select (POSZ) From _Char Where CharName16 = @CharName4)
Set @Region5  = (Select (LatestRegion) From _Char Where CharName16 = @CharName5)    Set @PosX5  = (Select (POSX) From _Char Where CharName16 = @CharName5)    Set @PosY5  = (Select (POSY) From _Char Where CharName16 = @CharName5)    Set @PosZ5  = (Select (POSZ) From _Char Where CharName16 = @CharName5)
Set @Region6  = (Select (LatestRegion) From _Char Where CharName16 = @CharName6)    Set @PosX6  = (Select (POSX) From _Char Where CharName16 = @CharName6)    Set @PosY6  = (Select (POSY) From _Char Where CharName16 = @CharName6)    Set @PosZ6  = (Select (POSZ) From _Char Where CharName16 = @CharName6)
Set @Region7  = (Select (LatestRegion) From _Char Where CharName16 = @CharName7)    Set @PosX7  = (Select (POSX) From _Char Where CharName16 = @CharName7)    Set @PosY7  = (Select (POSY) From _Char Where CharName16 = @CharName7)    Set @PosZ7  = (Select (POSZ) From _Char Where CharName16 = @CharName7)
Set @Region8  = (Select (LatestRegion) From _Char Where CharName16 = @CharName8)    Set @PosX8  = (Select (POSX) From _Char Where CharName16 = @CharName8)    Set @PosY8  = (Select (POSY) From _Char Where CharName16 = @CharName8)    Set @PosZ8  = (Select (POSZ) From _Char Where CharName16 = @CharName8)
Set @Region9  = (Select (LatestRegion) From _Char Where CharName16 = @CharName9)    Set @PosX9  = (Select (POSX) From _Char Where CharName16 = @CharName9)    Set @PosY9  = (Select (POSY) From _Char Where CharName16 = @CharName9)    Set @PosZ9  = (Select (POSZ) From _Char Where CharName16 = @CharName9)
Set @Region10 = (Select (LatestRegion) From _Char Where CharName16 = @CharName10)    Set @PosX10 = (Select (POSX) From _Char Where CharName16 = @CharName10)    Set @PosY10 = (Select (POSY) From _Char Where CharName16 = @CharName10)    Set @PosZ10 = (Select (POSZ) From _Char Where CharName16 = @CharName10)
Set @Region11 = (Select (LatestRegion) From _Char Where CharName16 = @CharName11)    Set @PosX11 = (Select (POSX) From _Char Where CharName16 = @CharName11)    Set @PosY11 = (Select (POSY) From _Char Where CharName16 = @CharName11)    Set @PosZ11 = (Select (POSZ) From _Char Where CharName16 = @CharName11)
Set @Region12 = (Select (LatestRegion) From _Char Where CharName16 = @CharName12)    Set @PosX12 = (Select (POSX) From _Char Where CharName16 = @CharName12)    Set @PosY12 = (Select (POSY) From _Char Where CharName16 = @CharName12)    Set @PosZ12 = (Select (POSZ) From _Char Where CharName16 = @CharName12)
Set @Region13 = (Select (LatestRegion) From _Char Where CharName16 = @CharName13)    Set @PosX13 = (Select (POSX) From _Char Where CharName16 = @CharName13)    Set @PosY13 = (Select (POSY) From _Char Where CharName16 = @CharName13)    Set @PosZ13 = (Select (POSZ) From _Char Where CharName16 = @CharName13)
Set @Region14 = (Select (LatestRegion) From _Char Where CharName16 = @CharName14)    Set @PosX14 = (Select (POSX) From _Char Where CharName16 = @CharName14)    Set @PosY14 = (Select (POSY) From _Char Where CharName16 = @CharName14)    Set @PosZ14 = (Select (POSZ) From _Char Where CharName16 = @CharName14)
Set @Region15 = (Select (LatestRegion) From _Char Where CharName16 = @CharName15)    Set @PosX15 = (Select (POSX) From _Char Where CharName16 = @CharName15)    Set @PosY15 = (Select (POSY) From _Char Where CharName16 = @CharName15)    Set @PosZ15 = (Select (POSZ) From _Char Where CharName16 = @CharName15)
Set @Region16 = (Select (LatestRegion) From _Char Where CharName16 = @CharName16)    Set @PosX16 = (Select (POSX) From _Char Where CharName16 = @CharName16)    Set @PosY16 = (Select (POSY) From _Char Where CharName16 = @CharName16)    Set @PosZ16 = (Select (POSZ) From _Char Where CharName16 = @CharName16)
Set @Region17 = (Select (LatestRegion) From _Char Where CharName16 = @CharName17)    Set @PosX17 = (Select (POSX) From _Char Where CharName16 = @CharName17)    Set @PosY17 = (Select (POSY) From _Char Where CharName16 = @CharName17)    Set @PosZ17 = (Select (POSZ) From _Char Where CharName16 = @CharName17)
Set @Region18 = (Select (LatestRegion) From _Char Where CharName16 = @CharName18)    Set @PosX18 = (Select (POSX) From _Char Where CharName16 = @CharName18)    Set @PosY18 = (Select (POSY) From _Char Where CharName16 = @CharName18)    Set @PosZ18 = (Select (POSZ) From _Char Where CharName16 = @CharName18)
Set @Region19 = (Select (LatestRegion) From _Char Where CharName16 = @CharName19)    Set @PosX19 = (Select (POSX) From _Char Where CharName16 = @CharName19)    Set @PosY19 = (Select (POSY) From _Char Where CharName16 = @CharName19)    Set @PosZ19 = (Select (POSZ) From _Char Where CharName16 = @CharName19)
Set @Region20 = (Select (LatestRegion) From _Char Where CharName16 = @CharName20)    Set @PosX20 = (Select (POSX) From _Char Where CharName16 = @CharName20)    Set @PosY20 = (Select (POSY) From _Char Where CharName16 = @CharName20)    Set @PosZ20 = (Select (POSZ) From _Char Where CharName16 = @CharName20)
Set @Region21 = (Select (LatestRegion) From _Char Where CharName16 = @CharName21)    Set @PosX21 = (Select (POSX) From _Char Where CharName16 = @CharName21)    Set @PosY21 = (Select (POSY) From _Char Where CharName16 = @CharName21)    Set @PosZ21 = (Select (POSZ) From _Char Where CharName16 = @CharName21)
Set @Region22 = (Select (LatestRegion) From _Char Where CharName16 = @CharName22)    Set @PosX22 = (Select (POSX) From _Char Where CharName16 = @CharName22)    Set @PosY22 = (Select (POSY) From _Char Where CharName16 = @CharName22)    Set @PosZ22 = (Select (POSZ) From _Char Where CharName16 = @CharName22)
Set @Region23 = (Select (LatestRegion) From _Char Where CharName16 = @CharName23)    Set @PosX23 = (Select (POSX) From _Char Where CharName16 = @CharName23)    Set @PosY23 = (Select (POSY) From _Char Where CharName16 = @CharName23)    Set @PosZ23 = (Select (POSZ) From _Char Where CharName16 = @CharName23)
Set @Region24 = (Select (LatestRegion) From _Char Where CharName16 = @CharName24)    Set @PosX24 = (Select (POSX) From _Char Where CharName16 = @CharName24)    Set @PosY24 = (Select (POSY) From _Char Where CharName16 = @CharName24)    Set @PosZ24 = (Select (POSZ) From _Char Where CharName16 = @CharName24)
Set @Region25 = (Select (LatestRegion) From _Char Where CharName16 = @CharName25)    Set @PosX25 = (Select (POSX) From _Char Where CharName16 = @CharName25)    Set @PosY25 = (Select (POSY) From _Char Where CharName16 = @CharName25)    Set @PosZ25 = (Select (POSZ) From _Char Where CharName16 = @CharName25)
--------------------------------------------------------
/* Start tables inserting values */
IF EXISTS (Select * From _RefObjCommon Where CodeName128 = @MonsterCodeName) And
(EXISTS (Select * From _Char Where CharName16 = @CharName1) Or EXISTS (Select * From _Char Where CharName16 = @CharName2) Or EXISTS (Select * From _Char Where CharName16 = @CharName3) Or EXISTS (Select * From _Char Where CharName16 = @CharName4) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName5) Or EXISTS (Select * From _Char Where CharName16 = @CharName6) Or EXISTS (Select * From _Char Where CharName16 = @CharName7) Or EXISTS (Select * From _Char Where CharName16 = @CharName8) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName9) Or EXISTS (Select * From _Char Where CharName16 = @CharName10) Or  EXISTS (Select * From _Char Where CharName16 = @CharName11) Or EXISTS (Select * From _Char Where CharName16 = @CharName12) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName13) Or EXISTS (Select * From _Char Where CharName16 = @CharName14) Or  EXISTS (Select * From _Char Where CharName16 = @CharName15) Or EXISTS (Select * From _Char Where CharName16 = @CharName16) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName17) Or EXISTS (Select * From _Char Where CharName16 = @CharName18) Or  EXISTS (Select * From _Char Where CharName16 = @CharName19) Or EXISTS (Select * From _Char Where CharName16 = @CharName20) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName21) Or EXISTS (Select * From _Char Where CharName16 = @CharName22) Or  EXISTS (Select * From _Char Where CharName16 = @CharName23) Or EXISTS (Select * From _Char Where CharName16 = @CharName24) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName25))
Begin
--# [1] dbo.Tab_RefTactics
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,szDescString128)
Values (@TacticsID,@MonsterID,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,@MonsterCodeName)
Set Identity_Insert Tab_RefTactics Off

--# [2] dbo.Tab_RefHive
Set Identity_Insert Tab_RefHive On
Insert InTo Tab_RefHive (dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTotalCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRate,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjType,szDescString128)
Values (@HiveID,0,50,0,0,0,0,1,1,@MonsterCodeName)
Set Identity_Insert Tab_RefHive Off

--# [3] dbo.Tab_RefNest
Set Identity_Insert Tab_RefNest On
-- Spot 1 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName1)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region1,@PosX1,@PosY1,@PosZ1,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 2 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName2)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region2,@PosX2,@PosY2,@PosZ2,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 3 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName3)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region3,@PosX3,@PosY3,@PosZ3,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 4 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName4)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region4,@PosX4,@PosY4,@PosZ4,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 5 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName5)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region5,@PosX5,@PosY5,@PosZ5,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 6 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName6)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region6,@PosX6,@PosY6,@PosZ6,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 7 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName7)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region7,@PosX7,@PosY7,@PosZ7,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 8 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName8)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region8,@PosX8,@PosY8,@PosZ8,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 9 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName9)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region9,@PosX9,@PosY9,@PosZ9,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 10 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName10)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region10,@PosX10,@PosY10,@PosZ10,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 11 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName11)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region11,@PosX11,@PosY11,@PosZ11,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 12 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName12)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region12,@PosX12,@PosY12,@PosZ12,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 13 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName13)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region13,@PosX13,@PosY13,@PosZ13,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 14 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName14)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region14,@PosX14,@PosY14,@PosZ14,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 15 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName15)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region15,@PosX15,@PosY15,@PosZ15,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 16 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName16)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region16,@PosX16,@PosY16,@PosZ16,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 17 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName17)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region17,@PosX17,@PosY17,@PosZ17,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 18 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName18)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region18,@PosX18,@PosY18,@PosZ18,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 19 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName19)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region19,@PosX19,@PosY19,@PosZ19,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 20 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName20)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 21 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName21)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 22 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName22)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 23 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName23)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 24 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName24)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 25 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName25)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
Set Identity_Insert Tab_RefNest Off
print ''    print ''    print 'Query executing successfuly!'
End
Else Begin
print ''    print ''
Print 'Monster Code Name or Character names not exists' print ''
Print 'Please retype the correct settings to query executing successfuly.'
End




قديم 25-07-2020, 01:15 AM   #4

mohamed habib
عضو فعال



الصورة الرمزية mohamed habib


• الانـتـسـاب » Nov 2013
• رقـم العـضـويـة » 115405
• المشـــاركـات » 356
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 20
mohamed habib صـاعـد

mohamed habib غير متواجد حالياً



افتراضي رد: Mobs



اقتباس:
المشاركة الأصلية كتبت بواسطة Mad_z7 عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
ده كيورى روح المكان ال انت عاوزة باى اكونت ورستر ويعدين غير كل ال بالاحمر بال انت عاوزه 50 ده عدد ال مويس و متنساش تحط اسم الكراكتر مكان B_1
وعندك لحد 25 كراكتر ممكن تحطلهم اماكن


كود:
USE SRO_VT_SHARD /* Add Unique Multiple Spots  */

/* 
   This Query can uses for add spawn unique spot(s) by 25x spot.
   Leave Character names don't change if u want few of spots not all of 25x
   For example :
   if u want to add unique name MOB_RM_ROC in only 5 selected spots.
   create 5 characters and go with them to the selected 5 spots in-game then logout these characters,
   then edit here first 5 characters names to get 5x spots, monster codename 'MOB_RM_ROC' , spawn time and radius
   if u need more or few spots than 5x just change character name for an exists characters.
*/

-- Declare expression.
Declare @MonsterCodeName Varchar(Max) , @MinDealy Int , @MaxDelay Int , @InitRadius Int , @Radius Int , @NestID Int ,
@HiveID Int , @TacticsID Int , @MonsterID Int , @CharName1 Varchar(64) , @Region1 Int , @PosX1 Int , @PosY1 Int , @PosZ1 Int ,
@CharName2 Varchar(64) , @Region2 Int , @PosX2 Int , @PosY2 Int , @PosZ2 Int , @CharName3 Varchar(64) , @Region3 Int , @PosX3 Int , @PosY3 Int , @PosZ3 Int ,
@CharName4 Varchar(64) , @Region4 Int , @PosX4 Int , @PosY4 Int , @PosZ4 Int , @CharName5 Varchar(64) , @Region5 Int , @PosX5 Int , @PosY5 Int , @PosZ5 Int ,
@CharName6 Varchar(64) , @Region6 Int , @PosX6 Int , @PosY6 Int , @PosZ6 Int , @CharName7 Varchar(64) , @Region7 Int , @PosX7 Int , @PosY7 Int , @PosZ7 Int ,
@CharName8 Varchar(64) , @Region8 Int , @PosX8 Int , @PosY8 Int , @PosZ8 Int , @CharName9 Varchar(64) , @Region9 Int , @PosX9 Int , @PosY9 Int , @PosZ9 Int ,
@CharName10 Varchar(64) , @Region10 Int , @PosX10 Int , @PosY10 Int , @PosZ10 Int , @CharName11 Varchar(64) , @Region11 Int , @PosX11 Int , @PosY11 Int , @PosZ11 Int ,
@CharName12 Varchar(64) , @Region12 Int , @PosX12 Int , @PosY12 Int , @PosZ12 Int , @CharName13 Varchar(64) , @Region13 Int , @PosX13 Int , @PosY13 Int , @PosZ13 Int ,
@CharName14 Varchar(64) , @Region14 Int , @PosX14 Int , @PosY14 Int , @PosZ14 Int , @CharName15 Varchar(64) , @Region15 Int , @PosX15 Int , @PosY15 Int , @PosZ15 Int ,
@CharName16 Varchar(64) , @Region16 Int , @PosX16 Int , @PosY16 Int , @PosZ16 Int , @CharName17 Varchar(64) , @Region17 Int , @PosX17 Int , @PosY17 Int , @PosZ17 Int ,
@CharName18 Varchar(64) , @Region18 Int , @PosX18 Int , @PosY18 Int , @PosZ18 Int , @CharName19 Varchar(64) , @Region19 Int , @PosX19 Int , @PosY19 Int , @PosZ19 Int ,
@CharName20 Varchar(64) , @Region20 Int , @PosX20 Int , @PosY20 Int , @PosZ20 Int , @CharName21 Varchar(64) , @Region21 Int , @PosX21 Int , @PosY21 Int , @PosZ21 Int ,
@CharName22 Varchar(64) , @Region22 Int , @PosX22 Int , @PosY22 Int , @PosZ22 Int , @CharName23 Varchar(64) , @Region23 Int , @PosX23 Int , @PosY23 Int , @PosZ23 Int ,
@CharName24 Varchar(64) , @Region24 Int , @PosX24 Int , @PosY24 Int , @PosZ24 Int , @CharName25 Varchar(64) , @Region25 Int , @PosX25 Int , @PosY25 Int , @PosZ25 Int
--------------------------------------------------------
/* Put Your Correct Settings Here */
Set @MonsterCodeName = 'MOB U Want To add' -- Monster CodeName128 , must be a correct monster codename to execute the query
Set @MinDealy = 7200  -- Minimum time before appears in seconds
Set @MaxDelay = 7201  -- Maximum time before appears in seconds
Set @InitRadius = 500  -- Radius around spot unique can generated at
Set @Radius = 500  -- Radius around spot Unique can move in
 -- 20x Character names to get monster position X Y Z
Set @CharName1 = 'B_1'    Set @CharName2 = 'CharName 2'    Set @CharName3 = 'Character 3'    Set @CharName4 = 'Character 4'
Set @CharName5 = 'Character 5'    Set @CharName6 = 'Character 6'    Set @CharName7 = 'Character 7'    Set @CharName8 = 'Character 8'
Set @CharName9 = 'Character 9'    Set @CharName10 = 'Character 10'    Set @CharName11 = 'Character 11'    Set @CharName12 = 'Character 12'
Set @CharName13 = 'Character 13'    Set @CharName14 = 'Character 14'    Set @CharName15 = 'Character 15'    Set @CharName16 = 'Character 16'
Set @CharName17 = 'Character 17'    Set @CharName18 = 'Character 18'    Set @CharName19 = 'Character 19'    Set @CharName20 = 'Character 20'
Set @CharName21 = 'Character 21'    Set @CharName22 = 'Character 22'    Set @CharName23 = 'Character 23'    Set @CharName24 = 'Character 24'
Set @CharName25 = 'Character 25'    
/* End Of Settings Press F5 To Execute The Query */
--------------------------------------------------------
/* Get parameters for tables Inserting */
Set @MonsterID = (Select ID From _RefObjCommon Where CodeName128 = @MonsterCodeName)
Set @HiveID = (Select Max(dwHiveID) From Tab_RefHive)+1
Set @TacticsID = (Select Max(dwTacticsID) From Tab_RefTactics)+1
Set @Region1  = (Select (LatestRegion) From _Char Where CharName16 = @CharName1)    Set @PosX1  = (Select (POSX) From _Char Where CharName16 = @CharName1)    Set @PosY1  = (Select (POSY) From _Char Where CharName16 = @CharName1)    Set @PosZ1  = (Select (POSZ) From _Char Where CharName16 = @CharName1)
Set @Region2  = (Select (LatestRegion) From _Char Where CharName16 = @CharName2)    Set @PosX2  = (Select (POSX) From _Char Where CharName16 = @CharName2)    Set @PosY2  = (Select (POSY) From _Char Where CharName16 = @CharName2)    Set @PosZ2  = (Select (POSZ) From _Char Where CharName16 = @CharName2)
Set @Region3  = (Select (LatestRegion) From _Char Where CharName16 = @CharName3)    Set @PosX3  = (Select (POSX) From _Char Where CharName16 = @CharName3)    Set @PosY3  = (Select (POSY) From _Char Where CharName16 = @CharName3)    Set @PosZ3  = (Select (POSZ) From _Char Where CharName16 = @CharName3)
Set @Region4  = (Select (LatestRegion) From _Char Where CharName16 = @CharName4)    Set @PosX4  = (Select (POSX) From _Char Where CharName16 = @CharName4)    Set @PosY4  = (Select (POSY) From _Char Where CharName16 = @CharName4)    Set @PosZ4  = (Select (POSZ) From _Char Where CharName16 = @CharName4)
Set @Region5  = (Select (LatestRegion) From _Char Where CharName16 = @CharName5)    Set @PosX5  = (Select (POSX) From _Char Where CharName16 = @CharName5)    Set @PosY5  = (Select (POSY) From _Char Where CharName16 = @CharName5)    Set @PosZ5  = (Select (POSZ) From _Char Where CharName16 = @CharName5)
Set @Region6  = (Select (LatestRegion) From _Char Where CharName16 = @CharName6)    Set @PosX6  = (Select (POSX) From _Char Where CharName16 = @CharName6)    Set @PosY6  = (Select (POSY) From _Char Where CharName16 = @CharName6)    Set @PosZ6  = (Select (POSZ) From _Char Where CharName16 = @CharName6)
Set @Region7  = (Select (LatestRegion) From _Char Where CharName16 = @CharName7)    Set @PosX7  = (Select (POSX) From _Char Where CharName16 = @CharName7)    Set @PosY7  = (Select (POSY) From _Char Where CharName16 = @CharName7)    Set @PosZ7  = (Select (POSZ) From _Char Where CharName16 = @CharName7)
Set @Region8  = (Select (LatestRegion) From _Char Where CharName16 = @CharName8)    Set @PosX8  = (Select (POSX) From _Char Where CharName16 = @CharName8)    Set @PosY8  = (Select (POSY) From _Char Where CharName16 = @CharName8)    Set @PosZ8  = (Select (POSZ) From _Char Where CharName16 = @CharName8)
Set @Region9  = (Select (LatestRegion) From _Char Where CharName16 = @CharName9)    Set @PosX9  = (Select (POSX) From _Char Where CharName16 = @CharName9)    Set @PosY9  = (Select (POSY) From _Char Where CharName16 = @CharName9)    Set @PosZ9  = (Select (POSZ) From _Char Where CharName16 = @CharName9)
Set @Region10 = (Select (LatestRegion) From _Char Where CharName16 = @CharName10)    Set @PosX10 = (Select (POSX) From _Char Where CharName16 = @CharName10)    Set @PosY10 = (Select (POSY) From _Char Where CharName16 = @CharName10)    Set @PosZ10 = (Select (POSZ) From _Char Where CharName16 = @CharName10)
Set @Region11 = (Select (LatestRegion) From _Char Where CharName16 = @CharName11)    Set @PosX11 = (Select (POSX) From _Char Where CharName16 = @CharName11)    Set @PosY11 = (Select (POSY) From _Char Where CharName16 = @CharName11)    Set @PosZ11 = (Select (POSZ) From _Char Where CharName16 = @CharName11)
Set @Region12 = (Select (LatestRegion) From _Char Where CharName16 = @CharName12)    Set @PosX12 = (Select (POSX) From _Char Where CharName16 = @CharName12)    Set @PosY12 = (Select (POSY) From _Char Where CharName16 = @CharName12)    Set @PosZ12 = (Select (POSZ) From _Char Where CharName16 = @CharName12)
Set @Region13 = (Select (LatestRegion) From _Char Where CharName16 = @CharName13)    Set @PosX13 = (Select (POSX) From _Char Where CharName16 = @CharName13)    Set @PosY13 = (Select (POSY) From _Char Where CharName16 = @CharName13)    Set @PosZ13 = (Select (POSZ) From _Char Where CharName16 = @CharName13)
Set @Region14 = (Select (LatestRegion) From _Char Where CharName16 = @CharName14)    Set @PosX14 = (Select (POSX) From _Char Where CharName16 = @CharName14)    Set @PosY14 = (Select (POSY) From _Char Where CharName16 = @CharName14)    Set @PosZ14 = (Select (POSZ) From _Char Where CharName16 = @CharName14)
Set @Region15 = (Select (LatestRegion) From _Char Where CharName16 = @CharName15)    Set @PosX15 = (Select (POSX) From _Char Where CharName16 = @CharName15)    Set @PosY15 = (Select (POSY) From _Char Where CharName16 = @CharName15)    Set @PosZ15 = (Select (POSZ) From _Char Where CharName16 = @CharName15)
Set @Region16 = (Select (LatestRegion) From _Char Where CharName16 = @CharName16)    Set @PosX16 = (Select (POSX) From _Char Where CharName16 = @CharName16)    Set @PosY16 = (Select (POSY) From _Char Where CharName16 = @CharName16)    Set @PosZ16 = (Select (POSZ) From _Char Where CharName16 = @CharName16)
Set @Region17 = (Select (LatestRegion) From _Char Where CharName16 = @CharName17)    Set @PosX17 = (Select (POSX) From _Char Where CharName16 = @CharName17)    Set @PosY17 = (Select (POSY) From _Char Where CharName16 = @CharName17)    Set @PosZ17 = (Select (POSZ) From _Char Where CharName16 = @CharName17)
Set @Region18 = (Select (LatestRegion) From _Char Where CharName16 = @CharName18)    Set @PosX18 = (Select (POSX) From _Char Where CharName16 = @CharName18)    Set @PosY18 = (Select (POSY) From _Char Where CharName16 = @CharName18)    Set @PosZ18 = (Select (POSZ) From _Char Where CharName16 = @CharName18)
Set @Region19 = (Select (LatestRegion) From _Char Where CharName16 = @CharName19)    Set @PosX19 = (Select (POSX) From _Char Where CharName16 = @CharName19)    Set @PosY19 = (Select (POSY) From _Char Where CharName16 = @CharName19)    Set @PosZ19 = (Select (POSZ) From _Char Where CharName16 = @CharName19)
Set @Region20 = (Select (LatestRegion) From _Char Where CharName16 = @CharName20)    Set @PosX20 = (Select (POSX) From _Char Where CharName16 = @CharName20)    Set @PosY20 = (Select (POSY) From _Char Where CharName16 = @CharName20)    Set @PosZ20 = (Select (POSZ) From _Char Where CharName16 = @CharName20)
Set @Region21 = (Select (LatestRegion) From _Char Where CharName16 = @CharName21)    Set @PosX21 = (Select (POSX) From _Char Where CharName16 = @CharName21)    Set @PosY21 = (Select (POSY) From _Char Where CharName16 = @CharName21)    Set @PosZ21 = (Select (POSZ) From _Char Where CharName16 = @CharName21)
Set @Region22 = (Select (LatestRegion) From _Char Where CharName16 = @CharName22)    Set @PosX22 = (Select (POSX) From _Char Where CharName16 = @CharName22)    Set @PosY22 = (Select (POSY) From _Char Where CharName16 = @CharName22)    Set @PosZ22 = (Select (POSZ) From _Char Where CharName16 = @CharName22)
Set @Region23 = (Select (LatestRegion) From _Char Where CharName16 = @CharName23)    Set @PosX23 = (Select (POSX) From _Char Where CharName16 = @CharName23)    Set @PosY23 = (Select (POSY) From _Char Where CharName16 = @CharName23)    Set @PosZ23 = (Select (POSZ) From _Char Where CharName16 = @CharName23)
Set @Region24 = (Select (LatestRegion) From _Char Where CharName16 = @CharName24)    Set @PosX24 = (Select (POSX) From _Char Where CharName16 = @CharName24)    Set @PosY24 = (Select (POSY) From _Char Where CharName16 = @CharName24)    Set @PosZ24 = (Select (POSZ) From _Char Where CharName16 = @CharName24)
Set @Region25 = (Select (LatestRegion) From _Char Where CharName16 = @CharName25)    Set @PosX25 = (Select (POSX) From _Char Where CharName16 = @CharName25)    Set @PosY25 = (Select (POSY) From _Char Where CharName16 = @CharName25)    Set @PosZ25 = (Select (POSZ) From _Char Where CharName16 = @CharName25)
--------------------------------------------------------
/* Start tables inserting values */
IF EXISTS (Select * From _RefObjCommon Where CodeName128 = @MonsterCodeName) And
(EXISTS (Select * From _Char Where CharName16 = @CharName1) Or EXISTS (Select * From _Char Where CharName16 = @CharName2) Or EXISTS (Select * From _Char Where CharName16 = @CharName3) Or EXISTS (Select * From _Char Where CharName16 = @CharName4) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName5) Or EXISTS (Select * From _Char Where CharName16 = @CharName6) Or EXISTS (Select * From _Char Where CharName16 = @CharName7) Or EXISTS (Select * From _Char Where CharName16 = @CharName8) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName9) Or EXISTS (Select * From _Char Where CharName16 = @CharName10) Or  EXISTS (Select * From _Char Where CharName16 = @CharName11) Or EXISTS (Select * From _Char Where CharName16 = @CharName12) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName13) Or EXISTS (Select * From _Char Where CharName16 = @CharName14) Or  EXISTS (Select * From _Char Where CharName16 = @CharName15) Or EXISTS (Select * From _Char Where CharName16 = @CharName16) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName17) Or EXISTS (Select * From _Char Where CharName16 = @CharName18) Or  EXISTS (Select * From _Char Where CharName16 = @CharName19) Or EXISTS (Select * From _Char Where CharName16 = @CharName20) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName21) Or EXISTS (Select * From _Char Where CharName16 = @CharName22) Or  EXISTS (Select * From _Char Where CharName16 = @CharName23) Or EXISTS (Select * From _Char Where CharName16 = @CharName24) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName25))
Begin
--# [1] dbo.Tab_RefTactics
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,szDescString128)
Values (@TacticsID,@MonsterID,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,@MonsterCodeName)
Set Identity_Insert Tab_RefTactics Off

--# [2] dbo.Tab_RefHive
Set Identity_Insert Tab_RefHive On
Insert InTo Tab_RefHive (dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTotalCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRate,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjType,szDescString128)
Values (@HiveID,0,50,0,0,0,0,1,1,@MonsterCodeName)
Set Identity_Insert Tab_RefHive Off

--# [3] dbo.Tab_RefNest
Set Identity_Insert Tab_RefNest On
-- Spot 1 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName1)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region1,@PosX1,@PosY1,@PosZ1,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 2 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName2)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region2,@PosX2,@PosY2,@PosZ2,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 3 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName3)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region3,@PosX3,@PosY3,@PosZ3,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 4 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName4)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region4,@PosX4,@PosY4,@PosZ4,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 5 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName5)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region5,@PosX5,@PosY5,@PosZ5,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 6 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName6)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region6,@PosX6,@PosY6,@PosZ6,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 7 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName7)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region7,@PosX7,@PosY7,@PosZ7,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 8 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName8)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region8,@PosX8,@PosY8,@PosZ8,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 9 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName9)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region9,@PosX9,@PosY9,@PosZ9,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 10 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName10)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region10,@PosX10,@PosY10,@PosZ10,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 11 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName11)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region11,@PosX11,@PosY11,@PosZ11,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 12 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName12)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region12,@PosX12,@PosY12,@PosZ12,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 13 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName13)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region13,@PosX13,@PosY13,@PosZ13,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 14 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName14)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region14,@PosX14,@PosY14,@PosZ14,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 15 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName15)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region15,@PosX15,@PosY15,@PosZ15,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 16 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName16)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region16,@PosX16,@PosY16,@PosZ16,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 17 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName17)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region17,@PosX17,@PosY17,@PosZ17,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 18 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName18)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region18,@PosX18,@PosY18,@PosZ18,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 19 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName19)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region19,@PosX19,@PosY19,@PosZ19,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 20 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName20)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 21 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName21)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 22 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName22)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 23 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName23)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 24 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName24)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 25 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName25)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
Set Identity_Insert Tab_RefNest Off
print ''    print ''    print 'Query executing successfuly!'
End
Else Begin
print ''    print ''
Print 'Monster Code Name or Character names not exists' print ''
Print 'Please retype the correct settings to query executing successfuly.'
End
تسلم هجرب وارد عليك




قديم 25-07-2020, 03:34 AM   #5

mohamed habib
عضو فعال



الصورة الرمزية mohamed habib


• الانـتـسـاب » Nov 2013
• رقـم العـضـويـة » 115405
• المشـــاركـات » 356
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 20
mohamed habib صـاعـد

mohamed habib غير متواجد حالياً



افتراضي رد: Mobs



اقتباس:
المشاركة الأصلية كتبت بواسطة Mad_z7 عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
ده كيورى روح المكان ال انت عاوزة باى اكونت ورستر ويعدين غير كل ال بالاحمر بال انت عاوزه 50 ده عدد ال مويس و متنساش تحط اسم الكراكتر مكان B_1
وعندك لحد 25 كراكتر ممكن تحطلهم اماكن


كود:
USE SRO_VT_SHARD /* Add Unique Multiple Spots  */

/* 
   This Query can uses for add spawn unique spot(s) by 25x spot.
   Leave Character names don't change if u want few of spots not all of 25x
   For example :
   if u want to add unique name MOB_RM_ROC in only 5 selected spots.
   create 5 characters and go with them to the selected 5 spots in-game then logout these characters,
   then edit here first 5 characters names to get 5x spots, monster codename 'MOB_RM_ROC' , spawn time and radius
   if u need more or few spots than 5x just change character name for an exists characters.
*/

-- Declare expression.
Declare @MonsterCodeName Varchar(Max) , @MinDealy Int , @MaxDelay Int , @InitRadius Int , @Radius Int , @NestID Int ,
@HiveID Int , @TacticsID Int , @MonsterID Int , @CharName1 Varchar(64) , @Region1 Int , @PosX1 Int , @PosY1 Int , @PosZ1 Int ,
@CharName2 Varchar(64) , @Region2 Int , @PosX2 Int , @PosY2 Int , @PosZ2 Int , @CharName3 Varchar(64) , @Region3 Int , @PosX3 Int , @PosY3 Int , @PosZ3 Int ,
@CharName4 Varchar(64) , @Region4 Int , @PosX4 Int , @PosY4 Int , @PosZ4 Int , @CharName5 Varchar(64) , @Region5 Int , @PosX5 Int , @PosY5 Int , @PosZ5 Int ,
@CharName6 Varchar(64) , @Region6 Int , @PosX6 Int , @PosY6 Int , @PosZ6 Int , @CharName7 Varchar(64) , @Region7 Int , @PosX7 Int , @PosY7 Int , @PosZ7 Int ,
@CharName8 Varchar(64) , @Region8 Int , @PosX8 Int , @PosY8 Int , @PosZ8 Int , @CharName9 Varchar(64) , @Region9 Int , @PosX9 Int , @PosY9 Int , @PosZ9 Int ,
@CharName10 Varchar(64) , @Region10 Int , @PosX10 Int , @PosY10 Int , @PosZ10 Int , @CharName11 Varchar(64) , @Region11 Int , @PosX11 Int , @PosY11 Int , @PosZ11 Int ,
@CharName12 Varchar(64) , @Region12 Int , @PosX12 Int , @PosY12 Int , @PosZ12 Int , @CharName13 Varchar(64) , @Region13 Int , @PosX13 Int , @PosY13 Int , @PosZ13 Int ,
@CharName14 Varchar(64) , @Region14 Int , @PosX14 Int , @PosY14 Int , @PosZ14 Int , @CharName15 Varchar(64) , @Region15 Int , @PosX15 Int , @PosY15 Int , @PosZ15 Int ,
@CharName16 Varchar(64) , @Region16 Int , @PosX16 Int , @PosY16 Int , @PosZ16 Int , @CharName17 Varchar(64) , @Region17 Int , @PosX17 Int , @PosY17 Int , @PosZ17 Int ,
@CharName18 Varchar(64) , @Region18 Int , @PosX18 Int , @PosY18 Int , @PosZ18 Int , @CharName19 Varchar(64) , @Region19 Int , @PosX19 Int , @PosY19 Int , @PosZ19 Int ,
@CharName20 Varchar(64) , @Region20 Int , @PosX20 Int , @PosY20 Int , @PosZ20 Int , @CharName21 Varchar(64) , @Region21 Int , @PosX21 Int , @PosY21 Int , @PosZ21 Int ,
@CharName22 Varchar(64) , @Region22 Int , @PosX22 Int , @PosY22 Int , @PosZ22 Int , @CharName23 Varchar(64) , @Region23 Int , @PosX23 Int , @PosY23 Int , @PosZ23 Int ,
@CharName24 Varchar(64) , @Region24 Int , @PosX24 Int , @PosY24 Int , @PosZ24 Int , @CharName25 Varchar(64) , @Region25 Int , @PosX25 Int , @PosY25 Int , @PosZ25 Int
--------------------------------------------------------
/* Put Your Correct Settings Here */
Set @MonsterCodeName = 'MOB U Want To add' -- Monster CodeName128 , must be a correct monster codename to execute the query
Set @MinDealy = 7200  -- Minimum time before appears in seconds
Set @MaxDelay = 7201  -- Maximum time before appears in seconds
Set @InitRadius = 500  -- Radius around spot unique can generated at
Set @Radius = 500  -- Radius around spot Unique can move in
 -- 20x Character names to get monster position X Y Z
Set @CharName1 = 'B_1'    Set @CharName2 = 'CharName 2'    Set @CharName3 = 'Character 3'    Set @CharName4 = 'Character 4'
Set @CharName5 = 'Character 5'    Set @CharName6 = 'Character 6'    Set @CharName7 = 'Character 7'    Set @CharName8 = 'Character 8'
Set @CharName9 = 'Character 9'    Set @CharName10 = 'Character 10'    Set @CharName11 = 'Character 11'    Set @CharName12 = 'Character 12'
Set @CharName13 = 'Character 13'    Set @CharName14 = 'Character 14'    Set @CharName15 = 'Character 15'    Set @CharName16 = 'Character 16'
Set @CharName17 = 'Character 17'    Set @CharName18 = 'Character 18'    Set @CharName19 = 'Character 19'    Set @CharName20 = 'Character 20'
Set @CharName21 = 'Character 21'    Set @CharName22 = 'Character 22'    Set @CharName23 = 'Character 23'    Set @CharName24 = 'Character 24'
Set @CharName25 = 'Character 25'    
/* End Of Settings Press F5 To Execute The Query */
--------------------------------------------------------
/* Get parameters for tables Inserting */
Set @MonsterID = (Select ID From _RefObjCommon Where CodeName128 = @MonsterCodeName)
Set @HiveID = (Select Max(dwHiveID) From Tab_RefHive)+1
Set @TacticsID = (Select Max(dwTacticsID) From Tab_RefTactics)+1
Set @Region1  = (Select (LatestRegion) From _Char Where CharName16 = @CharName1)    Set @PosX1  = (Select (POSX) From _Char Where CharName16 = @CharName1)    Set @PosY1  = (Select (POSY) From _Char Where CharName16 = @CharName1)    Set @PosZ1  = (Select (POSZ) From _Char Where CharName16 = @CharName1)
Set @Region2  = (Select (LatestRegion) From _Char Where CharName16 = @CharName2)    Set @PosX2  = (Select (POSX) From _Char Where CharName16 = @CharName2)    Set @PosY2  = (Select (POSY) From _Char Where CharName16 = @CharName2)    Set @PosZ2  = (Select (POSZ) From _Char Where CharName16 = @CharName2)
Set @Region3  = (Select (LatestRegion) From _Char Where CharName16 = @CharName3)    Set @PosX3  = (Select (POSX) From _Char Where CharName16 = @CharName3)    Set @PosY3  = (Select (POSY) From _Char Where CharName16 = @CharName3)    Set @PosZ3  = (Select (POSZ) From _Char Where CharName16 = @CharName3)
Set @Region4  = (Select (LatestRegion) From _Char Where CharName16 = @CharName4)    Set @PosX4  = (Select (POSX) From _Char Where CharName16 = @CharName4)    Set @PosY4  = (Select (POSY) From _Char Where CharName16 = @CharName4)    Set @PosZ4  = (Select (POSZ) From _Char Where CharName16 = @CharName4)
Set @Region5  = (Select (LatestRegion) From _Char Where CharName16 = @CharName5)    Set @PosX5  = (Select (POSX) From _Char Where CharName16 = @CharName5)    Set @PosY5  = (Select (POSY) From _Char Where CharName16 = @CharName5)    Set @PosZ5  = (Select (POSZ) From _Char Where CharName16 = @CharName5)
Set @Region6  = (Select (LatestRegion) From _Char Where CharName16 = @CharName6)    Set @PosX6  = (Select (POSX) From _Char Where CharName16 = @CharName6)    Set @PosY6  = (Select (POSY) From _Char Where CharName16 = @CharName6)    Set @PosZ6  = (Select (POSZ) From _Char Where CharName16 = @CharName6)
Set @Region7  = (Select (LatestRegion) From _Char Where CharName16 = @CharName7)    Set @PosX7  = (Select (POSX) From _Char Where CharName16 = @CharName7)    Set @PosY7  = (Select (POSY) From _Char Where CharName16 = @CharName7)    Set @PosZ7  = (Select (POSZ) From _Char Where CharName16 = @CharName7)
Set @Region8  = (Select (LatestRegion) From _Char Where CharName16 = @CharName8)    Set @PosX8  = (Select (POSX) From _Char Where CharName16 = @CharName8)    Set @PosY8  = (Select (POSY) From _Char Where CharName16 = @CharName8)    Set @PosZ8  = (Select (POSZ) From _Char Where CharName16 = @CharName8)
Set @Region9  = (Select (LatestRegion) From _Char Where CharName16 = @CharName9)    Set @PosX9  = (Select (POSX) From _Char Where CharName16 = @CharName9)    Set @PosY9  = (Select (POSY) From _Char Where CharName16 = @CharName9)    Set @PosZ9  = (Select (POSZ) From _Char Where CharName16 = @CharName9)
Set @Region10 = (Select (LatestRegion) From _Char Where CharName16 = @CharName10)    Set @PosX10 = (Select (POSX) From _Char Where CharName16 = @CharName10)    Set @PosY10 = (Select (POSY) From _Char Where CharName16 = @CharName10)    Set @PosZ10 = (Select (POSZ) From _Char Where CharName16 = @CharName10)
Set @Region11 = (Select (LatestRegion) From _Char Where CharName16 = @CharName11)    Set @PosX11 = (Select (POSX) From _Char Where CharName16 = @CharName11)    Set @PosY11 = (Select (POSY) From _Char Where CharName16 = @CharName11)    Set @PosZ11 = (Select (POSZ) From _Char Where CharName16 = @CharName11)
Set @Region12 = (Select (LatestRegion) From _Char Where CharName16 = @CharName12)    Set @PosX12 = (Select (POSX) From _Char Where CharName16 = @CharName12)    Set @PosY12 = (Select (POSY) From _Char Where CharName16 = @CharName12)    Set @PosZ12 = (Select (POSZ) From _Char Where CharName16 = @CharName12)
Set @Region13 = (Select (LatestRegion) From _Char Where CharName16 = @CharName13)    Set @PosX13 = (Select (POSX) From _Char Where CharName16 = @CharName13)    Set @PosY13 = (Select (POSY) From _Char Where CharName16 = @CharName13)    Set @PosZ13 = (Select (POSZ) From _Char Where CharName16 = @CharName13)
Set @Region14 = (Select (LatestRegion) From _Char Where CharName16 = @CharName14)    Set @PosX14 = (Select (POSX) From _Char Where CharName16 = @CharName14)    Set @PosY14 = (Select (POSY) From _Char Where CharName16 = @CharName14)    Set @PosZ14 = (Select (POSZ) From _Char Where CharName16 = @CharName14)
Set @Region15 = (Select (LatestRegion) From _Char Where CharName16 = @CharName15)    Set @PosX15 = (Select (POSX) From _Char Where CharName16 = @CharName15)    Set @PosY15 = (Select (POSY) From _Char Where CharName16 = @CharName15)    Set @PosZ15 = (Select (POSZ) From _Char Where CharName16 = @CharName15)
Set @Region16 = (Select (LatestRegion) From _Char Where CharName16 = @CharName16)    Set @PosX16 = (Select (POSX) From _Char Where CharName16 = @CharName16)    Set @PosY16 = (Select (POSY) From _Char Where CharName16 = @CharName16)    Set @PosZ16 = (Select (POSZ) From _Char Where CharName16 = @CharName16)
Set @Region17 = (Select (LatestRegion) From _Char Where CharName16 = @CharName17)    Set @PosX17 = (Select (POSX) From _Char Where CharName16 = @CharName17)    Set @PosY17 = (Select (POSY) From _Char Where CharName16 = @CharName17)    Set @PosZ17 = (Select (POSZ) From _Char Where CharName16 = @CharName17)
Set @Region18 = (Select (LatestRegion) From _Char Where CharName16 = @CharName18)    Set @PosX18 = (Select (POSX) From _Char Where CharName16 = @CharName18)    Set @PosY18 = (Select (POSY) From _Char Where CharName16 = @CharName18)    Set @PosZ18 = (Select (POSZ) From _Char Where CharName16 = @CharName18)
Set @Region19 = (Select (LatestRegion) From _Char Where CharName16 = @CharName19)    Set @PosX19 = (Select (POSX) From _Char Where CharName16 = @CharName19)    Set @PosY19 = (Select (POSY) From _Char Where CharName16 = @CharName19)    Set @PosZ19 = (Select (POSZ) From _Char Where CharName16 = @CharName19)
Set @Region20 = (Select (LatestRegion) From _Char Where CharName16 = @CharName20)    Set @PosX20 = (Select (POSX) From _Char Where CharName16 = @CharName20)    Set @PosY20 = (Select (POSY) From _Char Where CharName16 = @CharName20)    Set @PosZ20 = (Select (POSZ) From _Char Where CharName16 = @CharName20)
Set @Region21 = (Select (LatestRegion) From _Char Where CharName16 = @CharName21)    Set @PosX21 = (Select (POSX) From _Char Where CharName16 = @CharName21)    Set @PosY21 = (Select (POSY) From _Char Where CharName16 = @CharName21)    Set @PosZ21 = (Select (POSZ) From _Char Where CharName16 = @CharName21)
Set @Region22 = (Select (LatestRegion) From _Char Where CharName16 = @CharName22)    Set @PosX22 = (Select (POSX) From _Char Where CharName16 = @CharName22)    Set @PosY22 = (Select (POSY) From _Char Where CharName16 = @CharName22)    Set @PosZ22 = (Select (POSZ) From _Char Where CharName16 = @CharName22)
Set @Region23 = (Select (LatestRegion) From _Char Where CharName16 = @CharName23)    Set @PosX23 = (Select (POSX) From _Char Where CharName16 = @CharName23)    Set @PosY23 = (Select (POSY) From _Char Where CharName16 = @CharName23)    Set @PosZ23 = (Select (POSZ) From _Char Where CharName16 = @CharName23)
Set @Region24 = (Select (LatestRegion) From _Char Where CharName16 = @CharName24)    Set @PosX24 = (Select (POSX) From _Char Where CharName16 = @CharName24)    Set @PosY24 = (Select (POSY) From _Char Where CharName16 = @CharName24)    Set @PosZ24 = (Select (POSZ) From _Char Where CharName16 = @CharName24)
Set @Region25 = (Select (LatestRegion) From _Char Where CharName16 = @CharName25)    Set @PosX25 = (Select (POSX) From _Char Where CharName16 = @CharName25)    Set @PosY25 = (Select (POSY) From _Char Where CharName16 = @CharName25)    Set @PosZ25 = (Select (POSZ) From _Char Where CharName16 = @CharName25)
--------------------------------------------------------
/* Start tables inserting values */
IF EXISTS (Select * From _RefObjCommon Where CodeName128 = @MonsterCodeName) And
(EXISTS (Select * From _Char Where CharName16 = @CharName1) Or EXISTS (Select * From _Char Where CharName16 = @CharName2) Or EXISTS (Select * From _Char Where CharName16 = @CharName3) Or EXISTS (Select * From _Char Where CharName16 = @CharName4) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName5) Or EXISTS (Select * From _Char Where CharName16 = @CharName6) Or EXISTS (Select * From _Char Where CharName16 = @CharName7) Or EXISTS (Select * From _Char Where CharName16 = @CharName8) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName9) Or EXISTS (Select * From _Char Where CharName16 = @CharName10) Or  EXISTS (Select * From _Char Where CharName16 = @CharName11) Or EXISTS (Select * From _Char Where CharName16 = @CharName12) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName13) Or EXISTS (Select * From _Char Where CharName16 = @CharName14) Or  EXISTS (Select * From _Char Where CharName16 = @CharName15) Or EXISTS (Select * From _Char Where CharName16 = @CharName16) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName17) Or EXISTS (Select * From _Char Where CharName16 = @CharName18) Or  EXISTS (Select * From _Char Where CharName16 = @CharName19) Or EXISTS (Select * From _Char Where CharName16 = @CharName20) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName21) Or EXISTS (Select * From _Char Where CharName16 = @CharName22) Or  EXISTS (Select * From _Char Where CharName16 = @CharName23) Or EXISTS (Select * From _Char Where CharName16 = @CharName24) Or
 EXISTS (Select * From _Char Where CharName16 = @CharName25))
Begin
--# [1] dbo.Tab_RefTactics
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,szDescString128)
Values (@TacticsID,@MonsterID,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,@MonsterCodeName)
Set Identity_Insert Tab_RefTactics Off

--# [2] dbo.Tab_RefHive
Set Identity_Insert Tab_RefHive On
Insert InTo Tab_RefHive (dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTotalCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRate,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjType,szDescString128)
Values (@HiveID,0,50,0,0,0,0,1,1,@MonsterCodeName)
Set Identity_Insert Tab_RefHive Off

--# [3] dbo.Tab_RefNest
Set Identity_Insert Tab_RefNest On
-- Spot 1 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName1)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region1,@PosX1,@PosY1,@PosZ1,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 2 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName2)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region2,@PosX2,@PosY2,@PosZ2,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 3 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName3)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region3,@PosX3,@PosY3,@PosZ3,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 4 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName4)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region4,@PosX4,@PosY4,@PosZ4,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 5 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName5)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region5,@PosX5,@PosY5,@PosZ5,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 6 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName6)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region6,@PosX6,@PosY6,@PosZ6,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 7 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName7)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region7,@PosX7,@PosY7,@PosZ7,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 8 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName8)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region8,@PosX8,@PosY8,@PosZ8,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 9 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName9)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region9,@PosX9,@PosY9,@PosZ9,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 10 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName10)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region10,@PosX10,@PosY10,@PosZ10,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 11 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName11)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region11,@PosX11,@PosY11,@PosZ11,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 12 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName12)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region12,@PosX12,@PosY12,@PosZ12,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 13 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName13)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region13,@PosX13,@PosY13,@PosZ13,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 14 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName14)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region14,@PosX14,@PosY14,@PosZ14,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 15 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName15)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region15,@PosX15,@PosY15,@PosZ15,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 16 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName16)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region16,@PosX16,@PosY16,@PosZ16,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 17 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName17)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region17,@PosX17,@PosY17,@PosZ17,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 18 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName18)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region18,@PosX18,@PosY18,@PosZ18,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 19 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName19)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region19,@PosX19,@PosY19,@PosZ19,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 20 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName20)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 21 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName21)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 22 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName22)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 23 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName23)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 24 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName24)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 25 :
IF EXISTS (Select * From _Char Where CharName16 = @CharName25)
Begin
Set @NestID = (Select Max(dwNestID) From Tab_RefNest)+1
Insert InTo Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,0,@MinDealy,@MaxDelay,1,0,1,0)
End
Set Identity_Insert Tab_RefNest Off
print ''    print ''    print 'Query executing successfuly!'
End
Else Begin
print ''    print ''
Print 'Monster Code Name or Character names not exists' print ''
Print 'Please retype the correct settings to query executing successfuly.'
End
دلوقتي انا ضيفت اسم ال mob وكتبت اسم char واحد بس
المفروض ان ينزل 50 وحش زي ما مكتوب في الquery نزل وحش واحد بس




قديم 26-07-2020, 01:47 AM   #6

Mad_z7
عضو جديد



الصورة الرمزية Mad_z7


• الانـتـسـاب » Jun 2020
• رقـم العـضـويـة » 152721
• المشـــاركـات » 19
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 14
Mad_z7 صـاعـد

Mad_z7 غير متواجد حالياً



افتراضي رد: Mobs



جرب خليهم 5 كدا وشوف




قديم 26-07-2020, 07:57 PM   #7

iRock
عضو جديد



الصورة الرمزية iRock


• الانـتـسـاب » Feb 2010
• رقـم العـضـويـة » 69996
• المشـــاركـات » 47
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر »
• الـجـنـس »
• نقـاط التقييم » 17
iRock صـاعـد

iRock غير متواجد حالياً



افتراضي رد: Mobs



الكويري اللي انت استخدمته اساسا معمول لليونيكات عشان تزل في مكان عشواءي من الاماكن اللي انت حدتها
اللي هو ده,استخدمه لليونيكات افضل و مافيهوش اي مشاكل
عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]

عشان تصلح اللي انت عملته استخدم الكويري ده
كود PHP:
use SRO_VT_SHARD
declare @tacticsid int
declare @hiveid int
set 
@tacticsid = (select from Tab_RefTactics where dwObjID 'اكتب هنا رقم الموب')
set @hiveid = (select from Tab_RefTactics where dwTacticsID = @tacticsid)
update Tab_RefNest set nChampionGenPercentage 10 where dwTacticsID = @tacticsid
update Tab_RefNest set dwMaxTotalCount 
10 where dwTacticsID = @tacticsid ----- اكتب هنا(بدل رقم 10)باكتر عدد الموبات ينزلوا في نفس الوقت
update Tab_RefNest set dwDelayTimeMin 
1 where dwTacticsID = @tacticsid
update Tab_RefNest set dwDelayTimeMax 
3 where dwTacticsID = @tacticsid
update Tab_RefHive set dwOverwriteMaxTotalCount 
0 where dwHiveID = @hiveid 
و بعد كده عشان تضيف موبات جديده استخدم الكويري ده
كود PHP:
USE SRO_VT_SHARD /* Add Unique Multiple Spots By iLegend */

/* 
   This Query can uses for add spawn unique spot(s) by 20x spot.
   Leave Character names don't change if u want few of spots not all of 20x
   For example :
   if u want to add unique name MOB_RM_ROC in only 5 selected spots.
   create 5 characters and go with them to the selected 5 spots in-game then logout these characters,
   then edit here first 5 characters names to get 5x spots, monster codename 'MOB_RM_ROC' , spawn time and radius
   if u need more or few spots than 5x just change character name for an exists characters.
*/

-- Declare expression.
Declare @
MonsterCodeName Varchar(Max) , @MinDealy Int , @MaxDelay Int , @InitRadius Int , @Radius Int , @NestID Int ,
@
HiveID Int , @TacticsID Int , @MonsterID Int , @CharName1 Varchar(64) , @Region1 Int , @PosX1 Int , @PosY1 Int , @PosZ1 Int ,
@
CharName2 Varchar(64) , @Region2 Int , @PosX2 Int , @PosY2 Int , @PosZ2 Int , @CharName3 Varchar(64) , @Region3 Int , @PosX3 Int , @PosY3 Int , @PosZ3 Int ,
@
CharName4 Varchar(64) , @Region4 Int , @PosX4 Int , @PosY4 Int , @PosZ4 Int , @CharName5 Varchar(64) , @Region5 Int , @PosX5 Int , @PosY5 Int , @PosZ5 Int ,
@
CharName6 Varchar(64) , @Region6 Int , @PosX6 Int , @PosY6 Int , @PosZ6 Int , @CharName7 Varchar(64) , @Region7 Int , @PosX7 Int , @PosY7 Int , @PosZ7 Int ,
@
CharName8 Varchar(64) , @Region8 Int , @PosX8 Int , @PosY8 Int , @PosZ8 Int , @CharName9 Varchar(64) , @Region9 Int , @PosX9 Int , @PosY9 Int , @PosZ9 Int ,
@
CharName10 Varchar(64) , @Region10 Int , @PosX10 Int , @PosY10 Int , @PosZ10 Int , @CharName11 Varchar(64) , @Region11 Int , @PosX11 Int , @PosY11 Int , @PosZ11 Int ,
@
CharName12 Varchar(64) , @Region12 Int , @PosX12 Int , @PosY12 Int , @PosZ12 Int , @CharName13 Varchar(64) , @Region13 Int , @PosX13 Int , @PosY13 Int , @PosZ13 Int ,
@
CharName14 Varchar(64) , @Region14 Int , @PosX14 Int , @PosY14 Int , @PosZ14 Int , @CharName15 Varchar(64) , @Region15 Int , @PosX15 Int , @PosY15 Int , @PosZ15 Int ,
@
CharName16 Varchar(64) , @Region16 Int , @PosX16 Int , @PosY16 Int , @PosZ16 Int , @CharName17 Varchar(64) , @Region17 Int , @PosX17 Int , @PosY17 Int , @PosZ17 Int ,
@
CharName18 Varchar(64) , @Region18 Int , @PosX18 Int , @PosY18 Int , @PosZ18 Int , @CharName19 Varchar(64) , @Region19 Int , @PosX19 Int , @PosY19 Int , @PosZ19 Int ,
@
CharName20 Varchar(64) , @Region20 Int , @PosX20 Int , @PosY20 Int , @PosZ20 Int
--------------------------------------------------------
/* Put Your Correct Settings Here */
Set @MonsterCodeName 'MOB_AR_129' -- Monster CodeName128 must be a correct monster codename to execute the query
Set 
@MinDealy 1  -- Minimum time before appears in seconds
Set 
@MaxDelay 3  -- Maximum time before appears in seconds
Set 
@InitRadius 700  -- Radius around spot unique can generated at
Set 
@Radius 700  -- Radius around spot Unique can move in
 
-- 20x Character names to get monster position X Y Z
Set 
@CharName1 'u1'    Set @CharName2 'u2'    Set @CharName3 'u3'    Set @CharName4 'u4'
Set @CharName5 'u5'    Set @CharName6 'u6'    Set @CharName7 'u7'    Set @CharName8 'u8'
Set @CharName9 'u9'    Set @CharName10 'u10' Set @CharName12 'u12'  Set @CharName11 'u21'
Set @CharName13 'u13'    Set @CharName14 'u14'    Set @CharName15 'u15'    Set @CharName16 'u16'
Set @CharName17 'u17' Set @CharName18 'u18'  Set @CharName19 'u19' Set @CharName20 'u20'  
/* End Of Settings Press F5 To Execute The Query */
--------------------------------------------------------
/* Get parameters for tables Inserting */
Set @MonsterID = (Select ID From _RefObjCommon Where CodeName128 = @MonsterCodeName)
Set @HiveID = (Select Max(dwHiveIDFrom Tab_RefHive)+1
Set 
@TacticsID = (Select Max(dwTacticsIDFrom Tab_RefTactics)+1
Set 
@Region1  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName1)    Set @PosX1  = (Select (POSXFrom _Char Where CharName16 = @CharName1)    Set @PosY1  = (Select (POSYFrom _Char Where CharName16 = @CharName1)    Set @PosZ1  = (Select (POSZFrom _Char Where CharName16 = @CharName1)
Set @Region2  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName2)    Set @PosX2  = (Select (POSXFrom _Char Where CharName16 = @CharName2)    Set @PosY2  = (Select (POSYFrom _Char Where CharName16 = @CharName2)    Set @PosZ2  = (Select (POSZFrom _Char Where CharName16 = @CharName2)
Set @Region3  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName3)    Set @PosX3  = (Select (POSXFrom _Char Where CharName16 = @CharName3)    Set @PosY3  = (Select (POSYFrom _Char Where CharName16 = @CharName3)    Set @PosZ3  = (Select (POSZFrom _Char Where CharName16 = @CharName3)
Set @Region4  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName4)    Set @PosX4  = (Select (POSXFrom _Char Where CharName16 = @CharName4)    Set @PosY4  = (Select (POSYFrom _Char Where CharName16 = @CharName4)    Set @PosZ4  = (Select (POSZFrom _Char Where CharName16 = @CharName4)
Set @Region5  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName5)    Set @PosX5  = (Select (POSXFrom _Char Where CharName16 = @CharName5)    Set @PosY5  = (Select (POSYFrom _Char Where CharName16 = @CharName5)    Set @PosZ5  = (Select (POSZFrom _Char Where CharName16 = @CharName5)
Set @Region6  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName6)    Set @PosX6  = (Select (POSXFrom _Char Where CharName16 = @CharName6)    Set @PosY6  = (Select (POSYFrom _Char Where CharName16 = @CharName6)    Set @PosZ6  = (Select (POSZFrom _Char Where CharName16 = @CharName6)
Set @Region7  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName7)    Set @PosX7  = (Select (POSXFrom _Char Where CharName16 = @CharName7)    Set @PosY7  = (Select (POSYFrom _Char Where CharName16 = @CharName7)    Set @PosZ7  = (Select (POSZFrom _Char Where CharName16 = @CharName7)
Set @Region8  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName8)    Set @PosX8  = (Select (POSXFrom _Char Where CharName16 = @CharName8)    Set @PosY8  = (Select (POSYFrom _Char Where CharName16 = @CharName8)    Set @PosZ8  = (Select (POSZFrom _Char Where CharName16 = @CharName8)
Set @Region9  = (Select (LatestRegionFrom _Char Where CharName16 = @CharName9)    Set @PosX9  = (Select (POSXFrom _Char Where CharName16 = @CharName9)    Set @PosY9  = (Select (POSYFrom _Char Where CharName16 = @CharName9)    Set @PosZ9  = (Select (POSZFrom _Char Where CharName16 = @CharName9)
Set @Region10 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName10)    Set @PosX10 = (Select (POSXFrom _Char Where CharName16 = @CharName10)    Set @PosY10 = (Select (POSYFrom _Char Where CharName16 = @CharName10)    Set @PosZ10 = (Select (POSZFrom _Char Where CharName16 = @CharName10)
Set @Region11 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName11)    Set @PosX11 = (Select (POSXFrom _Char Where CharName16 = @CharName11)    Set @PosY11 = (Select (POSYFrom _Char Where CharName16 = @CharName11)    Set @PosZ11 = (Select (POSZFrom _Char Where CharName16 = @CharName11)
Set @Region12 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName12)    Set @PosX12 = (Select (POSXFrom _Char Where CharName16 = @CharName12)    Set @PosY12 = (Select (POSYFrom _Char Where CharName16 = @CharName12)    Set @PosZ12 = (Select (POSZFrom _Char Where CharName16 = @CharName12)
Set @Region13 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName13)    Set @PosX13 = (Select (POSXFrom _Char Where CharName16 = @CharName13)    Set @PosY13 = (Select (POSYFrom _Char Where CharName16 = @CharName13)    Set @PosZ13 = (Select (POSZFrom _Char Where CharName16 = @CharName13)
Set @Region14 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName14)    Set @PosX14 = (Select (POSXFrom _Char Where CharName16 = @CharName14)    Set @PosY14 = (Select (POSYFrom _Char Where CharName16 = @CharName14)    Set @PosZ14 = (Select (POSZFrom _Char Where CharName16 = @CharName14)
Set @Region15 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName15)    Set @PosX15 = (Select (POSXFrom _Char Where CharName16 = @CharName15)    Set @PosY15 = (Select (POSYFrom _Char Where CharName16 = @CharName15)    Set @PosZ15 = (Select (POSZFrom _Char Where CharName16 = @CharName15)
Set @Region16 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName16)    Set @PosX16 = (Select (POSXFrom _Char Where CharName16 = @CharName16)    Set @PosY16 = (Select (POSYFrom _Char Where CharName16 = @CharName16)    Set @PosZ16 = (Select (POSZFrom _Char Where CharName16 = @CharName16)
Set @Region17 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName17)    Set @PosX17 = (Select (POSXFrom _Char Where CharName16 = @CharName17)    Set @PosY17 = (Select (POSYFrom _Char Where CharName16 = @CharName17)    Set @PosZ17 = (Select (POSZFrom _Char Where CharName16 = @CharName17)
Set @Region18 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName18)    Set @PosX18 = (Select (POSXFrom _Char Where CharName16 = @CharName18)    Set @PosY18 = (Select (POSYFrom _Char Where CharName16 = @CharName18)    Set @PosZ18 = (Select (POSZFrom _Char Where CharName16 = @CharName18)
Set @Region19 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName19)    Set @PosX19 = (Select (POSXFrom _Char Where CharName16 = @CharName19)    Set @PosY19 = (Select (POSYFrom _Char Where CharName16 = @CharName19)    Set @PosZ19 = (Select (POSZFrom _Char Where CharName16 = @CharName19)
Set @Region20 = (Select (LatestRegionFrom _Char Where CharName16 = @CharName20)    Set @PosX20 = (Select (POSXFrom _Char Where CharName16 = @CharName20)    Set @PosY20 = (Select (POSYFrom _Char Where CharName16 = @CharName20)    Set @PosZ20 = (Select (POSZFrom _Char Where CharName16 = @CharName20)
--------------------------------------------------------
/* Start tables inserting values */
IF EXISTS (Select From _RefObjCommon Where CodeName128 = @MonsterCodeName) And
(
EXISTS (Select From _Char Where CharName16 = @CharName1) Or EXISTS (Select From _Char Where CharName16 = @CharName2) Or EXISTS (Select From _Char Where CharName16 = @CharName3) Or EXISTS (Select From _Char Where CharName16 = @CharName4) Or
 
EXISTS (Select From _Char Where CharName16 = @CharName5) Or EXISTS (Select From _Char Where CharName16 = @CharName6) Or EXISTS (Select From _Char Where CharName16 = @CharName7) Or EXISTS (Select From _Char Where CharName16 = @CharName8) Or
 
EXISTS (Select From _Char Where CharName16 = @CharName9) Or EXISTS (Select From _Char Where CharName16 = @CharName10) Or  EXISTS (Select From _Char Where CharName16 = @CharName11) Or EXISTS (Select From _Char Where CharName16 = @CharName12) Or
 
EXISTS (Select From _Char Where CharName16 = @CharName13) Or EXISTS (Select From _Char Where CharName16 = @CharName14) Or  EXISTS (Select From _Char Where CharName16 = @CharName15) Or EXISTS (Select From _Char Where CharName16 = @CharName16) Or
 
EXISTS (Select From _Char Where CharName16 = @CharName17) Or EXISTS (Select From _Char Where CharName16 = @CharName18) Or  EXISTS (Select From _Char Where CharName16 = @CharName19) Or EXISTS (Select From _Char Where CharName16 = @CharName20))
Begin
--# [1] dbo.Tab_RefTactics
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,szDescString128)
Values (@TacticsID,@MonsterID,0,150,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,0,@MonsterCodeName)
Set Identity_Insert Tab_RefTactics Off

--# [2] dbo.Tab_RefHive
Set Identity_Insert Tab_RefHive On
Insert InTo Tab_RefHive 
(dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTotalCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRate,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjType,szDescString128)
Values (@HiveID,0,0,0,0,0,0,1,1,@MonsterCodeName)
Set Identity_Insert Tab_RefHive Off

--# [3] dbo.Tab_RefNest
Set Identity_Insert Tab_RefNest On
-- Spot 1 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName1)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region1,@PosX1,@PosY1,@PosZ1,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 2 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName2)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region2,@PosX2,@PosY2,@PosZ2,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 3 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName3)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region3,@PosX3,@PosY3,@PosZ3,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 4 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName4)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region4,@PosX4,@PosY4,@PosZ4,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 5 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName5)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region5,@PosX5,@PosY5,@PosZ5,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 6 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName6)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region6,@PosX6,@PosY6,@PosZ6,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 7 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName7)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region7,@PosX7,@PosY7,@PosZ7,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 8 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName8)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region8,@PosX8,@PosY8,@PosZ8,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 9 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName9)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region9,@PosX9,@PosY9,@PosZ9,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 10 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName10)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region10,@PosX10,@PosY10,@PosZ10,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 11 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName11)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region11,@PosX11,@PosY11,@PosZ11,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 12 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName12)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region12,@PosX12,@PosY12,@PosZ12,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 13 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName13)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region13,@PosX13,@PosY13,@PosZ13,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 14 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName14)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region14,@PosX14,@PosY14,@PosZ14,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 15 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName15)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region15,@PosX15,@PosY15,@PosZ15,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 16 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName16)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region16,@PosX16,@PosY16,@PosZ16,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 17 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName17)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region17,@PosX17,@PosY17,@PosZ17,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 18 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName18)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region18,@PosX18,@PosY18,@PosZ18,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,1,0,1,0)
End
-- Spot 19 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName19)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region19,@PosX19,@PosY19,@PosZ19,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
-- Spot 20 :
IF 
EXISTS (Select From _Char Where CharName16 = @CharName20)
Begin
Set 
@NestID = (Select Max(dwNestIDFrom Tab_RefNest)+1
Insert InTo Tab_RefNest 
(dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType)
Values (@NestID,@HiveID,@TacticsID,@Region20,@PosX20,@PosY20,@PosZ20,0,@Radius,@InitRadius,10,@MinDealy,@MaxDelay,10,0,1,0)
End
Set Identity_Insert Tab_RefNest Off
print ''    print ''    print 'Query executing successfuly!'
End
Else Begin
print ''    print ''
Print 'Monster Code Name or Character names not exists' print ''
Print 'Please retype the correct settings to query executing successfuly.'
End 




قديم 27-07-2020, 03:56 PM   #8

mohamed habib
عضو فعال



الصورة الرمزية mohamed habib


• الانـتـسـاب » Nov 2013
• رقـم العـضـويـة » 115405
• المشـــاركـات » 356
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 20
mohamed habib صـاعـد

mohamed habib غير متواجد حالياً



افتراضي رد: Mobs



شكرا تم الحل زودت عدد سطور ال refnest وزودت عدد الموب برده من ال refnest




قديم 01-08-2020, 09:37 AM   #9

H I T L E R





• الانـتـسـاب » Mar 2017
• رقـم العـضـويـة » 132467
• المشـــاركـات » 326
• الـدولـة » Samanoud
• الـهـوايـة » Design / Developer
• اسـم الـسـيـرفـر » Private Server
• الـجـنـس » Male
• نقـاط التقييم » 10
H I T L E R صـاعـد

H I T L E R غير متواجد حالياً



افتراضي رد: Mobs



##




موضوع مغلق


يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر)
 
أدوات الموضوع
انواع عرض الموضوع

ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى الردود آخر مشاركة
عاوز امسح mobs ال في Samarkand واغيرها mobs lvl 100 و لفل 98 gedso01 قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة 3 10-04-2020 09:47 PM
مساعده لو تكرمت ازاي اغير lv mobs و remove mobs gedso01 قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة 1 08-04-2020 02:51 PM
الجيم عندى مفهاش Mobs عايز اضيف Mobs DraCula1337 قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة 4 17-07-2018 10:19 PM
Plvl In MObs 94 & Mobs 88 mido_abdalltef Ceres 2 03-01-2011 03:10 PM


الساعة الآن 02:16 AM.