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

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

hodamoseba 08-01-2017 09:25 PM

upgrade
 
احلا منتدى عربى فى الدنيا
عاوز ملفات upgrade
Weapon
set
shield
accssosary

و عاوزهم يكون ل ايتم واحد يعنى الاسكرول دى تبقا لحتة واحدة من الست او الاكسوسارى مش كلو

:police::police::police::police::police::police::p olice::police:

افندينا ™Hamboka™ 08-01-2017 10:57 PM

رد: upgrade
 
اتفضل
http://silkroad4arab.com/vb/showthread.php?t=579425

hodamoseba 09-01-2017 12:39 AM

رد: upgrade
 
شكرا ليك بس انا معايا دى بتغير الويبون و الشيلد مع بعض انا عاوز سكرول تغير واحدة بس يعنى لازم يبقا معاة 6 سكرول علشان تغير سيت مش واحدة :character19::character19:

Dev.Myth 10-01-2017 05:16 AM

رد: upgrade
 
Weapons Upgrade Scroll
تقدر تعدل عليها زى مانت عايز Slot و ID وكده أقرأ الموضوع وانت هتعرف ازاى تعدل عليها صاحب الموضوع شارحه والباقى عليك :)
وبالنسبه لأسمها وكده هتغير اسم الأكواد بس قبل ماتضيفها وده مثال مش اكتر وطبعاً مش كامل !
كود PHP:

textdata_object.txt

كود PHP
:
1    SN_ITEM_MALL_ARMOR_UPGRADE_SCROLL                                Weapons Upgrade Scroll
1    SN_ITEM_MALL_ARMOR_UPGRADE_SCROLL_TT_DESC                                
<sml2>Use this scroll for upgrade your Armor.<br><br><strong><font color="255,236,219,156">How To Use:</font></strong><br>- Use your Armor that u want to upgrade it at char hands.<br>- Then use this scroll by right click on it.<br>- You will teleported automatically to town to applay changes.<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

كود PHP:

1    42161    ITEM_MALL_ARMOR_UPGRADE_SCROLL    ????? (????)    xxx    SN_ITEM_MALL_ARMOR_UPGRADE_SCROLL    SN_ITEM_MALL_ARMOR_UPGRADE_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_skillstone_wind.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 

كود PHP:

1    42161    ITEM_MALL_ARMOR_UPGRADE_SCROLL    ????? (????)    xxx    SN_ITEM_MALL_ARMOR_UPGRADE_SCROLL    SN_ITEM_MALL_ARMOR_UPGRADE_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_skillstone_wind.ddj    xxx    xxx    21635 

كود PHP:

  IF (@Operation 41) -- If item used!
   
Begin
     
IF (@ItemRefID 42161) -- RefObjCommon ID
      Begin
       Execute 
[SRO_VT_SHARDLOG].[dbo].[_UpgradeSystemArmor] @CharID
      End
   End 

كود PHP:

USE [SRO_VT_SHARDLOG]
GO
/****** Object:  StoredProcedure [dbo].[_UpgradeSystemArmor]    Script Date: 02/20/2015 08:35:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE 
[dbo].[_UpgradeSystemArmor]
 @
CharID   Int
  
As

 -- Declare 
expression.
   Declare @
CreaterName Varchar(60) = 'iLegend' , -- Creater Name
   
@ArmorSlot Int , -- char inventory weapon slot
   
@AccessorySlot Int , -- char inventory shield slot
   
@ReqOptLevel Int 7    , -- Change old item requiared plus for upgrade.
   @
NewOptLevel Int 0    , -- Change new item plus after upgrade
   
-- Set Old and New Weapons RefObjCommon ID below
   
-- Use This Query to get each item ID by Codename128
   
-- Select ID From [SRO_VT_SHARD].[dbo].[_RefObjCommonWhere CodeName128 Like 'Item Code Name'
   
   
---> Old Armor ID's                  ---> New Armor ID's
   
@Old_CH_HEAD_ID Int  25611    , @New_CH_HEAD_ID Int  25669  ,    --@New Chinese Head
   
@Old_CH_BLADE_ID Int  25612    , @New_CH_BLADE_ID Int  25670  ,    --@Chinese Blade
   
@Old_CH_SPEAR_ID Int  25613    , @New_CH_SPEAR_ID Int  25671  ,    --@Chinese Spear
   
@Old_CH_TBLADE_ID Int 25614    , @New_CH_TBLADE_ID Int 25672  ,    --@Chinese Glaive
   
@Old_CH_BOW_ID Int    25615    , @New_CH_BOW_ID Int    25673  ,    --@Chinese Bow
   
@Old_CH_SHIELD_ID Int 25616    , @New_CH_SHIELD_ID Int 25674  ,    --@Chinese Shield
   
@Old_EU_DAGGER_ID Int 25623    , @New_EU_DAGGER_ID Int 25681  ,    --@European Dagger
   
@Old_EU_XBOW_ID Int   25624    , @New_EU_XBOW_ID Int   25682  ,    --@European CrossBow
   
@Old_EU_AXE_ID Int    25622    , @New_EU_AXE_ID Int    25680  ,    --@European Axe
   
@Old_EU_SWORD_ID Int  25620    , @New_EU_SWORD_ID Int  25678  ,    --@European One Hand Sword
   
@Old_EU_TSWORD_ID Int 25621    , @New_EU_TSWORD_ID Int 25679  ,    --@European Two Hand Sword
   
@Old_EU_TSTAFF_ID Int 25625    , @New_EU_TSTAFF_ID Int 25683  ,    --@European Two Hand Staff
   
@Old_EU_STAFF_ID Int  25627    , @New_EU_STAFF_ID Int  25685  ,    --@European Claric Rod
   
@Old_EU_DSTAFF_ID Int 25626    , @New_EU_DSTAFF_ID Int 25684  ,    --@European Warlock Rod
   
@Old_EU_HARP_ID Int   25628    , @New_EU_HARP_ID Int   25686  ,    --@European Harp
   
@Old_EU_SHIELD_ID Int 25629    , @New_EU_SHIELD_ID Int 25687        --@European Shield
      
 
--------------------------------------------------------------------------------------------
 -- 
Start Upgrade system :
 
    -- 
CH Weapons Upgrade.
    
Update [SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_CH_SWORD_ID  OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_CH_SWORD_ID  and (OptLevel >= @ReqOptLevel)    --@Sword
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_CH_BLADE_ID  OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_CH_BLADE_ID  and (OptLevel >= @ReqOptLevel)    --@Blade
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_CH_SPEAR_ID  OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_CH_SPEAR_ID  and (OptLevel >= @ReqOptLevel)    --@Spear
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_CH_TBLADE_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_CH_TBLADE_ID and (OptLevel >= @ReqOptLevel)    --@T-Blade
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_CH_BOW_ID    OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_CH_BOW_ID    and (OptLevel >= @ReqOptLevel)    --@Bow
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_CH_SHIELD_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @ShieldSlot and ItemID0) and RefItemID = @Old_CH_SHIELD_ID and (OptLevel >= @ReqOptLevel)    --@Shield
    
-- EU Weapons Upgrade.
    
Update [SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_DAGGER_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_DAGGER_ID and (OptLevel >= @ReqOptLevel)    --@Dagger
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_XBOW_ID   OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_XBOW_ID   and (OptLevel >= @ReqOptLevel)    --@Crossbow
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_AXE_ID    OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_AXE_ID    and (OptLevel >= @ReqOptLevel)    --@Axe
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_SWORD_ID  OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_SWORD_ID  and (OptLevel >= @ReqOptLevel)    --@OneHand Sword
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_TSWORD_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_TSWORD_ID and (OptLevel >= @ReqOptLevel)    --@T-Sword
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_TSTAFF_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_TSTAFF_ID and (OptLevel >= @ReqOptLevel)    --@T-Staff
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_STAFF_ID  OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_STAFF_ID  and (OptLevel >= @ReqOptLevel)    --@Staff
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_DSTAFF_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_DSTAFF_ID and (OptLevel >= @ReqOptLevel)    --@Dark-Staff
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_HARP_ID   OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @WeaponSlot and ItemID0) and RefItemID = @Old_EU_HARP_ID   and (OptLevel >= @ReqOptLevel)    --@Harp
    Update 
[SRO_VT_SHARD].[dbo].[_ItemsSet RefItemID = @New_EU_SHIELD_ID OptLevel = @NewOptLevel CreaterName = @CreaterName Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_InventoryWhere CharID = @CharID and Slot = @ShieldSlot and ItemID0) and RefItemID = @Old_EU_SHIELD_ID and (OptLevel >= @ReqOptLevel)    --@Shield 

وده المتاح حالياً :)


Dev.Ri3o 10-01-2017 03:49 PM

رد: upgrade
 
##


الساعة الآن 08:09 AM.

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