عرض مشاركة واحدة
قديم 29-06-2015, 02:03 PM   #2

Msh Mohm
عضو مجتهد





• الانـتـسـاب » Mar 2015
• رقـم العـضـويـة » 121300
• المشـــاركـات » 179
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر » No Server
• الـجـنـس » Male
• نقـاط التقييم » 12
Msh Mohm صـاعـد

Msh Mohm غير متواجد حالياً



افتراضي رد: عاوز كيور يحدد نسبة الحاجات اللي ينزلها الUinq



استخدم ال Query ده
كود PHP:
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') 
اول واحده اللى هى monster id هتحط ال id بتاع ال unique
تانى واحده نسبه ال drop .. و هى مثلاً 0.1 = 10% >> 0.5 = 50%
تالت حاجه item id شوف بقى عايز ال drop يبقى ايه و حط الكود بتاعه