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

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة (https://silkroad4arab.com/vb/forumdisplay.php?f=226)
-   -   كيفية اضافة coin معين Drop from Unique (https://silkroad4arab.com/vb/showthread.php?t=513950)

World 12-07-2013 05:47 AM

كيفية اضافة coin معين Drop from Unique
 
كيفية اضافة coin معين Drop from Unique

عايز اخلي ال unique Drop coin معلشي هتعبكم

Alber Maher 12-07-2013 06:26 AM

اول حاجة لزم تجيب ال ID بتاع الموب او الايتم . و هتجبوا من الكورى ده :
كود:

Use SRO_VT_SHARD

select ID from _RefObjCommon where CodeName128 like 'MOB_CH_TIGERWOMAN'

و ده الكورى بيتاع الضروب :

اقتباس:

USE SRO_VT_SHARD
GO

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



SET @MonsterID = 24160 -- You can find Monster ID's at RefObjCommon
SET @DropRatio = 0.5 -- 100% = 1 / 50% = 0.5 / 0% = 0 of course
SET @ItemID = 35773 -- 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')
و بكدا مبروك عليك :lulu13:

TYKE 12-07-2013 06:29 AM

كود PHP:

USE SRO_VT_SHARD
GO
 
DECLARE @MonsterID int
DECLARE @ItemID int
DECLARE @DropRatio real
 
 
 
SET 
@MonsterID 3810 <-------- Mob,Unique ID you want Add Drop in
SET 
@DropRatio <-------- Drop Ration 1=100% , 0.5 50
SET @ItemID 24165 <-------- 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 'MOB_RM_ROC' 

وده علشان تجيب id الايتم

كود PHP:

Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'ITEM_CH_TBLADE_11_SET_A_RARE' 


World 12-07-2013 06:41 AM

طب و لو عايز عدد معين مثلأ 2 Coin من ال Lord اعمل اية ؟

GoldMonkey 12-07-2013 07:03 AM

اقتباس:

المشاركة الأصلية كتبت بواسطة World (المشاركة 4789543)
طب و لو عايز عدد معين مثلأ 2 Coin من ال Lord اعمل اية ؟

اعمل الـ Query مرتين

PlayMaker1337 08-01-2019 11:46 PM

رد: كيفية اضافة coin معين Drop from Unique
 
:Emoji4::Emoji4:

gamalnasser1 08-10-2019 02:38 AM

رد: كيفية اضافة coin معين Drop from Unique
 
##


الساعة الآن 09:58 PM.

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