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

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة (https://silkroad4arab.com/vb/forumdisplay.php?f=226)
-   -   ازاى اعمل Unique ينزل كذة حاجة (https://silkroad4arab.com/vb/showthread.php?t=554679)

youssefsro 17-04-2014 06:46 PM

ازاى اعمل Unique ينزل كذة حاجة
 
انا عايز اخلى Unique ينزل كل ال Egy B D11 weapon
مش عارف ازاى ؟ ممكن مساعدة لو سمحتم
انا جربت كويرى بس خلاه Drop سلاح واحد بس

Emely 17-04-2014 08:08 PM


نفس اللى هتعملو مع سلاح تعملو مع التنين




Drop Unique




كود PHP:

USE SRO_VT_SHARD -----> ( Emely ) <-----
GO

DECLARE @MonsterID int
DECLARE @ItemID int
DECLARE @DropRatio real



SET 
@MonsterID ID Mobs <-------- Mob,Unique ID you want Add Drop in
SET 
@DropRatio <-------- Drop Ration 1=100% , 0.5 50
SET @ItemID ID Item <-------- ITEM ID You want Add in Drop


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 , @ItemID0011, @DropRatio00000000,
00000000'xxx'

__________________________________________________ ______________________________

والكويرى ده علشان تجيب

ID الموب



كود PHP:

Use Sro_vt_shard select ID from _RefObjCommon where CodeName128 like 'Code Unq' 

__________________________________________________ _______________________________

والكويرى ده علشان تجيب
ID الايتم



كود PHP:

Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'Code Item' 


youssefsro 17-04-2014 08:25 PM

طيب ممكن حضرتك تيجى تيم و تضبطهالى اصل انا مش بفهم اوى فى تظبيط ال Drop :(

Emely 17-04-2014 09:30 PM

اقتباس:

المشاركة الأصلية كتبت بواسطة youssefsro (المشاركة 5041314)
طيب ممكن حضرتك تيجى تيم و تضبطهالى اصل انا مش بفهم اوى فى تظبيط ال Drop :(


اوك مفيش مشكله

انا فى الخدمه ^^

MaDo Rafik 17-04-2014 11:39 PM

:ban: انا بردو عندي نفس المشكلة :)

che_9299 17-04-2014 11:46 PM

حضرتكم مش هتعملو حاجه زياده غير انك فى كل كويرى هتغير ال ID بتاع الايتم لنفس الموبس وخلاص

youssefsro 20-04-2014 04:40 PM

شكرا Emely
 
تم الحل :)
كل اللى عملته

DECLARE @MonsterID int
DECLARE @ItemID int
DECLARE @DropRatio real



SET @MonsterID = ID Mobs <-------- Mob,Unique ID you want Add Drop in
SET @DropRatio = 1 <-------- Drop Ration 1=100% , 0.5 = 50%
SET @ItemID = ID Item <-------- ITEM ID You want Add in Drop
SET @ItemID = ID Item
SET @ItemID = ID Item
SET @ItemID = ID Item


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')





كررت كلمة SET @ItemID = ID Item
و اشتغلت :) شكرا Emely


الساعة الآن 10:08 PM.

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