[rp] ic/ooc function

Results 1 to 7 of 7
  1. #1
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    [rp] ic/ooc function

    Hey!

    Here is my IC/OOC function!

    COMMAND:
    Code:
    #region IC/OOC
                        case "ooc":
                            {
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    dbClient.runQuery("UPDATE users SET ooc = '1' WHERE id = '" + userID + "'");
                                }
    
                                break;
                            }
                        case "ic":
                            {
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    dbClient.runQuery("UPDATE users SET ooc = '0' WHERE id = '" + userID + "'");
                                }
                                
                                break;
                            }
                        #endregion
    Then, SEARCH for:
    Code:
                                        Message = stringManager.filterSwearwords(Message);
    Under that place this (MAKE SURE ITS IN THE SHOUT/SAY SECTION!):
    Code:
                                        string TALKCHECK;
                                        using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                        {
                                            TALKCHECK = dbClient.getString("SELECT ooc FROM users where id = '" + userID + "'");
                                        }
                                        if (TALKCHECK == "1" && Message != ":ic")
                                        {
                                            Message = "[ " + Message + " ]";
                                        }
    Also, add a column to users named "ooc" [int 1] with a default value of 0.

    Enjoy!


  2. #2
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: [rp] ic/ooc function

    So what's this?

  3. #3
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: [rp] ic/ooc function

    Quote Originally Posted by PEjump2 View Post
    So what's this?
    Out of Character/In Character for RP Servers.

  4. #4

    herp a derp

    vLife is offline

    Super ModRank
    Apr 2009 Join Date
    The BahamasLocation
    3,811Posts

    Re: [rp] ic/ooc function

    Great to see someone took the time to do it.
    Nice job.

  5. #5
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [rp] ic/ooc function

    Nice Swimo I'll Test It out Later >.<

  6. #6
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: [rp] ic/ooc function

    Already been tested :)

  7. #7
    Account Upgraded | Title Enabled! Xavi. is offline
    MemberRank
    Jul 2010 Join Date
    At Home.phpLocation
    708Posts

    Re: [rp] ic/ooc function

    Ye, real nice swimo, little addons like this help rp servers take down habborp (well eventually xD)

    Xavi.



Advertisement