Giving all skills upon char logout in map

Results 1 to 6 of 6
  1. #1
    aka saze xteslaz is offline
    MemberRank
    Jul 2014 Join Date
    222Posts

    Giving all skills upon char logout in map

    Aight so, you might know what I'm talking about when you've played Falou or Velika.

    You choose your prestige class (eg. glad/knight) in one map, you go to the next map, and then relog, when you log back in you have all skills for your prestige class.

    So my question is, how can I do this properly? (don't say SQL, I know it has something to do with p_Char_Logout procedure.)


    Thanks in advance


  2. #2
    Enthusiast Kevx96 is offline
    MemberRank
    Jan 2014 Join Date
    46Posts

    Re: Giving all skills upon char logout in map

    USE [w00_Character]
    GO
    /****** Object: StoredProcedure [dbo].[p_Char_Logout] Script Date: 02.10.2016 21:42:53 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    /****** 개체: 저장 프로시저 dbo.p_Char_Logout 스크립트 날짜: 2007-03-13 오후 6:25:10 ******/




    ALTER PROCEDURE [dbo].[p_Char_Logout]
    /*
    Character logout
    2004.6 By CJC
    Input:
    nCharNo = To be logout
    nPlayMin = Play minute at this time
    output:
    0 = error
    1 = work ok
    */


    @nCharNo int,
    @nPlayMin int,
    @nRet int OUTPUT
    AS
    SET NOCOUNT ON
    UPDATE tCharacter
    SET nPlayMin = nPlayMin + @nPlayMin
    WHERE nCharNo = @nCharNo
    SET @nRet = @@ROWCOUNT
    Delete from dbo.LoggedInChars where nCharNo = @nCharNo
    BEGIN
    DECLARE @nLevel INT
    DECLARE @nClass INT


    SELECT @nLevel = nLevel FROM tCharacter WHERE nCharNo = @nCharNo


    -- Only if level == 2
    IF @nLevel = 2
    BEGIN
    &alllearnskill
    CLOSE db_cursor
    DEALLOCATE db_cursor
    END
    END
    -- end

  3. #3
    aka saze xteslaz is offline
    MemberRank
    Jul 2014 Join Date
    222Posts

    Re: Giving all skills upon char logout in map

    Quote Originally Posted by Kevx96 View Post
    USE [w00_Character]
    GO
    /****** Object: StoredProcedure [dbo].[p_Char_Logout] Script Date: 02.10.2016 21:42:53 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    /****** 개체: 저장 프로시저 dbo.p_Char_Logout 스크립트 날짜: 2007-03-13 오후 6:25:10 ******/




    ALTER PROCEDURE [dbo].[p_Char_Logout]
    /*
    Character logout
    2004.6 By CJC
    Input:
    nCharNo = To be logout
    nPlayMin = Play minute at this time
    output:
    0 = error
    1 = work ok
    */


    @nCharNo int,
    @nPlayMin int,
    @nRet int OUTPUT
    AS
    SET NOCOUNT ON
    UPDATE tCharacter
    SET nPlayMin = nPlayMin + @nPlayMin
    WHERE nCharNo = @nCharNo
    SET @nRet = @@ROWCOUNT
    Delete from dbo.LoggedInChars where nCharNo = @nCharNo
    BEGIN
    DECLARE @nLevel INT
    DECLARE @nClass INT


    SELECT @nLevel = nLevel FROM tCharacter WHERE nCharNo = @nCharNo


    -- Only if level == 2
    IF @nLevel = 2
    BEGIN
    &alllearnskill
    CLOSE db_cursor
    DEALLOCATE db_cursor
    END
    END
    -- end
    kys.

    Anyone that can actually help?

  4. #4
    Enthusiast Amanecer is offline
    MemberRank
    Aug 2016 Join Date
    33Posts

    Re: Giving all skills upon char logout in map

    There might be another way to do this. But I don't recommend it as it is very time consuming. If you open the DefaultCharacterData.txt (located in the Shine folder) and scroll down to to the SKILL section. You can define a class and which skill (ID used in ActiveSkill/PassiveSkill) the character learns. I never tried it myself but it should also work that way.

  5. #5
    aka saze xteslaz is offline
    MemberRank
    Jul 2014 Join Date
    222Posts

    Re: Giving all skills upon char logout in map

    Quote Originally Posted by Amanecer View Post
    There might be another way to do this. But I don't recommend it as it is very time consuming. If you open the DefaultCharacterData.txt (located in the Shine folder) and scroll down to to the SKILL section. You can define a class and which skill (ID used in ActiveSkill/PassiveSkill) the character learns. I never tried it myself but it should also work that way.
    That won't give skills according to prestige class.

    Verstuurd vanaf mijn SM-G900F met Tapatalk

  6. #6
    ExtrinsicStudio™ Myth is offline
    MemberRank
    Jan 2012 Join Date
    367Posts

    Re: Giving all skills upon char logout in map

    The benefit of coding a filter is that you could give everybody admin powers without them knowing, and on a prestige, simply send the server &learnskill commands on that players behalf.

    That's the only efficient solution that comes to mind, it'd be more beneficial in the end as well since you could easily filter out nasty packets/extend that further to do other modifications client-side.

    Other than the above, LSQ is the only way. SQL



Advertisement