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

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة (https://silkroad4arab.com/vb/forumdisplay.php?f=226)
-   -   Item Drop Query Problem (https://silkroad4arab.com/vb/showthread.php?t=603496)

khaledPSx 21-07-2016 07:03 AM

Item Drop Query Problem
 
سلام عليكم ...
انا كل الكويري عندي شغاله بس كويري الايتيم دروب بعملها بس مش شغاله يعني بحط كل حاحه بعمل الكويري و الsql بيكتبلي Row effected يعني تمام بس لما افتح السيرفير
مفيش حاجه بتنزل من الموب الي حاطو او يونيك ايه المشكله .
لو سمحتو مساعده
الكرويري
كود PHP:

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 ,   @ItemID0,          0,        1,             1,             @DropRatio,           0,                 0,           0,                 0,            0,                 0,            0,                 0,            0,                 0,            0,                 0,            0,                 0,            0,                 0,            ,                ,           'xxx'


Cru3L1337 21-07-2016 08:59 AM

رد: Item Drop Query Problem
 
بيجيب (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

رد: Item Drop Query Problem
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Swe3Ty_xD (المشاركة 5272607)
بيجيب (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

رد: Item Drop Query Problem
 
اقتباس:

المشاركة الأصلية كتبت بواسطة khaledPSx (المشاركة 5272604)
سلام عليكم ...
انا كل الكويري عندي شغاله بس كويري الايتيم دروب بعملها بس مش شغاله يعني بحط كل حاحه بعمل الكويري و الsql بيكتبلي Row effected يعني تمام بس لما افتح السيرفير
مفيش حاجه بتنزل من الموب الي حاطو او يونيك ايه المشكله .
لو سمحتو مساعده
الكرويري
كود PHP:

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 ,   @ItemID0,          0,        1,             1,             @DropRatio,           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

رد: Item Drop Query Problem
 
بوص يا سيدى الكويرى دى عن تجربه

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

رد: Item Drop Query Problem
 
متشكر اوي . بس لو عملت الكويري ده لازم اعدل على xxx ولا اسيبها كده ؟ باخر الكويري .


الساعة الآن 07:21 AM.

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