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

vSRO Guild Player Limit


view_headline Konu
22.02.2016, Saat: 11:43
#1
hackedbypa$a
hackedbypa$a
Konuları:
52
Yorumları:
266
Kayıt Tarihi:
29.01.2016
Rep Puanı:
2
verified_user SQLSorumlusu
vSRO Guild Player Limit
Kod:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_Guild_FnAddMember]    Script Date: 15.06.2014 11:08:20 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO




ALTER PROCEDURE [dbo].[_Guild_FnAddMember]
@guildID        int,
@MemberID     int,
@MemberClass    tinyint,
@joinDate     smalldatetime,
@permission     int    
    
as
Declare @LiMiT int = '24' -- << Userr Limit Credits by $Apollo
    if (exists (select CharID from _GuildMember where CharID = @MemberID))
    begin
        return -1001
    end


    declare @MemberName    varchar(64)
    declare @curLevel    tinyint
    select @MemberName = CharName16, @curLevel = CurLevel from _Char with (nolock) where CharID = @MemberID
    if (@@error <> 0 or @@rowcount = 0)
    begin
        return -1
    end
    if (exists (select CharID from _GuildMember with (nolock) where GuildID = @guildID and CharID = @MemberID))
    begin
        return -2
    end
    
        declare @ReFObjID int
    select @ReFObjID = RefObjID from _Char with (nolock) where CharID = @MemberID
    
    if (@@error <> 0 or @@rowcount = 0)
    begin
        return -5
    end






    declare @siegeAuthority tinyint
    set @siegeAuthority = 0


    if @MemberClass = 0  -- ±æ¸¶ÀÌ¸é °ø¼º±ÇÇÑÀ» commander·Î ¼¼ÆÃ! ±× ¿Ü´Â ÀÏ¹Ý member·Î ¼¼ÆÃÇÑ´Ù.
    begin
        set @siegeAuthority = 1
    end
    Declare @GC int = (Select COUNT(*) from _GuildMember where GuildID = @guildID )
   if @GC  <= @LiMiT begin
    insert _GuildMember values @guildID, @MemberID, @MemberName, @MemberClass, @curLevel, 0, @joinDate @permission, 0, 0, 0, null, @ReFObjID, @siegeAuthority)
    end
    if (@@error <> 0 or @@rowcount = 0)
    begin
        return -3
    end
    
       if @GC  <= @LiMiT begin  
    update _Char Set GuildID = @guildID where CharID = @MemberID
    end
    if (@@error <> 0 or @@rowcount = 0)
    begin
        return -4
    end
    return 1


24 Yazan Yer Guild Player Limittir Shard a Excute Ediniz :)
Cevapla

24.12.2016, Saat: 00:08
#2
Silkroad
Silkroad
Konuları:
16
Yorumları:
61
Kayıt Tarihi:
21.12.2016
Rep Puanı:
0
verified_user Usta Üye
RE: vSRO Guild Player Limit
#YorumumBulunsun
Cevapla


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

Hızlı Menü:



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