-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new commands, option to disable talent templating and refactor code. #17
base: master
Are you sure you want to change the base?
Conversation
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 |
@BarbzYHOOL Will do. |
@BarbzYHOOL Done |
"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? |
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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?
It means that you can easly disable talent/glyph templating. So that the NPC only does Gear related stuff, which is enough for my use case.
ef66290
to
3f067a0
Compare
well looks good, you tried the new command names tho? just in case a typo or smthg |
seems to still work. |
@@ -6,16 +6,28 @@ Set @NpcName = "Pick a spec", | |||
@NpcDisplayID = 31833, | |||
@NpcLevel = 80; | |||
|
|||
INSERT INTO `creature_template` (`entry`, `modelid1`, `name`, `subname`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES | |||
INSERT INTO `creature_template` (`entry`, `modelid1`, `name`, `subname`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding a DELETE before all this INSERT should be better I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait I just realize all these are for the WORLD db not the characters DB
omfg i should have merged my PR before
@arenacraftwow do you mind if I merge this old PR before this one? https://github.com/azerothcore/mod-npc-talent-template/pull/16/files it might create small conflicts though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BarbzYHOOL I dunno, can't you just merge this and then adjust your PR. Then you could do all the DB changes you would like.
Attach the * sign to the type instead of the name |
@P-Kito Well looks like I forgot to reformat the header file. |
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. |
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 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 |
Sounds complicated |
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. |
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
copy
command - a GM can clone a player, he can then use that player to create a new templatesave
command - a GM can update a template based on his current gear.32
Player (xx) tries to learn already active spell
warnings