mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
[Titles] Cleanup titles, title suffix, and last name methods. (#2174)
* [Titles] Cleanup titles, title suffix, and last name methods. - Use strings instead of const chars*. - Add optional parameter to SetAATitle in Lua so you can save to the database similar to Perl. - Cleanup #lastname command. - Cleanup #title command. - Cleanup #titlesuffix command. * Update npc.cpp
This commit is contained in:
@@ -15,7 +15,7 @@ void command_lastname(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
target->ChangeLastName(last_name.c_str());
|
||||
target->ChangeLastName(last_name);
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
|
||||
@@ -31,9 +31,9 @@ void command_title(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if (!save_title || is_remove) {
|
||||
target->SetAATitle(title.c_str());
|
||||
target->SetAATitle(title);
|
||||
} else if (save_title) {
|
||||
title_manager.CreateNewPlayerTitle(target, title.c_str());
|
||||
title_manager.CreateNewPlayerTitle(target, title);
|
||||
}
|
||||
|
||||
target->Save();
|
||||
|
||||
@@ -31,9 +31,9 @@ void command_titlesuffix(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
if (!save_suffix || is_remove) {
|
||||
target->SetTitleSuffix(suffix.c_str());
|
||||
target->SetTitleSuffix(suffix);
|
||||
} else if (save_suffix) {
|
||||
title_manager.CreateNewPlayerSuffix(target, suffix.c_str());
|
||||
title_manager.CreateNewPlayerSuffix(target, suffix);
|
||||
}
|
||||
|
||||
target->Save();
|
||||
|
||||
Reference in New Issue
Block a user