عرض مشاركة واحدة
قديم 12-06-2017, 01:21 PM   #3

Draz
عضو فعال



الصورة الرمزية Draz


• الانـتـسـاب » Nov 2014
• رقـم العـضـويـة » 119772
• المشـــاركـات » 359
• الـدولـة » Egypt
• الـهـوايـة » SQL - C# - PHP -Graphics
• اسـم الـسـيـرفـر » Private Server
• الـجـنـس » Male
• نقـاط التقييم » 38
Draz صـاعـد

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



افتراضي رد: سؤال بسيط ومحتاج الرد



وبتضيف الدروب
بالكويرى دة
كود PHP:
USE SRO_VT_SHARD 
GO 

DECLARE @MonsterID int 
DECLARE @ItemID int 
DECLARE @DropRatio real
DECLARE @DropAmountMin int 
DECLARE @DropAmountMax int


SET 
@MonsterID =  (select ID from _refobjcommon where codename16 'mob code here')
SET @DropRatio 1        -------- Item drop rate 1=100% , 0.3 30%  
SET @ItemID = (select ID from _refobjcommon where codename16 'item code here')
SET @DropAmountMin 5    -------- Amount of this item to Drop min
SET 
@DropAmountMax 8    -------- Amount of this item to Drop max
SET 
@OptLevel 0    ------- Plus OF item if you want add Drop plus if you don't need wirte 0 


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, @OptLevel, @DropAmountMin, @DropAmountMax, @DropRatio, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , '
xxx') 


توقيع Draz :