المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Item Drop Query Problem


khaledPSx
21-07-2016, 07:03 AM
سلام عليكم ...
انا كل الكويري عندي شغاله بس كويري الايتيم دروب بعملها بس مش شغاله يعني بحط كل حاحه بعمل الكويري و الsql بيكتبلي Row effected يعني تمام بس لما افتح السيرفير
مفيش حاجه بتنزل من الموب الي حاطو او يونيك ايه المشكله .
لو سمحتو مساعده
الكرويري USE SRO_VT_SHARD_INIT
GO

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



SET @MonsterID = 24082 -- You can find Monster ID's at RefObjCommon
SET @DropRatio = 0.00004 -- 100% = 1 / 50% = 0.5 / 0% = 0 of course
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')

Cru3L1337
21-07-2016, 08:59 AM
بيجيب (Row effected (1 ?
وجرب تستعمل الكويري دية

USE SRO_VT_SHARD
GO

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




SET @MonsterID = 23429 -------- Mob,Unique ID you want Add Drop in
SET @DropRatio = 1 -------- Item drop rate 1=100% , 0.3 = 30%
SET @ItemID = 2199-------- ITEM ID You want Add in Drops
SET @ItemID = 3767-------- ADD A SECOND ITEM , REMOVE LINE IF YOU WANT
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')

™Shi6on
21-07-2016, 09:40 AM
بيجيب (Row effected (1 ?
وجرب تستعمل الكويري دية

USE SRO_VT_SHARD
GO

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




SET @MonsterID = 23429 -------- Mob,Unique ID you want Add Drop in
SET @DropRatio = 1 -------- Item drop rate 1=100% , 0.3 = 30%
SET @ItemID = 2199-------- ITEM ID You want Add in Drops
SET @ItemID = 3767-------- ADD A SECOND ITEM , REMOVE LINE IF YOU WANT
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')

+1
الquery ده هيجيب معاك نتيجي ..
لو معملش حاجه قول :phone:

MikrotikBody
21-07-2016, 01:35 PM
سلام عليكم ...
انا كل الكويري عندي شغاله بس كويري الايتيم دروب بعملها بس مش شغاله يعني بحط كل حاحه بعمل الكويري و الsql بيكتبلي Row effected يعني تمام بس لما افتح السيرفير
مفيش حاجه بتنزل من الموب الي حاطو او يونيك ايه المشكله .
لو سمحتو مساعده
الكرويري USE SRO_VT_SHARD_INIT
GO

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



SET @MonsterID = 24082 -- You can find Monster ID's at RefObjCommon
SET @DropRatio = 0.00004 -- 100% = 1 / 50% = 0.5 / 0% = 0 of course
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')
SET @DropRatio = 0.00004
اكيد يعني مش هيشتغل غير لما تقتل وحوش كتير انت عامل نسبه الدروب 0.00004/100
اكيد نسبه الدروب ضعيفه جدآآآآ
نسبه الدرب علي حسب علمي
1=100%
0.5=50%
0.25=25%
وهكذا

blizzardonline
21-07-2016, 01:46 PM
بوص يا سيدى الكويرى دى عن تجربه

USE SRO_VT_SHARD
GO

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

ألى بى الاحمر id MOB
الى بى الازرق id Item
الى بى اخضر الى هى النسبه الى يقع بيها الايتم

ملحوظه :النسبه 1=100%
0.5=50%
وعلشان تجيب IP الموب او اليونك او الارينه او اى حاجة query دى وتكتب الكود فلاخر زى ما هو معمول
Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'MOB_SD_ANUBIS'
شكرا تكفى :)

khaledPSx
22-07-2016, 01:18 AM
متشكر اوي . بس لو عملت الكويري ده لازم اعدل على xxx ولا اسيبها كده ؟ باخر الكويري .