Titles:
Quote:
Seeing as this was a fix by Derision, I thought it reasonable to believe that it was due to the connecting of some previously-neglected op_codes. However, if we're just doing it as a simple way to #title someone and place it into the profile blob, that's fine as well. Anything is better than nothing. My main reason for starting this thread was for any sort of discussion to have a place and to give the link at the top of this post, where there's a lot of title information stored for anyone who needs it. I'd considered sending Derision a PM on this matter, but figured others would have feedback as well. Great work, as always, glad to see another missing piece of the EQ puzzle filled in =) (Sorry for posting without actually checking out the fix first-hand, but there's a VT raid going on that I don't want to interrupt. I'm anxious to install it as soon as they wrap up, though =P) |
There appears to be two aspects to titles in the source, one is the #title command which sets the AA title in the player profile, and the other relates to a 'Title' table which appears to be based on skill levels and I assume is related to the 'Title Window'.
The change I made only addresses the first aspect, the #title command. This just stores the title in the player profile. For some reason, the code to copy the player's title into the spawn struct in Client::FillSpawnStruct was commented out. There were also some discrepancies in the code as to whether the title field should be 32 or 48 bytes long. I simply uncommented the line that was commented out and made sure all operations on the title field worked on a size of 32 bytes (as that is the size in the pp). There were no new Opcodes involved. There is also a Perl SetAATitle command, but I was unable to get that to work yesterday, probably because I was using it wrong. |
Thank you =) I love knowing the nuts and bolts on stuff like this. Helps to know what to test, so I can give better feedback.
|
$client->SetAATitle("Your Title") works from Perl.
|
After reading back on the forum about titles, I saw AndMetal's pointer to the suffix field in the profile, so I have added a companion command, #titlesuffix.
E.g. If I have a character called Baalinorr, and issue the commands: Code:
#title Pathfinder http://www.rama.demon.co.uk/titles.jpg |
Nice stuff as usual! Just a guess, but I am thinking that if you use the quotes with the suffix command, you don't need to have the underscore in there. The underscore (at least for the #lastname command) is only if you want to enter it without the quotes. I personally never use underscores for lastnames, because they will show up if you run MQ. Most server admins probably don't care about that, but I am just anal :P
Having prefix and suffix titles working is great! I have been waiting to see an option to add titles to a player's title window via quests or AAs, or whatever. Sounds like we are one step closer to having that! At least now we can set a title using quests. And, even if the title window never gets to be fully functional, you could still keep track of player title options by using quest globals, so they could change them at an NPC whenever they liked :) |
Wow, even better having the suffix. Great stuff!
Quote:
|
All times are GMT -4. The time now is 11:22 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.