USE [SRO_VT_SHARD] GO ----------------------------------------------------------------------------------- Declare @CharName VarChar(max) --Dont Touch Here Declare @Level BigInt --Dont Touch Here ----------------------------------------------------------------------------------- SET @CharName= 'Player' --Type Here Your Charname ----------------------------------------------------------------------------------- SET @Level = '120' --Level Here You Want Max [140]. ----------------------------------------------------------------------------------- UPDATE [Dbo].[_Char] ----------------------------------------------------------------------------------- SET InventorySize = '109', --Inventory Size Min 45 max 109 ----------------------------------------------------------------------------------- RemainGold = RemainGold + '1', --GOLD to give ----------------------------------------------------------------------------------- HwanLevel = '0', --Zerk Level ( 0 to none ) ----------------------------------------------------------------------------------- RemainSkillPoint = RemainSkillPoint + '101000', --SkillPoint to give ----------------------------------------------------------------------------------- CurLevel = @Level, --Dont Touch Here MaxLevel = @Level, --Dont Touch Here ----------------------------------------------------------------------------------- Strength = @Level+19, Intellect = @Level+19, ----------------------------------------------------------------------------------- RemainStatPoint = @Level * 3 -3, ----------------------------------------------------------------------------------- RemainHwanCount = 5, --RemainHwanCount ----------------------------------------------------------------------------------- ExpOffset = 1-- Exp ----------------------------------------------------------------------------------- --------------------###### Dont Touch Here ######----------------- WHERE CharName16 = @CharName
كويري اضافة ايتم لشخصية معينة
----------------------------------------
كود PHP:
USE SRO_VT_SHARD GO ----------------------------------------------------------------------------------------- --Usage: --exec _ADD_ITEM_EXTERN 'CharName','ItemsCodeName',Count,OptLvl ----------------------------------------------------------------------------------------- declare @CharName varchar(64) ----------------------------------------------------------------------------------------- set @CharName = 'Player' --Charname Here ----------------------------------------------------------------------------------------- exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_MOVE_SPEED_UP_100',1000,1
كويري تمسح بيها ايتم من البلاير (الشخصيات)
---------------------------------------------------------
كود PHP:
USE [SRO_VT_SHARD] GO -------------------------------
Exec [Dbo].[_SEEK_N_DESTROY_ITEM] ['ITEM Code Name' ] --Type Here Code Name
لو عاوز تضيف سلك (SILK) للـPLayers
-----------------------------------------
كود PHP:
USE SRO_VT_ACCOUNT; GO INSERT INTO SK_SILK (JID, silk_own, silk_gift, silk_point) SELECT JID, '0', '0', '0' FROM TB_User WHERE not exists (select * from SK_Silk WHERE SK_SILK.JID = TB_User.JID); -------------------------------------------------------- UPDATE SK_Silk SET silk_own=silk_own+10 --Change +10 To Amount You Want
لو عاوز تعمل Ban لشخصية من السيرفر
--------------------------------------------
كود PHP:
USE [SRO_VT_SHARD] GO -------------------------------- DECLARE @ChrID INT; DECLARE @CharName VARCHAR(64); DECLARE @AccJID INT; --------------------------------- SET @CharName = 'CharNameHere' ---type Charname --------------------------------- SET @ChrID=(SELECT CharID FROM _Char WHERE CharName16=@CharName) SET @AccJID=(SELECT UserJID FROM _User WHERE CharID=@ChrID) ----------------------------------------------------------------- USE SRO_VT_ACCOUNT DECLARE @ID VARCHAR (64) DECLARE @Reason VARCHAR(128) DECLARE @Begin DATETIME DECLARE @End DATETIME SET @ID = (Select STRuserID FROM TB_User Where JID = @AccJID)
--------------------------------- SET @Reason = 'Ban Reason Here' SET @Begin = '2012-05-01 00:00:00.000' -- Time Begin -- SET @End = '2040-01-01 00:00:00.000' -- Time End -- --------------------------------- ---------------------------
----------------------------------------------------------------- SELECT StrUserID FROM TB_User WHERE JID = @AccJID -----------------------------------------------------------------
لو عاوز كل الموجودين فى السيرفر يرجعوا Janjan
------------------------------------------------------------
لو عاوز تضيف buff academy لشخصية
-----------------------------------------------
كود PHP:
USE [SRO_VT_SHARD] DECLARE @CharName Varchar (MAX) DECLARE @Graduates INT DECLARE @HonorPoints INT DECLARE @CharID INT DECLARE @CampID INT ---------------------------------------------------------------------------------------------------- SET @CharName = 'Player' --Player Name Here ---------------------------------------------------------------------------------------------------- SET @CharID = (Select CharID FROM _Char Where CharName16 = @CharName) SET @CampID = (Select TOP 1 CampID FROM _TrainingCampBuffStatus Where RecipientCharID = @CharID) SET @Graduates = '1234[Number Of Graduates] ' SET @HonorPoints= @Graduates * 39
--------------------
UPDATE [Dbo].[_TrainingCamp] SET GraduateCount = @Graduates WHERE [Dbo].[_TrainingCamp].[ID] = @CampID UPDATE [dbo].[_TrainingCampMember] SET HonorPoint = @HonorPoints WHERE [dbo].[_TrainingCampMember].[CampID]=@CampID
لو عاوز تغير التيتل نيم للشخصية
----------------------------------------
كود PHP:
USE SRO_VT_SHARD GO ------------------------- Update _Char SET HWANLevel = '0' Where Charname16 Like 'Player' --Change Hwan Code And Player Name
لو عاوز تفتح كل الاسيكلات للجي ام
---------------------------------------------
كود PHP:
USE [SRO_VT_SHARD] DECLARE @CharName varchar(255) DECLARE @CharID INT ---------------------------------------------------------- SET @CharName='Player' --CharName ---------------------------------------------------------- SELECT @CharID = CharID FROM _Char WHERE CharName16=@CharName ------------------------------------------------------------------ UPDATE _CharSkillMastery SET Level = '120' --Mastry ------------------------------------------------------------------ WHERE CharID=@CharID INSERT INTO _CharSkill VALUES (@CharID,1,1) INSERT INTO _CharSkill VALUES (@CharID,2,1) INSERT INTO _CharSkill VALUES (@CharID,40,1) INSERT INTO _CharSkill VALUES (@CharID,70,1) INSERT INTO _CharSkill VALUES (@CharID,298,1) INSERT INTO _CharSkill VALUES (@CharID,306,1) INSERT INTO _CharSkill VALUES (@CharID,314,1) INSERT INTO _CharSkill VALUES (@CharID,322,1) INSERT INTO _CharSkill VALUES (@CharID,346,1) INSERT INTO _CharSkill VALUES (@CharID,378,1) INSERT INTO _CharSkill VALUES (@CharID,418,1) INSERT INTO _CharSkill VALUES (@CharID,463,1) INSERT INTO _CharSkill VALUES (@CharID,558,1) INSERT INTO _CharSkill VALUES (@CharID,569,1) INSERT INTO _CharSkill VALUES (@CharID,580,1) INSERT INTO _CharSkill VALUES (@CharID,588,1) INSERT INTO _CharSkill VALUES (@CharID,596,1) INSERT INTO _CharSkill VALUES (@CharID,604,1) INSERT INTO _CharSkill VALUES (@CharID,647,1) INSERT INTO _CharSkill VALUES (@CharID,655,1) INSERT INTO _CharSkill VALUES (@CharID,672,1) INSERT INTO _CharSkill VALUES (@CharID,689,1) INSERT INTO _CharSkill VALUES (@CharID,699,1) INSERT INTO _CharSkill VALUES (@CharID,708,1) INSERT INTO _CharSkill VALUES (@CharID,716,1) INSERT INTO _CharSkill VALUES (@CharID,724,1) INSERT INTO _CharSkill VALUES (@CharID,735,1) INSERT INTO _CharSkill VALUES (@CharID,746,1) INSERT INTO _CharSkill VALUES (@CharID,757,1) INSERT INTO _CharSkill VALUES (@CharID,765,1) INSERT INTO _CharSkill VALUES (@CharID,773,1) INSERT INTO _CharSkill VALUES (@CharID,781,1) INSERT INTO _CharSkill VALUES (@CharID,789,1) INSERT INTO _CharSkill VALUES (@CharID,797,1) INSERT INTO _CharSkill VALUES (@CharID,805,1) INSERT INTO _CharSkill VALUES (@CharID,813,1) INSERT INTO _CharSkill VALUES (@CharID,821,1) INSERT INTO _CharSkill VALUES (@CharID,829,1) INSERT INTO _CharSkill VALUES (@CharID,853,1) INSERT INTO _CharSkill VALUES (@CharID,885,1) INSERT INTO _CharSkill VALUES (@CharID,925,1) INSERT INTO _CharSkill VALUES (@CharID,933,1) INSERT INTO _CharSkill VALUES (@CharID,943,1) INSERT INTO _CharSkill VALUES (@CharID,952,1) INSERT INTO _CharSkill VALUES (@CharID,960,1) INSERT INTO _CharSkill VALUES (@CharID,968,1) INSERT INTO _CharSkill VALUES (@CharID,976,1) INSERT INTO _CharSkill VALUES (@CharID,984,1) INSERT INTO _CharSkill VALUES (@CharID,992,1) INSERT INTO _CharSkill VALUES (@CharID,1003,1) INSERT INTO _CharSkill VALUES (@CharID,1014,1) INSERT INTO _CharSkill VALUES (@CharID,1025,1) INSERT INTO _CharSkill VALUES (@CharID,1033,1) INSERT INTO _CharSkill VALUES (@CharID,1041,1) INSERT INTO _CharSkill VALUES (@CharID,1049,1) INSERT INTO _CharSkill VALUES (@CharID,1053,1) INSERT INTO _CharSkill VALUES (@CharID,1057,1) INSERT INTO _CharSkill VALUES (@CharID,1065,1) INSERT INTO _CharSkill VALUES (@CharID,1073,1) INSERT INTO _CharSkill VALUES (@CharID,1081,1) INSERT INTO _CharSkill VALUES (@CharID,1089,1) INSERT INTO _CharSkill VALUES (@CharID,1099,1) INSERT INTO _CharSkill VALUES (@CharID,1108,1) INSERT INTO _CharSkill VALUES (@CharID,1116,1) INSERT INTO _CharSkill VALUES (@CharID,1124,1) INSERT INTO _CharSkill VALUES (@CharID,1132,1) INSERT INTO _CharSkill VALUES (@CharID,1140,1) INSERT INTO _CharSkill VALUES (@CharID,1148,1) INSERT INTO _CharSkill VALUES (@CharID,1153,1) INSERT INTO _CharSkill VALUES (@CharID,1158,1) INSERT INTO _CharSkill VALUES (@CharID,1163,1) INSERT INTO _CharSkill VALUES (@CharID,1168,1) INSERT INTO _CharSkill VALUES (@CharID,1173,1) INSERT INTO _CharSkill VALUES (@CharID,1178,1) INSERT INTO _CharSkill VALUES (@CharID,1189,1) INSERT INTO _CharSkill VALUES (@CharID,1200,1) INSERT INTO _CharSkill VALUES (@CharID,1217,1) INSERT INTO _CharSkill VALUES (@CharID,1234,1) INSERT INTO _CharSkill VALUES (@CharID,1244,1) INSERT INTO _CharSkill VALUES (@CharID,1253,1) INSERT INTO _CharSkill VALUES (@CharID,1261,1) INSERT INTO _CharSkill VALUES (@CharID,1269,1) INSERT INTO _CharSkill VALUES (@CharID,1271,1) INSERT INTO _CharSkill VALUES (@CharID,1273,1) INSERT INTO _CharSkill VALUES (@CharID,1275,1) INSERT INTO _CharSkill VALUES (@CharID,1286,1) INSERT INTO _CharSkill VALUES (@CharID,1297,1) INSERT INTO _CharSkill VALUES (@CharID,1308,1) INSERT INTO _CharSkill VALUES (@CharID,1316,1) INSERT INTO _CharSkill VALUES (@CharID,1324,1) INSERT INTO _CharSkill VALUES (@CharID,1332,1) INSERT INTO _CharSkill VALUES (@CharID,1337,1) INSERT INTO _CharSkill VALUES (@CharID,1342,1) INSERT INTO _CharSkill VALUES (@CharID,1350,1) INSERT INTO _CharSkill VALUES (@CharID,1358,1) INSERT INTO _CharSkill VALUES (@CharID,1368,1) INSERT INTO _CharSkill VALUES (@CharID,1377,1) INSERT INTO _CharSkill VALUES (@CharID,1385,1) INSERT INTO _CharSkill VALUES (@CharID,1393,1) INSERT INTO _CharSkill VALUES (@CharID,1398,1) INSERT INTO _CharSkill VALUES (@CharID,1403,1) INSERT INTO _CharSkill VALUES (@CharID,1408,1) INSERT INTO _CharSkill VALUES (@CharID,1410,1) INSERT INTO _CharSkill VALUES (@CharID,1412,1) INSERT INTO _CharSkill VALUES (@CharID,1414,1) INSERT INTO _CharSkill VALUES (@CharID,1422,1) INSERT INTO _CharSkill VALUES (@CharID,1430,1) INSERT INTO _CharSkill VALUES (@CharID,1438,1) INSERT INTO _CharSkill VALUES (@CharID,1443,1) INSERT INTO _CharSkill VALUES (@CharID,1448,1) INSERT INTO _CharSkill VALUES (@CharID,1465,1) INSERT INTO _CharSkill VALUES (@CharID,1482,1) INSERT INTO _CharSkill VALUES (@CharID,1499,1) INSERT INTO _CharSkill VALUES (@CharID,1509,1) INSERT INTO _CharSkill VALUES (@CharID,1518,1) INSERT INTO _CharSkill VALUES (@CharID,1526,1) INSERT INTO _CharSkill VALUES (@CharID,1534,1) INSERT INTO _CharSkill VALUES (@CharID,1539,1) INSERT INTO _CharSkill VALUES (@CharID,1544,1) INSERT INTO _CharSkill VALUES (@CharID,1549,1) INSERT INTO _CharSkill VALUES (@CharID,1557,1) INSERT INTO _CharSkill VALUES (@CharID,1565,1) INSERT INTO _CharSkill VALUES (@CharID,1573,1) INSERT INTO _CharSkill VALUES (@CharID,1578,1) INSERT INTO _CharSkill VALUES (@CharID,1583,1) INSERT INTO _CharSkill VALUES (@CharID,1588,1) INSERT INTO _CharSkill VALUES (@CharID,1593,1) INSERT INTO _CharSkill VALUES (@CharID,1598,1) INSERT INTO _CharSkill VALUES (@CharID,1609,1) INSERT INTO _CharSkill VALUES (@CharID,1617,1) INSERT INTO _CharSkill VALUES (@CharID,1628,1) INSERT INTO _CharSkill VALUES (@CharID,3149,1) INSERT INTO _CharSkill VALUES (@CharID,3167,1) INSERT INTO _CharSkill VALUES (@CharID,3176,1) INSERT INTO _CharSkill VALUES (@CharID,3224,1) INSERT INTO _CharSkill VALUES (@CharID,3340,1) INSERT INTO _CharSkill VALUES (@CharID,3349,1) INSERT INTO _CharSkill VALUES (@CharID,3364,1) INSERT INTO _CharSkill VALUES (@CharID,3379,1) INSERT INTO _CharSkill VALUES (@CharID,3391,1) INSERT INTO _CharSkill VALUES (@CharID,3406,1) INSERT INTO _CharSkill VALUES (@CharID,3409,1) INSERT INTO _CharSkill VALUES (@CharID,3415,1) INSERT INTO _CharSkill VALUES (@CharID,3430,1) INSERT INTO _CharSkill VALUES (@CharID,3431,1) INSERT INTO _CharSkill VALUES (@CharID,3446,1) INSERT INTO _CharSkill VALUES (@CharID,3461,1) INSERT INTO _CharSkill VALUES (@CharID,3467,1) INSERT INTO _CharSkill VALUES (@CharID,3473,1) INSERT INTO _CharSkill VALUES (@CharID,7139,1) INSERT INTO _CharSkill VALUES (@CharID,7159,1) INSERT INTO _CharSkill VALUES (@CharID,7203,1) INSERT INTO _CharSkill VALUES (@CharID,7322,1) INSERT INTO _CharSkill VALUES (@CharID,7385,1) INSERT INTO _CharSkill VALUES (@CharID,7390,1) INSERT INTO _CharSkill VALUES (@CharID,7392,1) INSERT INTO _CharSkill VALUES (@CharID,7404,1) INSERT INTO _CharSkill VALUES (@CharID,7418,1) INSERT INTO _CharSkill VALUES (@CharID,7474,1) INSERT INTO _CharSkill VALUES (@CharID,7484,1) INSERT INTO _CharSkill VALUES (@CharID,7513,1) INSERT INTO _CharSkill VALUES (@CharID,7520,1) INSERT INTO _CharSkill VALUES (@CharID,7536,1) INSERT INTO _CharSkill VALUES (@CharID,7554,1) INSERT INTO _CharSkill VALUES (@CharID,7577,1) INSERT INTO _CharSkill VALUES (@CharID,7582,1) INSERT INTO _CharSkill VALUES (@CharID,7584,1) INSERT INTO _CharSkill VALUES (@CharID,7596,1) INSERT INTO _CharSkill VALUES (@CharID,7612,1) INSERT INTO _CharSkill VALUES (@CharID,7637,1) INSERT INTO _CharSkill VALUES (@CharID,7651,1) INSERT INTO _CharSkill VALUES (@CharID,7672,1) INSERT INTO _CharSkill VALUES (@CharID,7675,1) INSERT INTO _CharSkill VALUES (@CharID,7688,1) INSERT INTO _CharSkill VALUES (@CharID,7798,1) INSERT INTO _CharSkill VALUES (@CharID,7805,1) INSERT INTO _CharSkill VALUES (@CharID,7829,1) INSERT INTO _CharSkill VALUES (@CharID,7838,1) INSERT INTO _CharSkill VALUES (@CharID,7839,1) INSERT INTO _CharSkill VALUES (@CharID,7853,1) INSERT INTO _CharSkill VALUES (@CharID,7862,1) INSERT INTO _CharSkill VALUES (@CharID,7877,1) INSERT INTO _CharSkill VALUES (@CharID,7881,1) INSERT INTO _CharSkill VALUES (@CharID,7894,1) INSERT INTO _CharSkill VALUES (@CharID,7899,1) INSERT INTO _CharSkill VALUES (@CharID,7907,1) INSERT INTO _CharSkill VALUES (@CharID,7919,1) INSERT INTO _CharSkill VALUES (@CharID,7931,1) INSERT INTO _CharSkill VALUES (@CharID,7938,1) INSERT INTO _CharSkill VALUES (@CharID,7947,1) INSERT INTO _CharSkill VALUES (@CharID,7953,1) INSERT INTO _CharSkill VALUES (@CharID,7959,1) INSERT INTO _CharSkill VALUES (@CharID,7962,1) INSERT INTO _CharSkill VALUES (@CharID,7972,1) INSERT INTO _CharSkill VALUES (@CharID,7980,1) INSERT INTO _CharSkill VALUES (@CharID,7995,1) INSERT INTO _CharSkill VALUES (@CharID,7997,1) INSERT INTO _CharSkill VALUES (@CharID,8010,1) INSERT INTO _CharSkill VALUES (@CharID,8024,1) INSERT INTO _CharSkill VALUES (@CharID,8050,1) INSERT INTO _CharSkill VALUES (@CharID,8084,1) INSERT INTO _CharSkill VALUES (@CharID,8097,1) INSERT INTO _CharSkill VALUES (@CharID,8103,1) INSERT INTO _CharSkill VALUES (@CharID,8109,1) INSERT INTO _CharSkill VALUES (@CharID,8115,1) INSERT INTO _CharSkill VALUES (@CharID,8119,1) INSERT INTO _CharSkill VALUES (@CharID,8129,1) INSERT INTO _CharSkill VALUES (@CharID,8133,1) INSERT INTO _CharSkill VALUES (@CharID,8142,1) INSERT INTO _CharSkill VALUES (@CharID,8150,1) INSERT INTO _CharSkill VALUES (@CharID,8164,1) INSERT INTO _CharSkill VALUES (@CharID,8171,1) INSERT INTO _CharSkill VALUES (@CharID,8183,1) INSERT INTO _CharSkill VALUES (@CharID,8195,1) INSERT INTO _CharSkill VALUES (@CharID,8204,1) INSERT INTO _CharSkill VALUES (@CharID,8214,1) INSERT INTO _CharSkill VALUES (@CharID,8220,1) INSERT INTO _CharSkill VALUES (@CharID,8221,1) INSERT INTO _CharSkill VALUES (@CharID,8238,1) INSERT INTO _CharSkill VALUES (@CharID,8239,1) INSERT INTO _CharSkill VALUES (@CharID,8250,1) INSERT INTO _CharSkill VALUES (@CharID,8253,1) INSERT INTO _CharSkill VALUES (@CharID,8276,1) INSERT INTO _CharSkill VALUES (@CharID,8291,1) INSERT INTO _CharSkill VALUES (@CharID,8304,1) INSERT INTO _CharSkill VALUES (@CharID,8316,1) INSERT INTO _CharSkill VALUES (@CharID,8320,1) INSERT INTO _CharSkill VALUES (@CharID,8338,1) INSERT INTO _CharSkill VALUES (@CharID,8347,1) INSERT INTO _CharSkill VALUES (@CharID,8348,1) INSERT INTO _CharSkill VALUES (@CharID,8361,1) INSERT INTO _CharSkill VALUES (@CharID,8370,1) INSERT INTO _CharSkill VALUES (@CharID,8379,1) INSERT INTO _CharSkill VALUES (@CharID,8383,1) INSERT INTO _CharSkill VALUES (@CharID,8390,1) INSERT INTO _CharSkill VALUES (@CharID,8399,1) INSERT INTO _CharSkill VALUES (@CharID,8405,1) INSERT INTO _CharSkill VALUES (@CharID,8410,1) INSERT INTO _CharSkill VALUES (@CharID,8414,1) INSERT INTO _CharSkill VALUES (@CharID,8416,1) INSERT INTO _CharSkill VALUES (@CharID,20494,1) INSERT INTO _CharSkill VALUES (@CharID,20497,1) INSERT INTO _CharSkill VALUES (@CharID,20500,1) INSERT INTO _CharSkill VALUES (@CharID,21215,1) INSERT INTO _CharSkill VALUES (@CharID,21217,1) INSERT INTO _CharSkill VALUES (@CharID,30578,1) INSERT INTO _CharSkill VALUES (@CharID,30584,1) INSERT INTO _CharSkill VALUES (@CharID,30590,1) INSERT INTO _CharSkill VALUES (@CharID,30596,1) INSERT INTO _CharSkill VALUES (@CharID,30600,1)
*لو عاوز تنزل يونيك فى المكان اللي انت عاوزة و تخليه ينزل الايتم اللي انت عاوزة تابع الـ 4 كويري دول
*
كويري اضافة يونيك
-----------------------
كود PHP:
USE SRO_VT_SHARD
DECLARE @UNIQUE VARCHAR (129) DECLARE @CHARNAME VARCHAR (64) DECLARE @mindealy INT DECLARE @maxdelay int DECLARE @INITRADIUS INT DECLARE @RADIUS int DECLARE @MAXNEST int = (SELECT MAX (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
/* put your settings here */ SET @UNIQUE = 'MOB_JUPITER_YUNO' -- Unique code name from _RefobjCommon table SET @CHARNAME = 'CHARNAME' -- Character name from _Char table to get mob position X Y Z SET @mindealy = 60 -- Minimum time before appears in seconds SET @maxdelay = 120 -- Maximum time before appears in seconds SET @INITRADIUS = 100 -- Radius around spot unique can generated at SET @RADIUS = 500 -- Radius around spot Unique can move in /* end of settings area */
/* get ID of mob by code name */ Declare @MOBID int SET @MOBID = (SELECT ID FROM _RefObjCommon WHERE CodeName128 = @UNIQUE)
SET IDENTITY_INSERT Tab_RefTactics ON INSERT INTO Tab_RefTactics (dwTacticsID,dwObjID,btAIQoS,nMaxStamina,btMaxStaminaVariance,nSightRange,btAggressType,AggressData,btChangeTarget,btHelpRequestTo,btHelpResponseTo,btBattleStyle,BattleStyleData,btDiversionBasis,DiversionBasisData1,DiversionBasisData2,DiversionBasisData3,DiversionBasisData4,DiversionBasisData5,DiversionBasisData6,DiversionBasisData7,DiversionBasisData8,btDiversionKeepBasis,DiversionKeepBasisData1,DiversionKeepBasisData2,DiversionKeepBasisData3,DiversionKeepBasisData4,DiversionKeepBasisData5,DiversionKeepBasisData6,DiversionKeepBasisData7,DiversionKeepBasisData8,btKeepDistance,KeepDistanceData,btTraceType,btTraceBoundary,TraceData,btHomingType,HomingData,btAggressTypeOnHoming,btFleeType,dwChampionTacticsID,AdditionOptionFlag,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
/* get position coordinates of your character */
DECLARE @REGION INT SET @REGION = (SELECT (LatestRegion) FROM _Char WHERE CharName16 = @CHARNAME) DECLARE @POSX INT SET @POSX = (SELECT (POSX) FROM _Char WHERE CharName16 = @CHARNAME) DECLARE @POSY INT SET @POSY = (SELECT (POSY) FROM _Char WHERE CharName16 = @CHARNAME) DECLARE @POSZ INT SET @POSZ = (SELECT (POSZ) FROM _Char WHERE CharName16 = @CHARNAME)
SET IDENTITY_INSERT Tab_RefNest ON INSERT INTO Tab_RefNest (dwNestID,dwHiveID,dwTacticsID,nRegionDBID,fLocalPosX,fLocalPosY,fLocalPosZ,wInitialDir,nRadius,nGenerateRadius,nChampionGenPercentage,dwDelayTimeMin,dwDelayTimeMax,dwMaxTotalCount,btFlag,btRespawn,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
print '' print '' print 'Done!' /**Because query will not work as it with BR files due to the difference between tables so:
مكان كلمة CHARNAME هتكتب اسم الشخصية اللي مكانها هينزل اليونك
يعني لو عاوز اليونك ينزل قدام JANJAN هتخلي الشخصية تقف علي باب JANJAN و هتكتب اسمها فى الكويري دى
كويري علشان Drop
-------------------------
كود PHP:
USE SRO_VT_SHARD GO
DECLARE @MonsterID int DECLARE @ItemID int DECLARE @DropRatio real
SET @MonsterID = 3810 -------- Mob,Unique ID you want Add Drop in SET @DropRatio = 1 -------- Item drop rate 1=100% , 0.3 = 30% SET @ItemID = 24165 -------- ITEM ID You want Add in Drops
Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'ITEM_CH_TBLADE_11_SET_A_RARE'
كويري تجيب بيها كود اليونك او اي وحش
-------------------------------------------------
كود PHP:
Use Sro_vt_shard select ID from _RefObjCommon where CodeName128 like 'MOB_RM_ROC'
و كده خلص الدروب و مبروك عليك ...نكمل الباقي
**
لو عاوز تبدل يونك بيونك تاني
-----------------------------------
كود PHP:
USE [SRO_VT_SHARD]
DECLARE @OldMOB varchar(128),@NewMOB varchar(128),@OldMOBID varchar(128),@NewMOBID varchar(128) SET /**/@OldMOB/**/ = 'MOB_CH_MANGNYANG' SET /**/@NewMOB/**/ = 'MOB_RM_ROC' SET @OldMOBID = (SELECT [ID] FROM [dbo].[_RefObjCommon] WHERE CodeName128 = @OldMOB) SET @NewMOBID = (SELECT [ID] FROM [dbo].[_RefObjCommon] WHERE CodeName128 = @NewMOB) UPDATE [dbo].[Tab_RefTactics] SET [dwObjID] = @NewMOBID WHERE [dwObjID] = @OldMOBID
لو عاوز تشيل الدروب drop
--------------------------------
كود PHP:
USE SRO_VT_SHARD GO DELETE _RefDropItemAssign FROM _RefDropItemAssign Drops LEFT JOIN _RefObjCommon Objects ON (Drops.RefItemID = Objects.ID) WHERE CodeName128 like 'ITEMCODENAMEHERE'
لو عاوز تغير لفل الوحش
-----------------------------
set @codename = 'SN_MOB_SD_HIKE' /* <- from textdata_object.txt */
set @link = (SELECT Link FROM _RefObJCommon WHERE NameStrID128 = @codename) set @newlevel = ( case when (SELECT Lvl FROM _RefObjChar WHERE ID = @link)+10 <= 120 THEN (SELECT Lvl FROM _RefObjChar WHERE ID = @link)+10 ELSE 120 end);
UPDATE _RefObjChar SET Lvl = @newlevel WHERE ID = @link UPDATE _RefObjChar SET ExpToGive = cast(ExpToGive*1.1 as bigint) WHERE ID = @link UPDATE _RefObjChar SET MaxHP = cast(MaxHP*1.1 as bigint) WHERE ID = @link
لو عندك وحش عادى وعاوزة يبقي يونك
------------------------------------------------
كود PHP:
USE SRO_VT_SHARD GO
update _RefObjCommon set Rarity = 3 where CodeName128 = 'Code el mob hna'
Print 'Mob has been changed to unique'
لو عندك F1 بايظة
---------------------
كود PHP:
USE [SRO_VT_SHARD] -- By Swagger1337 GO
DELETE FROM _CharQuest WHERE QuestID = 1
INSERT INTO _CharQuest SELECT CharID, QuestID = 1, [Status] = 1,AchievementCount = 0, StartTime = GETDATE()-4460, EndTime = GETDATE()-4460, QuestData1 = 0, QuestData2 = 0 FROM _Char WHERE not exists (SELECT CharID, QuestID FROM _CharQuest WHERE QuestID = 1)
--if problem is still found open _RefCharDefault_Quest Table. --look at this line : 0 15 3 QEVENT_GUIDE 1 --you need to enable this quest like this : 1 15 3 QEVENT_GUIDE 1
لو عاوز الـ PET يبقي فيه 5 صفحات
------------------------------------------
كود PHP:
USE [SRO_VT_SHARD] GO /****** Object: StoredProcedure [dbo].[_AddNewCOS] Script Date: 02/10/2012 11:32:15 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER ON GO
declare @COS_ID int --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- pet_skill_item (ÃÖ¼±È£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
declare @MaxInventorySize tinyint select @MaxInventorySize = InventorySize from _RefObjCommon, _RefObjChar where _RefObjCommon.ID = @RefObjID and _RefObjCommon.Link = _RefObjChar.ID
if( @@rowcount = 0 or @MaxInventorySize < @InventorySize ) begin rollback tran return -5 end
insert into _CharCOS values (@OwnerCharID, @RefObjID, @HP, @MP, @KeeperNPC, @State, NULL, @Level, 0, @HGP, @PickItemConfig, @RentEndTime) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ set @COS_ID = @@identity if (@COS_ID = 0 OR @@error <> 0) begin rollback tran return -1 end
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- pet_skill_item (ÃÖ¼±È£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ if (@MaxInventorySize > 0) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ begin declare @Slot int set @Slot = 0 --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- pet_skill_item (ÃÖ¼±È£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ while (@Slot < @MaxInventorySize) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ begin insert into _InvCOS values(@COS_ID, @Slot, 0) if (@@error <> 0) begin -- Àκ¥Å丮 »ý¼º ½ÇÆÐ! rollback tran return -2 end
set @Slot = @Slot + 1 end end
/* --´õ ÀÌ»ó ÀÌ Ä÷³¿¡´Â µ¥ÀÌÅ͸¦ ³ÖÁö ¾Ê´Â´Ù! UPDATE _Char SET EngagedCOS = @COS_ID WHERE CharID = @OwnerCharID IF (@@ERROR <> 0 OR @@ROWCOUNT = 0) BEGIN ROLLBACK TRANSACTION RETURN -3 END */ if( @itemID <> 0 ) begin update _Items set Data = @COS_ID where ID64 = @itemID if( @@error <> 0 or @@rowcount = 0 ) begin rollback transaction return -4 end
--BEGIN ADDITIONAL 112 SLOT IN GRAB PETS FOR 7684 DAYS declare @Serial64 bigint select @Serial64 = Serial64 from _Items where Data = @COS_ID exec _AddTimedJobForPet @COS_ID,5,22926,1992999999,1111708465,1,112,0,0,0,0,0,@Serial64 --BEGIN ADDITIONAL 112 SLOT IN GRAB PETS FOR 7684 DAYS
end
commit tran
return @COS_ID
لو عاوز تعمل Clean للـ sro_vt_account
---------------------------------
لو عاوز تعمل ايتم FB والـ + اللي انت عاوزة
------------------------------
كود PHP:
--Ozooo Ozoo
DECLARE @Charid int DECLARE @ItemID int Declare @Charname VarChar(50) Declare @PLUS int DECLARE @Head int Declare @CHEST int DECLARE @LEGS int DECLARE @SHOULDER int DECLARE @HAND int DECLARE @FOOT int DECLARE @RING1 int DECLARE @RING2 int DECLARE @NECK int DECLARE @ERRING int DECLARE @WEP int DECLARE @SHIELD int
SET @Charname = 'Ozoo' SET @PLUS = '7' SET @Charid = (select CharID from _Char where CharName16=@Charname) SET @Head = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=0 and CharID=@Charid) SET @CHEST = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=1 and CharID=@Charid) SET @LEGS = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=4 and CharID=@Charid) SET @SHOULDER = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=2 and CharID=@Charid) SET @HAND = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=3 and CharID=@Charid) SET @FOOT = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=5 and CharID=@Charid) SET @RING1 = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=11 and CharID=@Charid) SET @RING2 = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=12 and CharID=@Charid) SET @NECK = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=10 and CharID=@Charid) SET @ERRING = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=9 and CharID=@Charid) SET @WEP =(Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=6 and CharID=@Charid) SET @SHIELD =(Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=7 and CharID=@Charid)
update _Items set MagParamNum=6, optlevel=@PLUS, MagParam1 =5583457484950, MagParam2 =5583457484962, MagParam3 =30064771144, MagParam4=858993459290, MagParam5=30064771150, MagParam6=257698037898, Variance=865920825 where ID64 =@Head ---------------
update _Items set MagParamNum=6, optlevel=@PLUS, MagParam1 =5583457484950, MagParam2 =5583457484962, MagParam3 =30064771144, MagParam4=858993459290, MagParam5=30064771150, MagParam6=257698037898, Variance=865920825 where ID64 =@CHEST
----------------------
update _Items set MagParamNum=4, optlevel=@PLUS, MagParam1 =30064771150, MagParam2 =30064771144, MagParam3 =858993459290, MagParam4=257698037898, Variance=865920825 where ID64 =@SHOULDER
---------------------- update _Items set MagParamNum=4, optlevel=@PLUS, MagParam1 =30064771150, MagParam2 =30064771144, MagParam3 =858993459290, MagParam4=257698037898, Variance=865920825 where ID64 =@HAND
update _Items set MagParamNum=6, optlevel=@PLUS, MagParam1 =5583457484950, MagParam2 =5583457484962, MagParam3 =30064771144, MagParam4=858993459290, MagParam5=30064771150, MagParam6=257698037898, Variance=865920825 where ID64 =@LEGS
-----------------------
update _Items set MagParamNum=4, optlevel=@PLUS, MagParam1 =30064771150, MagParam2 =30064771144, MagParam3 =858993459290, MagParam4=257698037898, Variance=865920825 where ID64 =@FOOT
لو عاوز تمسح اى وحش
------------------------------
كود PHP:
Update Tab_RefNest Set fLocalPosX=NULL , fLocalPosY=NULL , fLocalPosZ=NULL WHERE dwTacticsID = (SELECT dwTacticsID FROM Tab_RefTactics WHERE dwObjID = (SELECT ID FROM _RefObjCommon WHERE Codename128 like 'Moob Code'
لو عاوز تغير اليوزر نيم(الايميل اللي بتدخل بيه السيرفر)
------------------------------------
كود PHP:
USE [SRO_VT_ACCOUNT] declare @AtualID varchar (30) declare @NewID varchar (30) set @AtualID = 'Your ID' set @NewID = 'New ID' update tb_user set struserid = @NewID where struserid = @ActualID
*اتمني ان الموضوع يساعد الناس الجديدة فى عمل السيرفرات*
*متأسف علي طريقة الشرح المبتدئة..لكن انا تعمدت اشرح بالطريقة دى لأن الناس الجديدة فى عمل السيرفر بتكون لسة مش فاهمة الكلام علي اية او مش فاهمة تعمل اية (اسف) فقولت ابسطها خالص*
و ان شاءالله الموضوع متجدد و لو فيه حد عاوز يشارك بأضافة كويري مبتدئة او اساسية فى عمل السيرفر مفيش مشكلة بحيث ان الموضوع يضم اكبر عدد من الكويري الاساسية المساعدة فى عمل السيرفر
و شكرا لأدارة المنتدي ♥
التعديل الأخير تم بواسطة ™Ozoo-Eboda™ ; 11-07-2017 الساعة 09:06 PM
USE [SRO_VT_SHARD] GO -------------------------------- DECLARE @ChrID INT; DECLARE @CharName VARCHAR(64); DECLARE @AccJID INT; --------------------------------- SET @CharName = 'CharNameHere' ---type Charname --------------------------------- SET @ChrID=(SELECT CharID FROM _Char WHERE CharName16=@CharName) SET @AccJID=(SELECT UserJID FROM _User WHERE CharID=@ChrID) ----------------------------------------------------------------- USE SRO_VT_ACCOUNT DECLARE @ID VARCHAR (64) DECLARE @Reason VARCHAR(128) DECLARE @Begin DATETIME DECLARE @End DATETIME SET @ID = (Select STRuserID FROM TB_User Where JID = @AccJID)
--------------------------------- SET @Reason = 'Ban Reason Here' SET @Begin = '2012-05-01 00:00:00.000' -- Time Begin -- SET @End = '2040-01-01 00:00:00.000' -- Time End -- --------------------------------- ---------------------------
----------------------------------------------------------------- SELECT StrUserID FROM TB_User WHERE JID = @AccJID -----------------------------------------------------------------
USE [SRO_VT_SHARD]
GO
--------------------------------
DECLARE @ChrID INT;
DECLARE @CharName VARCHAR(64);
DECLARE @AccJID INT;
---------------------------------
SET @CharName = 'CharNameHere' ---type Charname
---------------------------------
SET @ChrID=(SELECT CharID FROM _Char WHERE CharName16=@CharName)
SET @AccJID=(SELECT UserJID FROM _User WHERE CharID=@ChrID)
-----------------------------------------------------------------
USE SRO_VT_ACCOUNT
DECLARE @ID VARCHAR (64)
DECLARE @Reason VARCHAR(128)
DECLARE @Begin DATETIME
DECLARE @End DATETIME
SET @ID = (Select STRuserID FROM TB_User Where JID = @AccJID)
---------------------------------
SET @Reason = 'Ban Reason Here'
SET @Begin = '2012-05-01 00:00:00.000' -- Time Begin --
SET @End = '2040-01-01 00:00:00.000' -- Time End --
---------------------------------
---------------------------
-----------------------------------------------------------------
SELECT StrUserID FROM TB_User WHERE JID = @AccJID
-----------------------------------------------------------------
حبيبي...تسلم
و شكرا على الملاحظة و بالفعل تم التعديل
انت مجرب الكلام ده؟؟؟؟
انا مكملتش قرائة فيه بس عندك اول وتاني كواري هما الاتنين نفس الحاجه اصلا ودي بتضيف ايتم لشخصية معينه لكن ملهاش وقت او لما الشخصية تعمل كذا وكده
اما تالت كواري بتاع البريميم انك تستخدم Delete From ******* من غير ماتحدد هيمسح ايه كده هيمسح كل حاجه مفتوحة للشخصية زي اسكرولات او غيرو بالتالي الافضل انك تحدد هيمسح ايه بالظبط من ال TimedJob بتاع الشخصية
تعديل : بعد بصة ع السريع علي الباقي
عندك تاني وتالت كواري من تحت هما الاتنين برده نفس الكواري وكاتب استخدامين ليهم طب ازاي !
و" لو مسحت شخصية و عاوز ترجعها تاني " دي مش بترجع الشخصية "الممسوحة" دي بترجع الشخصية الي واخده بان
أما " لو عاوز تضيف سلك (SILK) لشخصية " دي مش بتضيف سيلك لشخصية دي بتضيف سيلك للسيرفر كامل
التعديل الأخير تم بواسطة ™ EgY_KhaN ™ ; 11-07-2017 الساعة 05:15 AM