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

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

Dark_Legend 06-03-2018 11:46 PM

مشكله في ال Forgetten world
 
كل لما بدخل بيجيلي Dc
ايه الحل !

mohamed habib 09-03-2018 12:23 AM

رد: مشكله في ال Forgetten world
 
استخدم دا في AddTimedJob..ولو فية حاجة منضافة فية زي اسكرولات خدها وضيفها هنا
كود PHP:

USE [SRO_VT_SHARD]
GO
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 (nolockwhere 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 and @Category and @Serial64=0) or (@JobID and @Category and @Serial64=0)  --For Guild and CharJob            
     
if (@JobID and @Category and @Serial64=0)   --Only for Guild
            BEGIN
            set 
@CharID 0            
            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
            
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 <> or @@rowcount 0)
                
                return -
3
     
return @NewJobID  
--é£ژن؛‘ن¸‌è·¯ 


Dark_Legend 09-03-2018 02:43 PM

رد: مشكله في ال Forgetten world
 
اقتباس:

المشاركة الأصلية كتبت بواسطة mohamed habib (المشاركة 5341741)
استخدم دا في AddTimedJob..ولو فية حاجة منضافة فية زي اسكرولات خدها وضيفها هنا
كود PHP:

USE [SRO_VT_SHARD]
GO
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 (nolockwhere 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 and @Category and @Serial64=0) or (@JobID and @Category and @Serial64=0)  --For Guild and CharJob            
     
if (@JobID and @Category and @Serial64=0)   --Only for Guild
            BEGIN
            set 
@CharID 0            
            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
            
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 <> or @@rowcount 0)
                
                return -
3
     
return @NewJobID  
--é£ژن؛‘ن¸‌è·¯ 



تسلم يا كبير ^^

افندينا ™Hamboka™ 09-03-2018 04:58 PM

رد: مشكله في ال Forgetten world
 
##


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

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.