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

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

ahmed mohmed 10-11-2014 02:44 PM

Guild
 
كنت عايز اعرف ازاى اخلى الناس فى الجيم تدخل جيلد فى نفس اليوم مش لازم تقعد 3 ايام ياريت حد يقولى وشكررا مقدما

Mahmoud Rashwan 10-11-2014 03:52 PM

اتفضل
كود PHP:

USE SRO_VT_SHARD /*  By ™BaZzZoKa™ */ 
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 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 


ahmed mohmed 10-11-2014 11:37 PM

اقتباس:

المشاركة الأصلية كتبت بواسطة Nour_Eldin (المشاركة 5132277)
اتفضل
كود PHP:

USE SRO_VT_SHARD /*  By ™BaZzZoKa™ */ 
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 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 


هعدل فيه حاجة يا باشا ولا اضيفه على كدا ؟؟

Mahmoud Rashwan 11-11-2014 12:06 AM

على كدا

ahmed mohmed 11-11-2014 12:25 AM

اقتباس:

المشاركة الأصلية كتبت بواسطة Nour_Eldin (المشاركة 5132473)
على كدا

تمام ياباشا تسلم تعبتك معايا

Mahmoud Rashwan 11-11-2014 01:12 AM

##


الساعة الآن 04:46 AM.

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