الإعلانات
14-01-2014 12:59 PM
mirror تمام اتعمل يا ريت شرح ال Skilldata.enc بقى :D
14-01-2014 12:58 PM
mirror طيب ثوانى هجرب
14-01-2014 12:57 PM
mirror
كود:
USE [SRO_VT_SHARD__JOoOo]
GO
/****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 01/14/2014 01:55:33 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER   procedure [dbo].[_AddTimedJob]
@CharID            int,
@Category        tinyint,
@JobID            int,
@TimeToKeep    int,
@Data1            int,
@Data2            int,
--##begin due to develop composite item
@Data3            int,
@Data4            int,
@Data5            int,
@Data6            int,
@Data7            int,
@Data8            int,
@Serial64        bigint,
@JID            int
--##end due to develop composite item
as
    if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
                return -1
            if (@TimeToKeep <= 0)
                return -2
            declare @NewJobID int
            set @NewJobID = 0

            --##JobID 1 = Guild // JobID 2 = Thief/Hunter/Trader
            --##If you want to only have one not both, then just modify the line below!
 if (@JobID = 1 and @Category = 2 or @JobID = 2) 
            BEGIN 
                return -1 
            END 
            ELSE 
            BEGIN 
            --##begin due to develop composite item
            insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)
            values(@CharID, @Category, @JobID, @TimeToKeep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
            END
            --##end due to develop composite item
            set @NewJobID = @@identity
            if (@@error <> 0 or @@rowcount = 0)
                
                return -3
     return @NewJobID
احوطو فين ؟ بالظبط ؟
14-01-2014 12:53 PM
che_9299 لا انته هتمسح بس الجزء الخاص بالسكرولايه وتحطها فى المكان اللى بقولك عليه زى كده مثلا
كود:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 01/14/2014 11:51:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER   procedure [dbo].[_AddTimedJob]
@CharID            int,
@Category        tinyint,
@JobID            int,
@TimeToKeep    int,
@Data1            int,
@Data2            int,
--##begin due to develop composite item
@Data3            int,
@Data4            int,
@Data5            int,
@Data6            int,
@Data7            int,
@Data8            int,
@Serial64        bigint,
@JID            int
--##end due to develop composite item
as

if(@JobID = '1000012')
BEGIN 
UPDATE dbo._Char   SET HwanLevel = 9        Where	CharID	=	@CharID
END 

    if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
                return -1
            if (@TimeToKeep <= 0)
                return -2
            declare @NewJobID int
            set @NewJobID = 0

            --##JobID 1 = Guild // JobID 2 = Thief/Hunter/Trader
            --##If you want to only have one not both, then just modify the line below!
            if (@JobID = 1 or @JobID = 2)
            BEGIN
                insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)
                values(@CharID, @Category, @JobID, 1, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
            END
            ELSE
            BEGIN
                --##begin due to develop composite item
                insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)
                values(@CharID, @Category, @JobID, @TimeToKeep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)
            END
                --##end due to develop composite item
            set @NewJobID = @@identity
            if (@@error <> 0 or @@rowcount = 0)
          return -3
    return @NewJobID
14-01-2014 12:50 PM
mirror بوص معلش انا جديد دلوقتى هروح هناك اتك كليك يمين بعد كدة Modifed
بعد كدة امسح كل الى موجود واحطها ولا اعملى ايه ؟
14-01-2014 12:40 PM
che_9299 انته بتحطو فين بالظبط فى addtimed Jop
حطها بعد السطر ده
--##end due to develop composite item
as
هنا بالظبط
14-01-2014 12:05 PM
mirror
heeeeeeeeeeeeeeeeeeeeelp

يا ريت شرح ازاى احط حاجة فى ال سكيل داتا Enc
وال SkillEffect
تانى حاجة لما جيت اجرب موضوع الاستاذ Che
بتاع التايتل لما بحط ده انا مش عارف حطو صح ولا بس بيجبلى كدة

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

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


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