azerothcore / mod-npc-talent-template

Template NPC (gear, talents)
http://azerothcore.org/
10 stars 30 forks source link

Add new commands, option to disable talent templating and refactor code. #17

Open arenacraftwow opened 4 years ago

arenacraftwow commented 4 years ago

Like the commit message says. I've backported the features I had on my skirmish arena server. The commands I've added were working as intended there and were used heavily. But I've also cleaned up my code so some issues might have slipped in (altho I've tried to continuously test out all the differences I've made to my original version).

I'm gonna use this version on my server so if I find anything I will let u know.

Stuff added/changed

BarbzYHOOL commented 4 years ago

can you add the corresponding commands in sql command table in a sql file?

I also suggest to change ".templatenpc" into the simpler ".template" as there is nothing NPC related in that command

arenacraftwow commented 4 years ago

@BarbzYHOOL Will do.

arenacraftwow commented 4 years ago

@BarbzYHOOL Done

BarbzYHOOL commented 4 years ago

"Slightly mitigated #11 by adding a compile time constant to remove this feature. On my server I just don't use talent templating, just running with the mod-learn-highest-talent. By default talents will be left in tact as they are currently but this gives the ability to remove that feature in a build if needed."

I don't understand. What is the solution actually? is there a solution?

BarbzYHOOL commented 4 years ago

well after my suggestions, i guess we can merge, i quickly checked the code but i'm not the most qualified for that but nobody is working on the module at the moment anyway

BarbzYHOOL commented 4 years ago

well looks good, you tried the new command names tho? just in case a typo or smthg

arenacraftwow commented 4 years ago

seems to still work.

P-Kito commented 4 years ago

Attach the * sign to the type instead of the name

arenacraftwow commented 4 years ago

@P-Kito Well looks like I forgot to reformat the header file.

arenacraftwow commented 4 years ago

Please just merge it or leave some serious criticism of the code. It's tiresome having to wake up and re-adjust these minor things, everyday since the past days.

chamorrorenzo commented 4 years ago

Hello there, Im trying this atm, and is amazing, I too wanted to stop using this cause of the talents learned beeing bugged when you use any option then its imposible to remove them from a player

im guessing this is where you change the option static constexpr bool OMIT_TALENT_AND_GLYPH_TEMPLATING = false;

another question, when I save a template, it adds the new to the DB but the previus one still exist, is there any conflict with that? or its better delete the previus one

thanks

mindsear commented 3 years ago

Sounds complicated

pangolp commented 1 year ago

Can this pull request be closed? From what I see, a lot of time has passed, almost 3 years, since its creation and I don't know if they are going to really take it back.