This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] - Character Creation - Class Specialization  (Read 1381 times)

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
[Question] - Character Creation - Class Specialization
« on: January 02, 2017, 01:40:21 am »
Greetings,

I got a question, would it be possible to add talent specializations from the character creation screen? For example if you're creating an Undead Mage, you would be able to choose the specialization (Fire, Mage, Arcane) - something like it's on retail at the moment after you buy the character boost. If it is possible, would it be possible to make different Character Creation Equipment for each class / specialization?

Thanks,
Krang
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kaev

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 308
    • View Profile
Re: [Question] - Character Creation - Class Specialization
« Reply #1 on: January 02, 2017, 11:44:30 pm »
Quote from: "Krang Stonehoof"
Greetings,

I got a question, would it be possible to add talent specializations from the character creation screen? For example if you're creating an Undead Mage, you would be able to choose the specialization (Fire, Mage, Arcane) - something like it's on retail at the moment after you buy the character boost. If it is possible, would it be possible to make different Character Creation Equipment for each class / specialization?

Thanks,
Krang
If you find a way to send the chosen specialization to the server it should be possible. No idea how you would send something from there tho. Maybe something could be possible with AIO and modified character creation lua file? I'll send this thread to Rochet2, maybe he can answer that.

EDIT: Rochet said it's probably not possible with AIO, but he also mentioned that stoneharry might exploited some packets before for some of his creations, you should send him a PM or something. :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [Question] - Character Creation - Class Specialization
« Reply #2 on: January 03, 2017, 05:39:14 pm »
I think a solution would be to make more classes, to split each class in three classes, for example Mage Fire, Mage Arcane, Mage Frost, and after the character is created to check the class, give the character the proper items, and after pressing on create character to give him the normal class (Mage) - would that work? I'm not quite sure how I would be supposed to add the new classes into CharStartOutfit, would have to play with it a bit.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kaev

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 308
    • View Profile
Re: [Question] - Character Creation - Class Specialization
« Reply #3 on: January 04, 2017, 12:17:41 pm »
Quote from: "Krang Stonehoof"
I think a solution would be to make more classes, to split each class in three classes, for example Mage Fire, Mage Arcane, Mage Frost, and after the character is created to check the class, give the character the proper items, and after pressing on create character to give him the normal class (Mage) - would that work? I'm not quite sure how I would be supposed to add the new classes into CharStartOutfit, would have to play with it a bit.
I can just speak from the serverside but this should work. Maybe you don't even need create whole classes - just send the new class id and add the equip for the specified spec and change the class to the original one then.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Eatos

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [Question] - Character Creation - Class Specialization
« Reply #4 on: January 04, 2017, 06:15:56 pm »
@Krang Stonehoof
Since CMSG_CHAR_CREATE will be sent to server once character has been created it will receive following parameters:
name, race, class

Now for subclass you could try to play with name property and send with it subclass param like this:
name:subclassid
Then on server side you would split this string and from this string read subclass.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »