NPC Armor Tint
NPC Armor tint, working perfectly in SoF and Titanium both.
Happy unbirthday, Trev. :P http://www.jondjackson.net/EQ/images/armor_tint.jpg Required SQL: Code:
ALTER TABLE `peq`.`npc_types` ADD COLUMN `armortint_red` TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER `drakkin_details`, If any of the values is nonzero, the tint is applied to all armor pieces on the NPC. If you absolutely want to give your NPC totally black armor (making it basically impossible to see any detail), just give a blue value of 1 (out of 255). That'll be visually indistinguishable from total black. Of course, I'm pretty certain tinting is only available on playable-race NPCs. I was quite pleased to find that even "naked" NPCs have the tint applied to the cloth armor pieces! Required code changes: zonedump.h - Line 87 Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... Code:
... |
Nice work! Thanks!
|
Oh my god... That is so amazing to see. You and Trevius have really been knocking out some work in this area lately, but you especially have come out of nowhere with some amazing contributions! Great job!
(Excuse my exuberance, my alcohol tolerance is pretty low and it's a Friday night!) |
A+ for the prety colors :D
-seriosly - can we TRY to Tint the non player models? |
My presumption is that the tint will be visible on any NPC that can visibly wear a piece of armor added to its loot table.
Most likely this limits the feature to playable-race NPCs, but it's certainly possible SOE coded exceptions. |
WOW! Seriously, Shendare, where did you come from? I know you are registered from a long time ago, but you really know your way around the emu code :)
That is some great stuff! Maybe tonight, I can get some work done on the illusion function to add in support for all facial features as well as armor tint. Once that is working, I should be able to get the #fixmob command changed to work for adjusting nearly any feature we could want on-the-fly. After that, the only other thing I would really like to get added at some point would be quest commands that could use the illusion function fully. I always thought it would be cool to have an NPC that had color changing armor that changed color once a second on a timer. You could simply have it add 10 to whatever color field every second and it would cycle through colors. Though, I think illusion makes the NPC kinda jump, so it might not be as cool as I imagine. Thanks a ton for this Shendare! I will get it tested and put it on the SVN ASAP. |
Actually, it wasn't all -that- hard to find all the places to change.
All I had to do was run a text search for everywhere you'd added in the drakkin fields and slip the armor_tint field after it. :P The code was already in place to tint NPC armor based on equipped items' color fields, so it was easy enough to adjust that to make a DB value override. That said, it was an interesting and rewarding dive into such a complex and diverse community codebase. LOL. |
Hah yeah, you could have probably just checked the diffs on the svn too, since it makes a quick diff for each file if you want to check them. I had never messed with adding new fields before, so it was something completely new to me lol. Was kinda rough figuring out what was breaking what.
I got your code added to the SVN. Had to do a minor adjustment to part of the code you had for player profile, because you had an extra 0, in there. Other than that, it worked perfectly. It is really awesome to play with this and Drakkin look much better with the colored armor as long as people aren't going overboard with it :P Now, if I can get the stuff working so we can adjust this quickly and easily in game, this is really going to bring customizing zones to a whole new level that was previously either not possible or was much too tedious to deal with. Thanks again for this :D |
Extra 0? Odd, I copied and pasted from my successfully compiled version. I must have goofed something somewhere in the copy/pasting.
|
All times are GMT -4. The time now is 12:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.