Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SHARE] Welcome Announcement

Elite Diviner
Joined
Jun 18, 2023
Messages
436
Reaction score
245
its successful, but when player login every time, its always announces
Welcome Announcement features is only for those who just created a character and enters in-game, not every time it logins in game.
 
Experienced Elementalist
Joined
Mar 10, 2011
Messages
229
Reaction score
50
Ok would you give me a hint on adding it
search for the feature where there is a global announcement such as activity completing , guild duel , etc then get the gameword in gui then search it in your source code using that gameword ;) then you will find the source code for global announcement :)
 
Junior Spellweaver
Joined
Nov 27, 2023
Messages
101
Reaction score
45
fsdfsdf - [SHARE] Welcome Announcement - RaGEZONE Forums


help what it this? :rolleyes: šŸ˜­ šŸ˜­
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Mar 10, 2011
Messages
229
Reaction score
50
hmmn :unsure: both say they are not defined i delete them??
if you delete them then they will not be announced i think you should find the missing source for that on other source code and implement it on your current source or if you want try to find how your source use system announcement :D
 
Banned
Banned
Joined
May 22, 2020
Messages
226
Reaction score
72
If it's in GS Source, there should be another variable that must be added especially those not included.
 
Banned
Banned
Joined
May 22, 2020
Messages
226
Reaction score
72
Try this. RAN GS Source.
in s_CFieldServerMsg.cpp
Find: void CFieldServer::MsgFieldReqJoin(DWORD dwClient, NET_MSG_GENERIC* nmg)
inside that method, look for ->
C++:
if (!pGLChar)
    {
        sc::writeLogError(std::string("CFieldServer::MsgFieldReqJoin() - Initialized character instance failed"));
        m_pGaeaServer->ResetCreatingCharUserID(pCharData->GetUserID());
        delete pCharData;
        return;
    }

and add this below:
C++:
if( pGLChar->m_wLevel == 1 )
    {
        std::string strFormat;
        strFormat = sc::string::format("Let's Welcome Character:%s(s) for joining our server", pGLChar->m_szName, GLCONST_CHAR::strSCHOOLNAME[pGLChar->m_wSchool].c_str());

        GLMSG::SNET_SERVER_GENERALCHAT NetMsgChat;
        if(NetMsgChat.SETTEXT(strFormat))
        {
            msgpack::sbuffer SendBuffer;
            msgpack::pack(SendBuffer, NetMsgChat);
            SENDTOALLCLIENT(NET_MSG_SERVER_GENERALCHAT, SendBuffer);
        }
    }

Note that i haven't tried to compile this code yet so check it on your own.
 
Junior Spellweaver
Joined
Nov 27, 2023
Messages
101
Reaction score
45
Works but its not color green :rolleyes: when i uncomment

Untitled - [SHARE] Welcome Announcement - RaGEZONE Forums



i use this
Code:
bool announce_finish = false;
if (!announce_finish) {
announce_finish = true;
CString strMessage;
GLMSG::SNET_SERVER_GENERALCHAT netmsgchat;
strMessage.Format("Let's welcome %s(%s) for joining our server.", pGLChar->m_szName, GLCONST_CHAR::strSCHOOLNAME[pGLChar->m_wSchool].c_str());
netmsgchat.SETTEXT(strMessage.GetString());
//netmsgchat.bNotify = true;
//netmsgchat.iColor = 6;
SendAllClient(&netmsgchat);
}

i think iColor is responsible for color but when i uncomment it

fsdfsdf - [SHARE] Welcome Announcement - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Nov 8, 2023
Messages
245
Reaction score
36
Try this. RAN GS Source.
in s_CFieldServerMsg.cpp
Find: void CFieldServer::MsgFieldReqJoin(DWORD dwClient, NET_MSG_GENERIC* nmg)
inside that method, look for ->
C++:
if (!pGLChar)
    {
        sc::writeLogError(std::string("CFieldServer::MsgFieldReqJoin() - Initialized character instance failed"));
        m_pGaeaServer->ResetCreatingCharUserID(pCharData->GetUserID());
        delete pCharData;
        return;
    }

and add this below:
C++:
if( pGLChar->m_wLevel == 1 )
    {
        std::string strFormat;
        strFormat = sc::string::format("Let's Welcome Character:%s(s) for joining our server", pGLChar->m_szName, GLCONST_CHAR::strSCHOOLNAME[pGLChar->m_wSchool].c_str());

        GLMSG::SNET_SERVER_GENERALCHAT NetMsgChat;
        if(NetMsgChat.SETTEXT(strFormat))
        {
            msgpack::sbuffer SendBuffer;
            msgpack::pack(SendBuffer, NetMsgChat);
            SENDTOALLCLIENT(NET_MSG_SERVER_GENERALCHAT, SendBuffer);
        }
    }

Note that i haven't tried to compile this code yet so check it on your own.
this doesnt work , Identifier for SENDTOALLCLIENT is missing
 
Banned
Banned
Joined
May 22, 2020
Messages
226
Reaction score
72
this doesnt work , Identifier for SENDTOALLCLIENT is missing
It only needs declaration of the header. try to locate the main cpp where SENDTOALLCLIENT resides and declare its header. it should work.
 
Banned
Banned
Joined
Mar 18, 2023
Messages
34
Reaction score
1
Thank you sir its work for me :)
welcome announcement.PNG - [SHARE] Welcome Announcement - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Back
Top