[FIX] Delete Char Error - Global Manager!

Results 1 to 6 of 6
  1. #1
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    ! [FIX] Delete Char Error - Global Manager!

    So, i just realized that these are stolen test files >.< and there are like 25-30 estimated missing tables! I would love this thread to stay here because its also a discussion thread! And i need as much help as possible and contribution from this community. Stop Being dead guys, go out there and search with me! Lets develop this piece of shit files!



    Information and how i came to this?
    - I run 2 servers "Perfection Online" and there are thousands of players online, with this i can test just about anything. And i released some seriously major long term damage o.O haha!


    ---------------------------------------------------------------------------------
    -- Current Releases Below Here
    ---------------------------------------------------------------------------------

    Missing Table:
    SR_CharAppoint
    Place it in: SRO_VT_ACCOUNTS
    Linked SP: _ManageShardCharNames
    Description:
    Missing Reference Data!

    Problems: [In-complete]
    - Notice that in this stored procedure, it does exactly the same thing for both tables, where it should actually be referencing CharID = actual CharID not CharName but don't worry, i will find the rest and fix it soon!. But for now! this is step 1/3 and not Complete! So don't use it on official server stuff yet! Or you can just easily disable the CharAppoint fields? idk do as you like!

    Create the SR_CharAppoint table using this query:
    PHP Code:
    USE [SRO_VT_ACCOUNT]
    GO
    /****** CopyRighted by Jangan @ Ragezone.com ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE 
    [dbo].[SR_CharAppoint](
        [
    UserJID] [intNOT NULL,
        [
    ShardID] [intNOT NULL,
        [
    CharID] [varchar](64NOT NULL
    ON [PRIMARY]

    GO
    SET ANSI_PADDING OFF 
    apply the
    _ManageShardCharNames query:
    PHP Code:
    USE [SRO_VT_ACCOUNT]
    GO
    /****** CopyRighted by Jangan @ Ragezone.com ******/
    SET ANSI_NULLS OFF
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    ALTER procedure 
    [dbo].[_ManageShardCharName]
        @
    job        tinyint,
        @
    UserJID       int,
        @
    ShardID       smallint,
        @
    CharName     varchar(64),
        @
    OldName     varchar(64)
    as
        -- 
    add new char name
        
    if (@job 0)
        
    begin
            
    if (not exists(select from SR_ShardCharNames where UserJID =  @UserJID and ShardID = @ShardID and CharName = @CharName))
            
    begin
                insert SR_ShardCharNames values
    (@UserJID, @ShardID, @CharName)
            
    end
            
    if (not exists(select from SR_CharAppoint where UserJID = @UserJID and ShardID = @ShardID and CharID = @CharName))
            
    begin
                insert SR_CharAppoint values
    (@UserJID, @ShardID, @CharName)
            
    end
        end
        
    -- remove char name
        
    else if (@job 1)
        
    begin
            delete SR_ShardCharNames where UserJID 
    = @UserJID and ShardID = @ShardID and CharName = @CharName
            delete SR_CharAppoint    where UserJID 
    = @UserJID and ShardID = @ShardID and CharID = @CharName
        end
        
    -- rename previous one
        
    else if (@job 2)
        
    begin
            update SR_ShardCharNames set CharName 
    = @CharName where UserJID =  @UserJID and ShardID = @ShardID and CharName = @OldName
            update SR_CharAppoint set CharID 
    = @CharName where UserJID = @UserJID and ShardID = @ShardID and CharID = @OldName
        end 
    Last edited by Jangan; 24-10-11 at 06:56 AM.


  2. #2
    Cypher WireShark is offline
    MemberRank
    Jun 2009 Join Date
    Planet Earth xDLocation
    950Posts

    Re: [FIX] Delete Char Error - Global Manager!

    Thanks for this Jangan

  3. #3
    Developer sladlejrhfpq is offline
    MemberRank
    Oct 2011 Join Date
    671Posts

    Re: [FIX] Delete Char Error - Global Manager!

    thank you, hope you can fix it soon ^^

  4. #4
    Account Upgraded | Title Enabled! LastThief is offline
    MemberRank
    Aug 2010 Join Date
    204Posts

    Re: [FIX] Delete Char Error - Global Manager!

    if you wanna help i'm partly sql coder(not really pro 1 xDD)

    pm me at

    thelastthief <-- Skype

  5. #5
    S.W.A.T K4bo is offline
    MemberRank
    Apr 2012 Join Date
    EgyptLocation
    239Posts

    Re: [FIX] Delete Char Error - Global Manager!

    Awesome!

  6. #6
    NewEvolust.Com xxNukertube is offline
    MemberRank
    Jul 2012 Join Date
    Ceres, Goias, BLocation
    215Posts

    Re: [FIX] Delete Char Error - Global Manager!

    Nice !



Advertisement