الموضوع: ممكن مسعدة
عرض مشاركة واحدة
قديم 01-01-2016, 07:29 PM   #5

Just4Fun_UA



الصورة الرمزية Just4Fun_UA


• الانـتـسـاب » May 2015
• رقـم العـضـويـة » 121596
• المشـــاركـات » 65
• الـدولـة » GB
• الـهـوايـة » miMobXD
• اسـم الـسـيـرفـر » Private Server
• الـجـنـس » Male
• نقـاط التقييم » 20
Just4Fun_UA صـاعـد

Just4Fun_UA غير متواجد حالياً


إرسال رسالة عبر ICQ إلى Just4Fun_UA إرسال رسالة عبر AIM إلى Just4Fun_UA إرسال رسالة عبر Yahoo إلى Just4Fun_UA

افتراضي رد: ممكن مسعدة



كود PHP:
USE [SRO_VT_SHARDLOG]
GO
/****** Object:  StoredProcedure [dbo].[_AddLogItem]    Script Date: 1/1/2016 10:54:56 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

-------------------------------------------------------------------------------------------------------------------
-- 
Step 2
-- ±âÁ¸ ¾ÆÀÌÅÛ ·Î±× ÀԷ Stored procedure ¼öÁ¤
-- DataBase            : Shard Log  
ALTER  procedure 
[dbo].[_AddLogItem]  
  @
CharID  int,  
  @
ItemRefID int,  
  @
ItemSerial bigint,  
  @
dwData int,  
  @
TargetStorage tinyint,  
  @
Operation tinyint,  
  @
Slot_From tinyint,  
  @
Slot_To tinyint,  
  @
EventPos varchar(64),  
  @
strDesc varchar(128),
  @
Gold        bigint            -- #ifdef EXTEND_GOLD_TYPE »ðÀÔ   
  
as  
   declare @
len_pos int  
   
declare @len_desc int  
   set 
@len_pos = len(@EventPos)  
   
set @len_desc = len(@strDesc)  
   if (@
len_pos > 0 and @len_desc > 0)  
   
begin  
        
return -1
     end  
   
else if (@len_pos > 0 and @len_desc = 0)  
   
begin  
        
return -1
     end  
    
else if (@len_pos = 0 and @len_desc > 0)  
   
begin  
        
return -1
     end  
   
else if (@len_pos = 0 and @len_desc = 0)  
   
begin  
        
return -1
     end  
    
-- À¯·á ¾ÆÀÌÅÛ ±¸ÀÔÀ̸é!  
   
-- #define LOG_ITEMEVENT_BUY_CASHITEM  (BYTE)35  
   
if (@Operation = 35)  
  
begin  
        
return -1
     end  
 
--> Weapon Stat Scrolls :
   -- 
Weapon 61%
  IF (@
Operation = 41) and (@ItemRefID = 50235) 
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '21059194464',MagParamNum = '5' , MagParam1 = '34359738807' , MagParam2 = '34359738808' , MagParam3 = '429496730043' , MagParam4 = '858993459641' , MagParam5 = '257698038202' Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '6' and ItemID > 0)
    
End
   
-- Weapon 80%
  IF (@
Operation = 41) and (@ItemRefID = 50236) 
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '27709466400',MagParamNum = '5' , MagParam1 = '34359738807' , MagParam2 = '34359738808' , MagParam3 = '429496730043' , MagParam4 = '858993459641' , MagParam5 = '257698038202' Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '6' and ItemID > 0)
   
End 
   
-- Weapon 100%
  IF (@
Operation = 41) and (@ItemRefID = 50237)
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '34359738367',MagParamNum = '5' , MagParam1 = '34359738807' , MagParam2 = '34359738808' , MagParam3 = '429496730043' , MagParam4 = '858993459641' , MagParam5 = '257698038202' Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '6' and ItemID > 0)
   
End

--> Shield Stat Scrolls :
   -- 
SH 61%
  IF (@
Operation = 41) and (@ItemRefID = 50238)
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='4 ',MagParam1='858993459291',MagParam2= '429496729727',MagParam3='34359738447',MagParam4= '34359738441',MagParam5= '257698038202' Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '7' and ItemID > 0)
   
End
   
-- SH 80%
  IF (@
Operation = 41) and (@ItemRefID = 50239)
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '865920825',MagParamNum='4 ',MagParam1='858993459291',MagParam2= '429496729727',MagParam3='34359738447',MagParam4= '34359738441',MagParam5= '257698038202' Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '7' and ItemID > 0)
   
End
   
-- SH 100%
  IF (@
Operation = 41) and (@ItemRefID = 50240)
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '1073741823',MagParamNum='4 ',MagParam1='858993459291',MagParam2= '429496729727',MagParam3='34359738447',MagParam4= '34359738441',MagParam5= '257698038202' Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '7' and ItemID > 0)
   
End

--> Armor Stat Scrolls :
   -- 
AR 61%
  IF (@
Operation = 41) and (@ItemRefID = 50241)
   
Begin
    Update 
[SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='6',MagParam1='34359738808',MagParam2= '858993459641',MagParam3='34359738807',MagParam4 = '7301444403647',MagParam5= '7301444403646',MagParam6= '257698038205'  Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '0' and ItemID > 0)
    
Update [SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='6',MagParam1='34359738808',MagParam2= '858993459641',MagParam3='34359738807',MagParam4 = '7301444403647',MagParam5= '7301444403646',MagParam6= '257698038205'  Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '1' and ItemID > 0)
    
Update [SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='4',MagParam1='34359738808',MagParam2= '34359738807',MagParam3='858993459641',MagParam4= '257698038205'  Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '2' and ItemID > 0)
    
Update [SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='4',MagParam1='34359738808',MagParam2= '34359738807',MagParam3='858993459641',MagParam4= '257698038205'  Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '3' and ItemID > 0)
    
Update [SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='6',MagParam1='34359738808',MagParam2= '858993459641',MagParam3='34359738807',MagParam4 = '7301444403647',MagParam5= '7301444403646',MagParam6= '257698038205'  Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '4' and ItemID > 0)
    
Update [SRO_VT_SHARD].[dbo].[_Items] Set Variance = '658099827',MagParamNum='4',MagParam1='34359738808',MagParam2= '34359738807',MagParam3='858993459641',MagParam4= '257698038205'  Where ID64 = (Select ItemID From [SRO_VT_SHARD].[dbo].[_Inventory] Where CharID = @CharID and Slot = '5' and ItemID > 0)
   
End 
اقتباس:
المشاركة الأصلية كتبت بواسطة Dangers SrO مشاهدة المشاركة
هات. ال _AddLogItem كلو وانا اضفهلك فيهاا


توقيع Just4Fun_UA :
Super رasual Dating