i need learn some think i knew it hard but lets try
roc when he getting hit make spawn to devil Unique
and Unique Boos at FGW she make spawn 4 Unique
so i need learn how i can add mob or Unique spawn from Unique that's all
thanks for every one well try to Help ^^
يا ريس خش قسم MEDIA PK2 اتعلم براحتك وياريت نكلم عربى عشان ممكن تفيد حد
___
Unique Spawn جديد
كود PHP:
]
DECLARE @UNIQUE VARCHAR (129)
DECLARE @CHAR**** VARCHAR (64)
DECLARE @mindealy INT
DECLARE @maxdelay int
DECLARE @INITRADIUS INT
DECLARE @RADIUS int
DECLARE @MAXNEST int = (SELECT MAX (dwNestID) FROM Tab_RefNest)+1
DECLARE @MAXHIVE int = (SELECT MAX (dwHiveID) FROM Tab_RefHive)+1
DECLARE @MAXTACTICS int = (SELECT MAX (dwTacticsID) FROM Tab_RefTactics)+1
SET @UNIQUE = 'MOB_CH_MANGNYANG_EVIL' -- Unique code **** from _RefobjCommon table
SET @CHAR**** = '[GM]Shutdown' -- Character **** from _Char table to get mob position X Y Z
SET @mindealy = 900 -- Minimum time before appears in seconds
SET @maxdelay = 1200 -- Maximum time before appears in seconds
SET @INITRADIUS = 10 -- Radius around spot unique can generated at
SET @RADIUS = 50 -- Radius around spot Unique can move in
Declare @MOBID int SET @MOBID = (SELECT ID FROM _RefObjCommon WHERE Code****128 = @UNIQUE)
SET IDENTITY_INSERT Tab_RefTactics ON
INSERT INTO Tab_RefTactics (dwTacticsID,dwObjID,btAIQoS,nMaxStamina,btMaxStaminaVariance,nSightRange,btAggressType,AggressData,btChangeTarget,btHelpRequestTo,btHelpResponseTo,btBattleStyle,BattleStyleData,btDiversionBasis,DiversionBasisData1,DiversionBasisData2,DiversionBasisData3,DiversionBasisData4,DiversionBasisData5,DiversionBasisData6,DiversionBasisData7,DiversionBasisData8,btDiversionKeepBasis,DiversionKeepBasisData1,DiversionKeepBasisData2,DiversionKeepBasisData3,DiversionKeepBasisData4,DiversionKeepBasisData5,DiversionKeepBasisData6,DiversionKeepBasisData7,DiversionKeepBasisData8,btKeepDistance,KeepDistanceData,btTraceType,btTraceBoundary,TraceData,btHomingType,HomingData,btAggressTypeOnHoming,btFleeType,dwChampionTacticsID,AdditionOptionFlag,szDescString128) VALUES
(@MAXTACTICS,@MOBID,0,500,50,200,0,0,2,2,2,0,0,5,0,0,0,0,0,30,0,0,4,0,0,0,0,0,0,0,0,0,0,0,1,500,0,0,2,0,0,112,@UNIQUE)
SET IDENTITY_INSERT Tab_RefTactics OFF
SET IDENTITY_INSERT Tab_RefHive ON
INSERT INTO Tab_RefHive (dwHiveID,btKeepMonsterCountType,dwOverwriteMaxTotalCount,fMonsterCountPerPC,dwSpawnSpeedIncreaseRate,dwMaxIncreaseRate,btFlag,GameWorldID,HatchObjType,szDescString128) VALUES
(@MAXHIVE,0,1,0,0,0,0,1,1,@UNIQUE)
SET IDENTITY_INSERT Tab_RefHive OFF
DECLARE @REGION INT SET @REGION = (SELECT (LatestRegion) FROM _Char WHERE Char****16 = @CHAR****)
DECLARE @POSX INT SET @POSX = (SELECT (POSX) FROM _Char WHERE Char****16 = @CHAR****)
DECLARE @POSY INT SET @POSY = (SELECT (POSY) FROM _Char WHERE Char****16 = @CHAR****)
DECLARE @POSZ INT SET @POSZ = (SELECT (POSZ) FROM _Char WHERE Char****16 = @CHAR****)
SET IDENTITY_INSERT Tab_RefNest ON
INSERT INTO Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,btType) VALUES
(@MAXNEST,@MAXHIVE,@MAXTACTICS,@REGION,@POSX,@POSY,@POSZ,0,@RADIUS,@INITRADIUS,0,@mindealy,@maxdelay,1,0,1,0)
SET IDENTITY_INSERT Tab_RefNest OFF