Spawning in with SubClass

Results 1 to 18 of 18
  1. #1
    Account Upgraded | Title Enabled! JakeJigsaw is offline
    MemberRank
    Jan 2014 Join Date
    ElderineLocation
    201Posts

    Spawning in with SubClass

    Code:
    ;        Class        Map        PX        PY        HP    SP    HPSoul    SPSoul    Money
    CHARACTER    1,        "RouN",    5979,    5276,    52,    10,    15,        7,        40000
    CHARACTER    2,        "RouN",    5979,    5276,    52,    10,    15,        7,        0
    CHARACTER    3,        "RouN",    5979,    5276,    52,    10,    15,        7,        0
    CHARACTER    4,        "RouN",    5979,    5276,    52,    10,    15,        7,        0
    CHARACTER    5,        "RouN",    5979,    5276,    52,    10,    15,        7,        0
    In DefaultCharacterData.txt , is shows spawns for each class an each sub class.
    so what I am wondering is..
    1, why would they add this.
    2, is there a way to spawn in as a warrior, scout, paladian.. etc.

    Im guessing there would be other files I would have to mess with to make a warrior spawn in upon being created, an if anyone has any tips, threads, or any suggestions.. that would be great.


  2. #2
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: Spawning in with SubClass

    You would have to do that in the databases, I believe. Then add default settings for those classes in this DefaultCharacterData.txt

  3. #3
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Spawning in with SubClass

    The DefaultCharacterData.txt is for new characters. You can set their customisation information, money they start with, map and coords they start in, the items they start with and the HP/SP stones they start with, other than that there is nothing else. If you want to make the characters start with a specific class other than the base classes I think you will have to do that through the database as @Alsm97 suggested.

  4. #4
    Account Upgraded | Title Enabled! JakeJigsaw is offline
    MemberRank
    Jan 2014 Join Date
    ElderineLocation
    201Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by MrFarbodD View Post
    The DefaultCharacterData.txt is for new characters. You can set their customisation information, money they start with, map and coords they start in, the items they start with and the HP/SP stones they start with, other than that there is nothing else. If you want to make the characters start with a specific class other than the base classes I think you will have to do that through the database as @Alsm97 suggested.
    Ill dig around a bit, an let you know if I find anything.

    -edit-

    Spoiler:



    This was about the closes thing I was able to find:/
    Last edited by JakeJigsaw; 16-05-15 at 09:04 PM.

  5. #5
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Spawning in with SubClass

    That's for the operator tool, it won't affect anything, server side wise other than what you can access on OPTool. You need to look at procedures.

  6. #6
    Account Upgraded | Title Enabled! JakeJigsaw is offline
    MemberRank
    Jan 2014 Join Date
    ElderineLocation
    201Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by MrFarbodD View Post
    That's for the operator tool, it won't affect anything, server side wise other than what you can access on OPTool. You need to look at procedures.
    Spoiler:




    All I can find:/
    Last edited by JakeJigsaw; 16-05-15 at 10:10 PM.

  7. #7
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Spawning in with SubClass

    Yep, you're along the right lines. I'd tell you what to do next but I think that would be spoon feeding. Just look at the procedures for character creation and instead of the default classes, 1 for fighter etc.. use the other numbers.

  8. #8
    Account Upgraded | Title Enabled! Krum is offline
    MemberRank
    Aug 2012 Join Date
    286Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by MrFarbodD View Post
    Yep, you're along the right lines. I'd tell you what to do next but I think that would be spoon feeding. Just look at the procedures for character creation and instead of the default classes, 1 for fighter etc.. use the other numbers.
    Just wrong dude. It gets the Class ID from the client, not from the procedure. I don't exactly know how it works, but im sure it's not from procedures, procedures just gets values and integers from the client/zones or w/e and use the queries to fill them in the database.

  9. #9
    Account Upgraded | Title Enabled! JakeJigsaw is offline
    MemberRank
    Jan 2014 Join Date
    ElderineLocation
    201Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by MrFarbodD View Post
    Yep, you're along the right lines. I'd tell you what to do next but I think that would be spoon feeding. Just look at the procedures for character creation and instead of the default classes, 1 for fighter etc.. use the other numbers.
    it says 1 for fighter, and 4 for cleric.. like, those are not the right class numbers so I do not know what to change.

    maybe what @Bellum was talking about is where I can get those other ID numbers.

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

    Re: Spawning in with SubClass

    classname.shn is what ur looking for jake

  11. #11
    Account Upgraded | Title Enabled! Krum is offline
    MemberRank
    Aug 2012 Join Date
    286Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by JakeJigsaw View Post
    it says 1 for fighter, and 4 for cleric.. like, those are not the right class numbers so I do not know what to change.

    maybe what @Bellum was talking about is where I can get those other ID numbers.
    Those things written in green, doesn't affect the procedure its like just to remember u the IDs for the classes.

    Edit :
    You are using 2008 files procedure, so if what you are looking for is done through the procedure, then the procedure would be different in a way than 2008 files, since 2010 got Trickster. But the procedure is still the same as it gets the ClassID from the client side i perhaps then send it to the procedure, and then the character is being created throughout the values that had been sent.

  12. #12
    Account Upgraded | Title Enabled! JakeJigsaw is offline
    MemberRank
    Jan 2014 Join Date
    ElderineLocation
    201Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by Bellum View Post
    Those things written in green, doesn't affect the procedure its like just to remember u the IDs for the classes.

    Edit :
    You are using 2008 files procedure, so if what you are looking for is done through the procedure, then the procedure would be different in a way than 2008 files, since 2010 got Trickster. But the procedure is still the same as it gets the ClassID from the client side i perhaps then send it to the procedure, and then the character is being created throughout the values that had been sent.
    so Do I need a new procedures file? or if I go ahead an change the ID's to what they are now that would work?

  13. #13
    Account Upgraded | Title Enabled! Lugapha is offline
    MemberRank
    Jul 2011 Join Date
    387Posts

    Re: Spawning in with SubClass

    sometimes char's get out of sync and get set to default location or a reset can use the info in the system. This info is then used . If you have ever messed around a lot on a test server you might find your char reset back to rou after a major fault.

  14. #14
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Spawning in with SubClass

    Quote Originally Posted by Bellum View Post
    Those things written in green, doesn't affect the procedure its like just to remember u the IDs for the classes.

    Edit :
    You are using 2008 files procedure, so if what you are looking for is done through the procedure, then the procedure would be different in a way than 2008 files, since 2010 got Trickster. But the procedure is still the same as it gets the ClassID from the client side i perhaps then send it to the procedure, and then the character is being created throughout the values that had been sent.
    Yeah but if you check the nClass number and then modify it appropriately before pushing the query you can set the class upon character creation (Basically given you the answer there).

  15. #15
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: Spawning in with SubClass

    This can either be done on Client or Server. Easiest is done through Server, but you'd have to think a bit tricky. Just like @MrFarbodD said, you can just modify the procedure.

    You'll have to understand that, the client will send a packet containing the class ID and you can find those class ID's in ClassName.shn. The ID is sent to this SQL procedure that will create the new character using the ID received from the Client.

    So, in the procedure, you'd either make a bunch of if-statements (conditions) to do what you want to do. What I would do is, since you already know that there are 4 ID's in between each class (Fighter, Archer etc) so if I wanted all characters to be their second prestige class (Clever Fighter, Hawk Archer etc), I'd just add 1 to the ID received from the Client.

    It all depends on how you want to do it, pick and do. Good luck!

    PS: You might want to Google SQL a bit, to understand the syntax and so forth.

  16. #16
    Account Upgraded | Title Enabled! JakeJigsaw is offline
    MemberRank
    Jan 2014 Join Date
    ElderineLocation
    201Posts

    Re: Spawning in with SubClass

    in dbo.p_Char_Create, I dont see where I can modify the class ID's .. I see where it is making the insert, I guess finding that insert is my issue.

  17. #17
    Account Upgraded | Title Enabled! Evildarkang is offline
    MemberRank
    Sep 2012 Join Date
    Northfield, BirLocation
    417Posts

    Re: Spawning in with SubClass

    This topic has been discussed by myself and fixed with ease. Myself Fixed it! Topic Over And Done With.

  18. #18
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Spawning in with SubClass

    You should post the fix next time, one of the rules state that it is advised for you to post how you fixed your issue so that it can help others, next time instead of saying I fixed it, why don't you actually tell everyone how you did it. closing this thread as the issue has been fixed.



Advertisement