تسجيل الدخول دائمآ
ط·آ§ط¸â€‍ط·آ¥ط·آ¹ط¸â€‍ط·آ§ط¸â€ ط·آ§ط·ع¾

الـجـروب الـخـاص بـالـمـنـتـدي Silkroad4arab Facebook | Official Group 



قسم الشروحات و البرامج المستخدمة في عمل السيرفرات الخاصة [ قسم متخصص فى شروحات و البرامج في عمل السيرفرات الخاصة ] [ يرجى عدم وضع الأسئلة والاستفسارات في هذا القسم ]

 
 
أدوات الموضوع انواع عرض الموضوع
قديم 24-01-2015, 07:28 PM   #1

Dev. iLegend
عضو لامع



الصورة الرمزية Dev. iLegend


• الانـتـسـاب » Jul 2013
• رقـم العـضـويـة » 112689
• المشـــاركـات » 1,050
• الـدولـة » Egypt - Tanta
• الـهـوايـة » always try for a best features
• اسـم الـسـيـرفـر » Private Server
• الـجـنـس » Male
• نقـاط التقييم » 34
Dev. iLegend صـاعـد

Dev. iLegend غير متواجد حالياً


إرسال رسالة عبر Yahoo إلى Dev. iLegend

افتراضي Full Useful Procedure Scroll











Full Useful Procedure Scroll

باختصار يا جماعة دا Procedure لامم فيه حاجات كتيرة وميزته انه بيضيف أيتم للـ 2 Gender

بسكرولاية واحدة يعني مثلاً ممكن تعمل بيه Devils Full Blue ويتضاف مكان الديفل

للكراكتر الـ Male والـ Female بنفس الاسكرول بس طبعاً مع التعديل ع الـ Procedure

انا عامله على Dragon Flag - Slot 3 الديفيل Slot 5 وهكذا. ممكن اصلا تمسح حاجات منه وتعيد صياغة حجات بسيطه فيه

وتخليه على حسب منتا عاوز انا اقصد انه مش مرتبط بحاجة معينة وفى نفس الوقت ممكن تشغله بـ Scroll .

وضايف فيه شرح بسيط بخطوات تفهمك الـ Procedure ماشي إزاي عشان لما تعدل تكون عارف كل حاجة بتعمل ايه.

نيجي للمهم ..

dbo._RefObjCommon

كود PHP:
1    42155    ITEM_MALL_NEW_SCROLL    ????? (????)    xxx    SN_ITEM_MALL_NEW_SCROLL    SN_ITEM_MALL_NEW_SCROLL_TT_DESC    0    0    3    3    3    1    180000    3    0    0    1    1    0    0    1    0    0    1    0    0    0    0    0    0    0    -1    0    -1    0    -1    0    -1    0    -1    0    0    0    0    0    0    0    100    0    0    0    xxx    item\etc\drop_mall_scroll.bsr    item\etc\archemy_potiontablet_immun_frozen.ddj    xxx    xxx    21630 


dbo._RefObjItem

كود PHP:
21630    1    2    0    0    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1000    ????    1    ??????    -1    RESURRECT    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    0    0    0 


Itemdata_4500.txt

كود PHP:
1    42155    ITEM_MALL_NEW_SCROLL    ????? (????)    xxx    SN_ITEM_MALL_NEW_SCROLL    SN_ITEM_MALL_NEW_SCROLL_TT_DESC    0    0    3    3    3    1    180000    3    0    0    1    1    0    0    1    0    0    1    0    0    0    0    0    0    0    -1    0    -1    0    -1    0    -1    0    -1    0    0    0    0    0    0    0    100    0    0    0    xxx    item\etc\drop_mall_scroll.bsr    item\etc\archemy_potiontablet_immun_frozen.ddj    xxx    xxx    1    2    0    0    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1000    ????    1    ??????    -1    RESURRECT    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    0    0 


Textdata_Object.txt

كود PHP:
1    SN_ITEM_MALL_NEW_SCROLL                                Useful Scroll
1    SN_ITEM_MALL_NEW_SCROLL_TT_DESC                                
<sml2>Useful Scroll Added :)<br><br><strong><font color="255,236,219,156">Created by:</font></strong><br><strong><font color="255,0,255,127">iLegend</font></strong></sml2> 


SRO_VT_SHARDLOG
dbo._AddLogItem

كود PHP:
   IF (@Operation = 41) -- If item used!
  
Begin
    
IF (@ItemRefID = 42156) -- RefObjCommon ID
       Begin
        Execute 
[SRO_VT_SHARD].[dbo].[_ADD_FLAG] @CharID
       End
  End 


Copy This Procedure then execute it by Shard Name

كود PHP:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_ADD_FLAG]    Script Date: 01/24/2015 16:57:28 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
CREATE PROCEDURE [dbo].[_ADD_FLAG]
 @
CharID Int 
    
As

    -- 
This Procedure created by [iLegend] for several uses.
    -- 
Main of them is adding item for both gender by 1 scroll, etc.
    -- 
You can change values and parameters as u want.
    -- For 
change to add the item to inventory :
    -- 
Work with this Parameter. Slot = @Empty_Slot and change every _InventoryForAvatar to _Inventory
    
-- ================================================================================================

     Declare @
RefObjID Int = (Select RefObjID From [SRO_VT_SHARD].[dbo].[_Char] Where CharID = @CharID)
     Declare @
ID64 Int = (Select MAX (ID64) FROM [SRO_VT_SHARD].[dbo].[_Items]) +1
     
Declare @ItemID Int = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryForAvatar] Where CharID = @CharID and Slot = 3)
     Declare @
RefItemID Int
     
Declare @FreeItemID Bigint
     
Declare @Inv_Capacity int
     
Declare @Empty_Slot Int
     
Declare @SN Bigint = (Select LatestItemSerial From [SRO_VT_SHARD].[dbo].[_LatestItemSerial])
     
Select @FreeItemID = MAX (ItemID) From [SRO_VT_SHARD].[dbo].[_ItemPool] With (Nolock) Where InUse = 0
     Set 
@Inv_Capacity = (Select InventorySize From [SRO_VT_SHARD].[dbo].[_Char] Where CharID = @CharID)
     
Select Top 1 @Empty_Slot = Slot From [SRO_VT_SHARD].[dbo].[_Inventory] With (Nolock) Where CharID = @CharID and Slot >= 13 and Slot < @Inv_Capacity and ItemID = 0 Order By Slot
     
    
-- IF Char Gender = [M]
    -- =====================
   IF (@
RefObjID between 1907 and 1919) or (@RefObjID between 14875 and 14887) 
    
Begin
    
-- Step 1 : *If item exist in the selected slot.
    -- 
Actions :
    -- 
1- Update the exist item by a new parameters that we want.
    -- =================================================================
      IF (@
ItemID > 0) 
       
Begin
        Update 
[SRO_VT_SHARD].[dbo].[_Items] Set OptLevel = 0 , CreaterName = 'iLegend' , MagParamNum = 2 , MagParam1 = 30064771305 , MagParam2 = 30064771304
        Where ID64 
= @ItemID
       End
    
-- Step 2 : *If item not exist in the selected slot and free item is exist from dbo._ItemPool.
    -- 
Actions :
    -- 
1- Update the free item by a new parameters that we want.
    -- 
2- Update dbo.ItemPool for change the free item to InUse Item.
    -- 
3- Update the free slot item to the updated item that we do.
    -- =================================================================
      IF (@
ItemID = 0) and (@FreeItemID > 0) 
       
Begin
        Set 
@RefItemID = 9374  -- Male Item ID
        Update 
[SRO_VT_SHARD].[dbo].[_Items] Set RefItemID=@RefItemID,OptLevel=0,Variance=0,Data=0,CreaterName='iLegend',MagParamNum=2,MagParam1=30064771305,MagParam2=30064771304,MagParam3=NULL,MagParam4=NULL,MagParam5=NULL,MagParam6=NULL,MagParam7=NULL,MagParam8=NULL,MagParam9=NULL,MagParam10=NULL,MagParam11=NULL,MagParam12=NULL
        Where ID64 
= @FreeItemID
        Update 
[SRO_VT_SHARD].[dbo].[_ItemPool] Set InUse = 1 Where ItemID = @FreeItemID
        Update 
[SRO_VT_SHARD].[dbo].[_InventoryForAvatar] Set ItemID = @FreeItemID Where CharID = @CharID and Slot = 3
       End
    
-- Step 3 : *If item not exist in the selected slot and item free is not exist from dbo._ItemPool.
    -- 
Actions :
    -- 
1- Create new item in dbo._Items by a new parameters that we want.
    -- 
2- Create a line in dbo.ItemPool for make the new item to InUse Item.
    -- 
3- Update the free slot item to the created item that we create.
    -- =================================================================
      IF (@
ItemID = 0) and (@FreeItemID = 0)
       
Begin
        Exec 
[SRO_VT_SHARD].[dbo].[_GetLatestItemSerial] @SN
        Set 
@RefItemID = 9374  -- Male Item ID
        SET IDENTITY_INSERT 
[SRO_VT_SHARD].[dbo].[_Items] ON
        Insert InTo 
[SRO_VT_SHARD].[dbo].[_Items]
        (
ID64,RefItemID,OptLevel,Variance,Data,CreaterName,MagParamNum,MagParam1,MagParam2,MagParam3,MagParam4,MagParam5,MagParam6,MagParam7,MagParam8,MagParam9,MagParam10,MagParam11,MagParam12,Serial64)
        
Values (@ID64,@RefItemID,0,0,0,'iLegend',2,30064771305,30064771304,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@SN)
        
SET IDENTITY_INSERT [SRO_VT_SHARD].[dbo].[_Items] OFF
        Insert InTo 
[SRO_VT_SHARD].[dbo].[_ItemPool] Values (@ID64,1)
        
Update [SRO_VT_SHARD].[dbo].[_InventoryForAvatar] Set ItemID = @ID64 Where CharID = @CharID and Slot = 3
       End
    End
        
  
Else
    
    -- IF 
Char Gender = [F]
    -- =====================
   IF (@
RefObjID Between 1920 and 1932) Or (@RefObjID Between 14888 and 14900)
    
Begin
    
-- Step 1 : *If item exist in the selected slot.
    -- 
Actions :
    -- 
1- Update the exist item by a new parameters that we want.
    -- =================================================================
      IF (@
ItemID > 0)
       
Begin
        Update 
[SRO_VT_SHARD].[dbo].[_Items] Set OptLevel = 0 , CreaterName = 'iLegend' , MagParamNum = 2 , MagParam1 = 30064771305 , MagParam2 = 30064771304
        Where ID64 
= @ItemID
       End
    
-- Step 2 : *If item not exist in the selected slot and free item is exist from dbo._ItemPool.
    -- 
Actions :
    -- 
1- Update the free item by a new parameters that we want.
    -- 
2- Update dbo.ItemPool for change the free item to InUse Item.
    -- 
3- Update the free slot item to the updated item that we do.
    -- =================================================================
      IF (@
ItemID = 0) and (@FreeItemID > 0)
       
Begin
        Set 
@RefItemID = 9375
        Update 
[SRO_VT_SHARD].[dbo].[_Items] Set RefItemID=@RefItemID,OptLevel=0,Variance=0,Data=0,CreaterName='iLegend',MagParamNum=2,MagParam1=30064771305,MagParam2=30064771304,MagParam3=NULL,MagParam4=NULL,MagParam5=NULL,MagParam6=NULL,MagParam7=NULL,MagParam8=NULL,MagParam9=NULL,MagParam10=NULL,MagParam11=NULL,MagParam12=NULL
        Where ID64 
= @FreeItemID  -- Female Item ID
        Update 
[SRO_VT_SHARD].[dbo].[_ItemPool] Set InUse = 1 Where ItemID = @FreeItemID
        Update 
[SRO_VT_SHARD].[dbo].[_InventoryForAvatar] Set ItemID = @FreeItemID Where CharID = @CharID and Slot = 3
       End
    
-- Step 3 : *If item not exist in the selected slot and item free is not exist from dbo._ItemPool.
    -- 
Actions :
    -- 
1- Create new item in dbo._Items by a new parameters that we want.
    -- 
2- Create a line in dbo.ItemPool for make the new item to InUse Item.
    -- 
3- Update the free slot item to the created item that we create.
    -- =================================================================
      IF (@
ItemID = 0) and (@FreeItemID = 0)
       
Begin
        Exec 
[SRO_VT_SHARD].[dbo].[_GetLatestItemSerial] @SN
        Set 
@RefItemID = 9375  -- Female Item ID
        SET IDENTITY_INSERT 
[SRO_VT_SHARD].[dbo].[_Items] ON
        Insert InTo 
[SRO_VT_SHARD].[dbo].[_Items]
        (
ID64,RefItemID,OptLevel,Variance,Data,CreaterName,MagParamNum,MagParam1,MagParam2,MagParam3,MagParam4,MagParam5,MagParam6,MagParam7,MagParam8,MagParam9,MagParam10,MagParam11,MagParam12,Serial64)
        
Values (@ID64,@RefItemID,0,0,0,'iLegend',2,30064771305,30064771304,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@SN)
        
SET IDENTITY_INSERT [SRO_VT_SHARD].[dbo].[_Items] OFF
        Insert InTo 
[SRO_VT_SHARD].[dbo].[_ItemPool] Values (@ID64,1)
        
Update [SRO_VT_SHARD].[dbo].[_InventoryForAvatar] Set ItemID = @ID64 Where CharID = @CharID and Slot = 3
       End
    End 








توقيع Dev. iLegend :
Skype : dev.ramy1
Facebook : عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
Yahoo : [email protected]
-----------------------------------------
My Intro



-----------------------------------------


التعديل الأخير تم بواسطة Dev. iLegend ; 14-02-2015 الساعة 10:38 PM

رد مع اقتباس
إعلانات google

 


يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر)
 

ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى الردود آخر مشاركة
New Devil Scroll Switch Gander With Return Scroll محمد منتصر قسم الشروحات و البرامج المستخدمة في عمل السيرفرات الخاصة 0 24-12-2022 06:59 PM
Silk Scroll Procedure BlackClover قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة 2 07-04-2020 07:42 PM
مشكلة في Procedure لـSkill Scroll iRock قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة 5 03-12-2019 10:42 PM
حصريا لاول مرة علي سيلكرود4عرب : Blue Devil Scroll Procedure Story-Sro Owner قسم الشروحات و البرامج المستخدمة في عمل السيرفرات الخاصة 26 18-09-2018 06:48 AM
طلب scroll make items full bule mohamed oka قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة 3 12-10-2016 03:44 PM


الساعة الآن 06:24 AM.