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

مشاهدة النسخة كاملة : اسفسار بخصوص Drop item


hossamahmedmju
13-10-2016, 11:20 PM
سلام عليكم
لو سمحت عايز اخلي مثلا يونك معين يوقع Sun Weapon // Set /// Acc عشوائي مثلا مرا يوقع سيت ومرا ويبون وهكذا ازاي] ؟

Dev.Sawy
14-10-2016, 03:49 AM
تمام يا باشا اتفضل كيوري دة بتضيف فية كود الايتيم وكود اليونيك الي عايز يقع منو الحاجة
وبتعمل النسبة بتاعتو صعبةة شوية وغير النسب وضيف كذا ايتيم فية وهيحصل زي ما انت عايز ان شاء الله

اتفضل الكيوري
USE SRO_VT_SHARD -----> By-Flowushy <-----
GO

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



SET @MonsterID = 38212 -------- Mob,Unique ID you want Add Drop in
SET @DropRatio = 1 -------- Item drop rate 1=100% , 0.3 = 30%
SET @ItemID = 25834 -------- ITEM ID You want Add in Drops


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')

sobhe_wizard
15-10-2016, 10:21 AM
انت الاول محتاج تجيب كود الموبس و الايتم الي عايز تعدل عليها و دول هتجبهم بال query ده
Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'MOB_RM_ROC'

هتعدل علي الي بالاحمر و تغيره للكود الي انت عايز تجيبه
وبعد كده هتيجي علي ال query ده الي فيه الشغل كله
USE SRO_VT_SHARD_INIT
GO

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



SET @MonsterID = 24160 -- You can find Monster ID's at RefObjCommon
SET @DropRatio = 0.5 -- 100% = 1 / 50% = 0.5 / 0% = 0 of course
SET @ItemID = 35773 -- You can find Item ID's at RefObjCommon


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')

هتعدل برضه علي الكلام الي بالاحمر MonsterID = كود الموب .. @DropRatio = نسبه الدروب عايزها كام % @ItemID كود الايتم الي هتنزل من الموب

Jayden
15-10-2016, 12:47 PM
ال Query اللى فوق دى ممكن توقعلك كذا Item مع بعض مش Item واحده بس
فأنت لازم تعملها جروب وتعين الجروب لل monster فى _RefMonster_AssignedItemRndDrop