Add support for object display names

Ex. Kejek Forge in Stonebrunt Mountains
This commit is contained in:
Michael Cook (mackal)
2016-08-27 22:24:08 -04:00
parent 4360021fc9
commit aaa116d97c
6 changed files with 14 additions and 2 deletions
+6
View File
@@ -543,6 +543,7 @@ bool Object::HandleClick(Client* sender, const ClickObject_Struct* click_object)
coa->drop_id = click_object->drop_id;
coa->player_id = click_object->player_id;
coa->icon = m_icon;
strn0cpy(coa->object_name, m_display_name, 64);
//if this is not the main user, send them a close and a message
if (user == nullptr || user == sender) {
@@ -821,6 +822,11 @@ void Object::SetTiltY(float pos)
safe_delete(app2);
}
void Object::SetDisplayName(const char *in_name)
{
strn0cpy(m_display_name, in_name, 64);
}
void Object::Depop()
{
auto app = new EQApplicationPacket();