Jump to content

Notice info when login


Recommended Posts

  • Active Member

Hey guys,

I want to make login info from source and I wanna ask, is that a right way how to do notice info?

input_login.cpp:

Spoiler
static void _send_login_notice_info(LPCHARACTER ch)
{
	ch->ChatPacket(CHAT_TYPE_NOTICE, LC_TEXT("Information of server:"));
}

void CInputLogin::Entergame(LPDESC d, const char * data)
And add this above: _send_bonus_info(ch);
_send_login_notice_info(ch);

 

Just correct me if you have another better solution how to send this small ChatPacket at login.

Thanks for answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

I've had systems to check pet/mount when you login doing the exact same thing, so yeah, i think that is one correct way to do it! (instead of checking pet/mount you send the message)

 

Note: i don't think it is strictly necessary to put it under or above "_send_login_notice_info", yet, it is a good place to do it.

  • Love 1

It's all lies

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.