الموضوع: DC After 10MinT
عرض مشاركة واحدة
قديم 12-03-2017, 10:37 AM   #2

Dev.Klito
عضو لامع



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


• الانـتـسـاب » Dec 2015
• رقـم العـضـويـة » 128556
• المشـــاركـات » 1,336
• الـدولـة » 3mrany
• الـهـوايـة » Design-MySQL-C#-HTML-CSS3-WinServer-More
• اسـم الـسـيـرفـر » Aquarius
• الـجـنـس » Male
• نقـاط التقييم » 47
Dev.Klito صـاعـد

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



افتراضي رد: DC After 10MinT



الداتا اللى انا واخدها دى متعدل فيها فى الــ _AddLogChar غلط جرب اعمل دى و شوف

كود PHP:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddLogItem]    Script Date: 3/12/2017 10:33:07 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO


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)
        as
            declare @
len_pos int
            
declare @len_desc int
            set 
@len_pos len(@EventPos)
            
set @len_desc len(@strDesc)
            if (@
len_pos and @len_desc 0)
            
begin
                insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_ToEventPosstrDescSerial64)
                
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @strDesc, @ItemSerial)
            
end
            
else if (@len_pos and @len_desc 0)
            
begin
                insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_ToEventPosSerial64)
                
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @ItemSerial)
            
end
            
else if (@len_pos and @len_desc 0)
            
begin
                insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_TostrDescSerial64)
                
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @strDesc, @ItemSerial)
            
end
            
else if (@len_pos and @len_desc 0)
            
begin
                insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_ToSerial64)
                
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @ItemSerial)
            
end
            
-- 유료 아이템 구입이면!
            
-- #define LOG_ITEMEVENT_BUY_CASHITEM        (BYTE)35
            
if (@Operation 35)
            
begin
                insert _LogCashItem 
(RefItemIDCharIDCntEventTimeSerial64)
                
values(@ItemRefID, @CharID, @dwDataGetDate(), @ItemSerial)
            
end 


توقيع Dev.Klito :
I don't care who took my place after me because the remains of the wolves are taken only by dogs