Classmasters with item support

    Share
    avatar
    Pandragon

    Posts : 19
    Join date : 2013-04-26

    Classmasters with item support

    Post  Pandragon on 28th January 2014, 10:36

    This is my adaptation of l2jserver Classmasters to l2jlisvus.

    I have not tested it too much, since I just made it, but it seems to work ok.

    Options added:
    Code:
    # ------------------------------------------------------------
    # Allow use Event Managers for changing occupation
    # ------------------------------------------------------------
    # Default: False
    AllowClassMasters = False

    # ConfigClassMaster=1;[57(100000)];[];2;[57(1000000)];[];3;[57(10000000)],[5575(1000000)];[6622(1)]
    # 1st occupation change for 100.000 Adena (item id 57)
    # 2nd occupation change for 1.000.0000 Adena (item id 57)
    # 3rd occupation change for 10.000.0000 Adena (item id 57) and 1.000.000 Ancient Adena (item id 5575)
    # on 3rd occupation change player will be rewarded with 1 Book of Giants (item id 6622)
    # ConfigClassMaster=1;[];[];2;[];[];3;[];[]
    # 1st, 2nd, 3rd occupation change for free, without rewards.
    # ConfigClassMaster=1;[];[];2;[];[]
    # Allow only first and second change.
    ConfigClassMaster = 1;[];[];2;[];[];3;[];[]

    # Class Masters will allow changing to any occupation on any level inside class tree
    # For example, Dwarven Fighter will be able to advance to:
    # Artisan, Scavenger, Warsmith, Bounty Hunter, Maestro, Fortune Seeker.
    # But Warsmith will be able to change only to Maestro.
    # Default = False
    AllowEntireTree = False

    # When character reach levels 20,40,76 he will receive tutorial page
    # with list of the all possible variants, and can select and immediately
    # change to the new occupation, or decide to choose later (on next login).
    # Can be used with or without classic Class Masters.
    # Default = False
    AlternateClassMaster = False

    Core Patch: http://pastebin.com/PxjfLjDX (updated 28/1/2014 3:22)
    Datapack Patch: http://pastebin.com/REQMGrm6

    avoegio

    Posts : 75
    Join date : 2014-04-18

    Classmaaster

    Post  avoegio on 12th July 2014, 16:01

    thank youu !!! you helped me very much
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Re: Classmasters with item support

    Post  yusuketh on 12th July 2014, 16:43

    thanks for sharing with us, it will help a lot.

    avoegio

    Posts : 75
    Join date : 2014-04-18

    Classmaaster

    Post  avoegio on 12th July 2014, 17:28

    classmaster is not reacting in game when pressing on change first class or second . in gameserver are no erros . whats wrong ?

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Classmasters with item support

    Post  DnR on 12th July 2014, 19:15

    avoegio wrote:classmaster is not reacting in game when pressing on change first class or second . in gameserver are no erros . whats wrong ?
    No worries, it's about what i told you earlier. It's this contribution I'll use in the project.
    You will probably be able to use it tonight.

    avoegio

    Posts : 75
    Join date : 2014-04-18

    Re: Classmasters with item support

    Post  avoegio on 12th July 2014, 20:21

    DnR wrote:
    avoegio wrote:classmaster is not reacting in game when pressing on change first class or second . in gameserver are no erros . whats wrong ?
    No worries, it's about what i told you earlier. It's this contribution I'll use in the project.
    You will probably be able to use it tonight.
    very goood Smile)))))) ok ok waiting
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Re: Classmasters with item support

    Post  yusuketh on 12th July 2014, 22:09

    DnR wrote:
    avoegio wrote:classmaster is not reacting in game when pressing on change first class or second . in gameserver are no erros . whats wrong ?
    No worries, it's about what i told you earlier. It's this contribution I'll use in the project.
    You will probably be able to use it tonight.
    advantage of the option to change the char, he is born lvl 78 with CP/HP/MP lvl 1, puts him born with full HP, and if I put "StartingLevel = 79", it goes to the level 78 with 99% xp. ^^

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Classmasters with item support

    Post  DnR on 13th July 2014, 00:52

    yusuketh wrote:advantage of the option to change the char, he is born lvl 78 with CP/HP/MP lvl 1, puts him born with full HP, and if I put "StartingLevel = 79", it goes to the level 78 with 99% xp. ^^

    I know that. Also, i was going to fix hp/mp issue at next revision (i mean now).
    In addition to client sending extra packets during login (userinfo,socialanimation,statusupdate), doing many other checks, and checking for Config and player level every time in EnterWorld which is your way, i tried to form the less consuming way of increasing level. I believe being level 78 and not level 78 100% is no big deal (in my opinion at least), in addition to the code i saved.
    My only concern was that first character in account would not be a newbie, even if level is above the minimum newbie level "until level is increased".
    However, everyone is free to use the other way too.


    Class Master updated. Furthermore, i removed some useless lines, and fixed a flaw related to alternate class change.
    Tested everything and works flawlessly.
    Thanks Pandragon for adaptation, and all of you for your patience. Smile



    Sponsored content

    Re: Classmasters with item support

    Post  Sponsored content


      Current date/time is 28th July 2017, 18:03