|
• الانـتـسـاب » Jun 2012
|
• رقـم العـضـويـة » 101664
|
• المشـــاركـات » 279
|
• الـدولـة » Giza
|
• الـهـوايـة »
|
• اسـم الـسـيـرفـر » Fornax
|
• الـجـنـس » Male
|
• نقـاط التقييم » 18
|
|
|
رد: اسفسار بخصوص Drop item
انت الاول محتاج تجيب كود الموبس و الايتم الي عايز تعدل عليها و دول هتجبهم بال query ده
كود PHP:
Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like '[COLOR="Red"]MOB_RM_ROC[/COLOR]'
هتعدل علي الي بالاحمر و تغيره للكود الي انت عايز تجيبه
وبعد كده هتيجي علي ال 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 كود الايتم الي هتنزل من الموب
|