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] Talent Specialization Porting? MoP Style  (Read 2350 times)

Crow

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
[QUESTION] Talent Specialization Porting? MoP Style
« on: August 11, 2015, 05:33:42 pm »
I'm curious as to what makes the talent specialization interface from MoP and if it's portable into wotlk. What it would take to add that extra tab next to talents and have the 3 tab panel that displays the text and icons, and in a box to the right of the selected one, displays active and passive spells that are learned upon hitting the accept button.

It's an interesting system and would be way better than another gossip npc workaround or trying to fuck with modifying the clients hex code to make the talent trees progression 1 point.

Thanks in advance.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #1 on: August 11, 2015, 07:14:31 pm »
Yes it is possible, I did it without porting the interface for my old server.

You don't need to edit the binary to have 1 talent per level, you can override the interface display.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Crow

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #2 on: August 12, 2015, 05:01:21 am »
Quote from: "stoneharry"
Yes it is possible, I did it without porting the interface for my old server.

You don't need to edit the binary to have 1 talent per level, you can override the interface display.


Eh, if we're talking edge of chaos then you're thinking of the talent tree, Im talking of the specialization menu that will teach multiple talents when the learning thing is hit. Not sure if I clarified or not.

Where would I find that junk specifically?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #3 on: August 12, 2015, 08:49:23 am »
There are systems in TC which teach you spells if one is learned. It might be a little bit hacky, but one way are ranks. In world.spell_ranks you may add any spell X as rank 2 of spell Y. Which means that by learning spell X you will always get spell Y. Problem is with unlearning spell Y, that will remain after unlearning X.

There is also another possibility. There are plenty of spells which have only one effect - they learn a spell to target. So you might have spell which learns you some more spells which might learn you even more spells which will be your spells for class specialization. But again, unlearning all those spells won't be probably so simple at all.

This problem just yells for custom core script. DB and DBC systems probably can't make this work very well.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Crow

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #4 on: August 12, 2015, 07:03:05 pm »
Quote from: "Amaroth"
There are systems in TC which teach you spells if one is learned. It might be a little bit hacky, but one way are ranks. In world.spell_ranks you may add any spell X as rank 2 of spell Y. Which means that by learning spell X you will always get spell Y. Problem is with unlearning spell Y, that will remain after unlearning X.

There is also another possibility. There are plenty of spells which have only one effect - they learn a spell to target. So you might have spell which learns you some more spells which might learn you even more spells which will be your spells for class specialization. But again, unlearning all those spells won't be probably so simple at all.

This problem just yells for custom core script. DB and DBC systems probably can't make this work very well.


As a last resort I was considering have one talent that learns a series of spells and having the specific ones at the bottom of the tree to yield a display of them but Im again, wanting to do MOPs Specialization tab in which I have 3 boxes with the spell icons and descriptions and you hit the learn or unlearn tab and it'll teach you them.

It looks to me more and more that I'll have to write it in Lua and imbed it into the selection bar at the bottom or make some sort of addon or something.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #5 on: August 12, 2015, 08:02:53 pm »
Well, that was obvious from start, wasn't it?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Crow

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #6 on: August 13, 2015, 05:59:57 am »
Quote from: "Amaroth"
Well, that was obvious from start, wasn't it?

I guess? Im not too experienced myself in the matter and that was the point of the question, what would it take to design it.

and then how would I get the addon or whathaveyou to perform the learn action serverside? wouldn't that require making a packet and sending/receiving it? I'm half sure one exists already but not entirely.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #7 on: August 13, 2015, 08:25:33 am »
Check blizzlike XML and LUA files reffering to talents. I took a short look on them and it seems you will need to edit more than 1 pair of files. For instance this seems to be function for learning talents itself, from blizzard_talentui.lua
Code: [Select]
function PlayerTalentFrameTalent_OnClick(self, button)
if ( IsModifiedClick("CHATLINK") ) then
local link = GetTalentLink(PanelTemplates_GetSelectedTab(PlayerTalentFrame), self:GetID(),
PlayerTalentFrame.inspect, PlayerTalentFrame.pet, PlayerTalentFrame.talentGroup, GetCVarBool("previewTalents"));
if ( link ) then
ChatEdit_InsertLink(link);
end
elseif ( selectedSpec and (activeSpec == selectedSpec or specs[selectedSpec].pet) ) then
-- only allow functionality if an active spec is selected
if ( button == "LeftButton" ) then
if ( GetCVarBool("previewTalents") ) then
AddPreviewTalentPoints(PanelTemplates_GetSelectedTab(PlayerTalentFrame), self:GetID(), 1, PlayerTalentFrame.pet, PlayerTalentFrame.talentGroup);
else
LearnTalent(PanelTemplates_GetSelectedTab(PlayerTalentFrame), self:GetID(), PlayerTalentFrame.pet, PlayerTalentFrame.talentGroup);
end
elseif ( button == "RightButton" ) then
if ( GetCVarBool("previewTalents") ) then
AddPreviewTalentPoints(PanelTemplates_GetSelectedTab(PlayerTalentFrame), self:GetID(), -1, PlayerTalentFrame.pet, PlayerTalentFrame.talentGroup);
end
end
end
end

So, my advice? Type "talent" into WMV, use it for saving all LUA and XML files containing this key word and then have a nice and quite lot of fun. Getting similiar, but MoP versions of such files would be also great, it is possible that you can copy quite a lot of code, maybe just with a few modifications. Sadly, I can't help you any more.

There still also might be some better, but not so nice and probably a little hacky way. Quite often it is. But I am probably not a best person to advice you in this matter, as I am myself not very experienced with both talent and interface systems.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Talent Specialization Porting? MoP Style
« Reply #8 on: January 26, 2016, 10:38:18 pm »
Whoops. old thread
« Last Edit: January 01, 1970, 01:00:00 am by Admin »