المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كيفية عمل Drop ♥


™Ozoo-Eboda™
14-05-2017, 09:57 PM
الكويري اللي هنضيف بيها الـ Drop

USE SRO_VT_SHARD ----- ( MaDenGo ) -----
GO

DECLARE @MonsterID int
DECLARE @ItemID int
DECLARE @DropRatio real



SET @MonsterID = 3810 -------- Mob,Unique ID you want Add Drop in
SET @DropRatio = 1 -------- Drop Ration 1=100% , 0.5 = 50%
SET @ItemID = 24165 -------- ITEM ID You want Add in Drop


INSERT _RefMonster_AssignedItemDrop
(
RefMonsterID,
RefItemID,
DropGroupType,
OptLevel,
DropAmountMin,
DropAmountMax,
DropRatio,
RefMagicOptionID1,
CustomValue1,
RefMagicOptionID2,
CustomValue2,
RefMagicOptionID3,
CustomValue3,
RefMagicOptionID4,
CustomValue4,
RefMagicOptionID5,
CustomValue5,
RefMagicOptionID6,
CustomValue6,
RefMagicOptionID7,
CustomValue7,
RefMagicOptionID8,
CustomValue8,
RefMagicOptionID9,
CustomValue9,
RentCodeName
)
VALUES(@MonsterID , @ItemID, 0, 0, 1, 1, @DropRatio, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 'xxx')

و الكويري دي هتجيب بيها الـ Item ID

Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'ITEM_CH_TBLADE_11_SET_A_RARE'

و الكويري دي هتجيب بيها الـ Monster ID

Use Sro_vt_shard select ID from _RefObjCommon where CodeName128 like 'MOB_RM_ROC'
.....
, و كدة تمام يا معلم عملنا الـ Drop

Hamza FiGo
15-05-2017, 10:12 PM
تسلم ايدك.. ياريت تعدل علي الموضوع وتحط الكيوري في PHP او Code

ثانيا الكيوري دا اسهل

USE SRO_VT_SHARD
GO
DECLARE @Mob VarChar(MAX),@Item VarChar(MAX),@MonsterID iNt,@ItemID iNt,@DropRatio ReaL, @DropAmountMin INT, @DropAmountMax INT
--------------------------------------------------------------------------
SET @Mob = 'MOB_AR_BLACKROBBER_THIEF_CLONE'/*Monster Code*/
SET @Item = 'ITEM_CH_BLADE_14_B_RARE'/*Item Code*/
SET @DropAmountMin = 1 /*Drop Min*/
SET @DropAmountMax = 1 /*Drop Max*/
SET @DropRatio = 0.0001 /*0.5 = '50%' */
--------------------------------------------------------------------------
SET @MonsterID = (SELECT ID FROM [dbo].[_RefObjCommon] WHERE CodeName128 = @Mob)/**/
SET @ItemID = (SELECT ID FROM [dbo].[_RefObjCommon] WHERE CodeName128 = @Item)/**/
INSERT [dbo].[_RefMonster_AssignedItemDrop]/**/
(RefMonsterID,RefItemID,DropGroupType,OptLevel,Dro pAmountMin,DropAmountMax,DropRatio,RefMagicOptionI D1,CustomValue1,RefMagicOptionID2,CustomValue2,Ref MagicOptionID3,CustomValue3,RefMagicOptionID4,Cust omValue4,RefMagicOptionID5,CustomValue5,RefMagicOp tionID6,CustomValue6,RefMagicOptionID7,CustomValue 7,RefMagicOptionID8,CustomValue8,RefMagicOptionID9 ,CustomValue9,RentCodeName)/**/
VALUES(@MonsterID,@ItemID,0,0,@DropAmountMin,@Drop AmountMax,@DropRatio,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,'xxx')/**/

™Ozoo-Eboda™
16-05-2017, 12:36 AM
تسلم حاضر ... معلش انا بقالي كتير بعيد والله و عاوز افتكر الشغل دا فأنا انا اسف لو الحاجة اللي معايا قديمة انا شايف ان فيه حاجات جديدة دلوقتي فعلا... هبدأ اشوف و اجدد الحاجة اللي معايا

Mahmoud Rashwan
16-05-2017, 01:04 AM
تسلمـ

™Ozoo-Eboda™
16-05-2017, 01:12 AM
حبيبي

™Ozoo-Eboda™
16-05-2017, 07:53 PM
تم التعديل علي الموضوع ..شكرا