Dev.Ri3o |
07-08-2016 01:14 AM |
رد: Drop
ده ال Query اللى هتشتغل بى
كود:
USE ARAM_VT_RI3O_SH
GO
DECLARE @MonsterID int
DECLARE @ItemID int
DECLARE @DropRatio real
SET @MonsterID = 24082 -- You can find Monster ID's at RefObjCommon
SET @DropRatio = 1
SET @ItemID = 3851 -- 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')
ال @DropRatio ده النسبة اللى هيقع بيها العدد اللى انت محددو يعنى مثلا انت عايز Uniqe يوقع 5 Arean Coin لا اقل ولا ازيد هتخلى ال Drop Rate =1 وهتيجى تحت عند
الواحدين اللى بالون الاخضر او واحد عدد ال Drop Min والتانى عدد ال Drop Max هتخليهم الاتنين 5 عشان يوقع 5 وهتعمل ال Drop Rate=1 عشان الخمسة يقعو فى كل مرة تقتل ال Uniqe مثلا لو عايزو يوقع من 3:4 هتكتب فى الواحد الاولى اللى بالون الاخضر 3 والتانية 4 وتعمل ال Drop Rate =0.9
|