Kayıt Ol
[-]
monetization_on Reklam Alanı
Reklam vermek istiyorum?

[vSRO] Forgotten World DC Fix


view_headline Konu
21.02.2016, Saat: 15:20
#1
hackedbypa$a
hackedbypa$a
Konuları:
52
Yorumları:
266
Kayıt Tarihi:
29.01.2016
Rep Puanı:
2
verified_user SQLSorumlusu
[vSRO] Forgotten World DC Fix
Kod:
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 (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 and @Serial64=0) or (@JobID = 2 and @Category = 2 and @Serial64=0)  --For Guild and CharJob            
     if (@JobID = 1 and @Category = 2 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 <> 0 or @@rowcount = 0)
                
                return -3
     return @NewJobID


Kodu SRO_VT_SHARD'a New Query ile Execute edin. 1 Teşekkür Yeterlidir Smile
Cevapla



Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Vsro Görev ile İtem Verme Server Edit 12 1,958 21.06.2017, Saat: 23:44
Son Yorum: _OrdeaL_
Wink Vsro Eu Açma metehan463 1 99 18.06.2017, Saat: 14:57
Son Yorum: GeneralRed
  vSro Patch Atma - Versiyon Ayarlama [VİDEOLU] HistoricaL 14 509 16.06.2017, Saat: 12:07
Son Yorum: karambole
Brick vSro 11DG Nova Drop Ayarlama GeneralRed 3 174 16.06.2017, Saat: 03:37
Son Yorum: GeneralRed

Hızlı Menü:



[-]
monetization_on Reklam (728x90)
Reklam Ver
Reklam vermek istiyorum?