الموقع العربي الاول للعبة Silkroad Online

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة (https://silkroad4arab.com/vb/forumdisplay.php?f=226)
-   -   add item in Unique (https://silkroad4arab.com/vb/showthread.php?t=562064)

Delaviga_ 24-07-2014 01:45 AM

add item in Unique
 
i need Query add Drop item in Unique

Hero 24-07-2014 01:46 AM

كود PHP:

/*Edited By Yui*/ 
GO 
DECLARE @Mob VarChar(MAX),@Item VarChar(MAX),@MonsterID iNt,@ItemID iNt,@DropRatio ReaL, @DropAmountMin INT, @DropAmountMax INT 
-------------------------------------------------------------------------- 
SET @Mob            =    'MOB_TQ_WHITESNAKE'/*Monster Code*/ 
SET @Item            =    'ITEM_MALL_GLOBAL_CHATTING'/*Item Code*/ 
SET @DropAmountMin    =    10 /*Drop Min*/ 
SET @DropAmountMax    =    50 /*Drop Max*/ 
SET @DropRatio        =    0.9 /*0.5 = '50%' */ 
-------------------------------------------------------------------------- 
SET @MonsterID    =    (SELECT ID FROM [dbo].[_RefObjCommonWHERE CodeName128 = @Mob)/**/ 
SET @ItemID        =    (SELECT ID FROM [dbo].[_RefObjCommonWHERE CodeName128 = @Item)/**/ 
INSERT [dbo].[_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,@DropAmountMin,@DropAmountMax,@DropRatio,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'xxx')/**/ 


Delaviga_ 24-07-2014 01:46 AM

Thx

Hero 24-07-2014 01:47 AM

##


الساعة الآن 11:07 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.