Register for your free account! | Forgot your password?

You last visited: Today at 05:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Redux Source

Discussion on [HELP] Redux Source within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2015
Posts: 17
Received Thanks: 0
[HELP] Redux Source

because of 5065 dont support World Chat.. im planning to make Service Chat to be the World chat..

i explore to this codes and try to figure out the service chat works.. but didnt get any luck.. so here's the code, i erased what i add

Code:
#region TalkPacket
        public static void Process_TalkPacket(Player client, TalkPacket packet)
        {
            if (packet.Words[0] == Constants.COMMAND_PREFIX)
            {
                Commands.Handle(client, packet.Words.Substring(1).ToLower().Split(' '));
                return;
            }
            switch (packet.Type)
            {
                #region Guild
                case ChatType.Syndicate:
                    if (client.Guild != null)
                        foreach (var p in PlayerManager.Players.Values)
                            if (p.Guild == client.Guild)
                                p.Send(packet);
                    break;
                #endregion

                #region Team
                case ChatType.Team:
                    if (client.Team != null)
                        client.Team.SendToTeam(packet);
                    break;
                #endregion 

                #region Talk
                case ChatType.Talk:
                    client.SendToScreen(packet);
                    break;
                #endregion 
               


                #region Whisper
                case ChatType.Whisper:
                    {
                        var target = Managers.PlayerManager.GetUser(packet.Hearer);
                        if (target != null)
                        {
                            Database.ServerDatabase.Context.ChatLogs.Add(new DbChatLog(packet));
                            packet.SpeakerLookface = client.Lookface;
                            packet.HearerLookface = target.Lookface;
                            target.Send(packet);
                        }
                        else
                        {
                            packet.Words = packet.Hearer + " is not online";
                            client.Send(packet);
                        }
                        break;
                    }
                #endregion 

                #region Friend
                case ChatType.Friend:
                    foreach (var friend in client.AssociateManager.Friends.Values)
                        friend.Send(packet);
                    break;
                #endregion

here's the Chat Type.. i can see World there but still wont work..
Code:
namespace Redux.Enum
{
    public enum ChatType : ushort
    {
        /// <summary>
        /// [2000]
        /// </summary>
        Talk = 2000,

        /// <summary>
        /// [2001]
        /// </summary>
        Whisper,

        /// <summary>
        /// [2002]
        /// </summary>
        Action,

        /// <summary>
        /// [2003]
        /// </summary>
        Team,

        /// <summary>
        /// [2004]
        /// </summary>
        Syndicate,

        /// <summary>
        /// [2005]
        /// </summary>
        System = Talk + 5,

        /// <summary>
        /// [2006]
        /// </summary>
        Family,

        /// <summary>
        /// [2007]
        /// </summary>
        Talk2,

        /// <summary>
        /// [2008]
        /// </summary>
        Yelp,

        /// <summary>
        /// [2009]
        /// </summary>
        Friend,

        /// <summary>
        /// [2010]
        /// </summary>
        Global = Talk + 10,

        /// <summary>
        /// [2011]
        /// </summary>
        GM,

        /// <summary>
        /// [2013]
        /// </summary>
        Ghost,

        /// <summary>
        /// [2014]
        /// </summary>
        Serve,

        /// <summary>
        /// [2021]
        /// </summary>
        World = Talk + 21,

        /// <summary>
        /// [2100]
        /// </summary>
        Register = Talk + 100,

        /// <summary>
        /// [2101]
        /// </summary>
        Entrance,
        Shop,
        PetTalk,
        CryOut,
        Webpage = Talk + 105,
        NewMessage,
        Task,
        SynWarFirst,
        SynWarNext,
        LeaveWord = Talk + 110,
        SynAnnounce,
        MessageBox,
        Reject,
        SynTenet,

        MsgBoardTrade = Talk + 201,
        MsgBoardFriend,
        MsgBoardTeam,
        MsgBoardSyndicate,
        MsgBoardOther,
        MsgBoardSystem,

        Broadcast = Talk + 500
    }
}
if happens that someone know how to do it.. will give me a hint on how to do it? thanks!
NewbieKid is offline  
Old 12/16/2015, 13:22   #2


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Quote:
i erased what i add


And that's where you go wrong. We are not here to provide you with implementation, at least show your work so we can see where you go wrong and help you, we are not going to spoonfeed you.
KraHen is offline  
Thanks
1 User
Old 12/16/2015, 15:00   #3
 
elite*gold: 0
Join Date: Dec 2015
Posts: 17
Received Thanks: 0
Quote:
Originally Posted by KraHen View Post
[/FONT]

And that's where you go wrong. We are not here to provide you with implementation, at least show your work so we can see where you go wrong and help you, we are not going to spoonfeed you.
i just copy the code of ChatType.Guild

and create something like ChatType.Serve
that's what on the enums..
NewbieKid is offline  
Reply


Similar Threads Similar Threads
[HELP]Redux Source
12/13/2015 - CO2 Private Server - 0 Replies
I just downloaded a Classic Source named Redux(5065) by Pro4Never and just like he said it is clean and a better source to start on. Im having a problem on events.. i watched P4N tutorials on how to create an event and i try to create LastManStanding Event which is pretty basic event to work on. I wonder where can i make this event ACTIVATE? In some Modern Source i could just add it on World.cs so when the right time came, the event will start and announce. Hope someone out there could...
about Source Redux ......
06/04/2015 - CO2 Private Server - 4 Replies
Source Redux ...... i have some problems about it like when i click right on some items said to me cannot load this ID :***** 2 - when i try to Wear some item also cannot do that if any one can help me pleas Do not let me down....
[Help] Redux source
08/29/2014 - CO2 Private Server - 2 Replies
I get this error and i dont know what it is lol http://i59.tinypic.com/259zho1.png



All times are GMT +1. The time now is 05:09.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.