ADDON UBEREMU : commands help in DB

Results 1 to 3 of 3
  1. #1
    Enthusiast dimitri54480 is offline
    MemberRank
    Feb 2011 Join Date
    44Posts

    ADDON UBEREMU : commands help in DB

    Hello ragezone!

    I make a code based on Message of the day in the db

    Find, in Misc/ChatCommandHandler, this code

    Code:
    case "help":

    Replace the block by

    Code:
        case "help":
                        case "info":
                        case "details":
                        case "about":
    
                string help_message; // About in the DB
                string link_help; // Link of the message helpm
                using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
                {
                    link_help = dbClient.ReadString("SELECT value FROM config WHERE variable_name = 'link_help' LIMIT 1");
                   help_message = dbClient.ReadString("SELECT value FROM config WHERE variable_name = 'help_message' LIMIT 1");
                }
    
                    Session.SendNotif(help_message, link_help);
    
                           
    
                            return true;
    SQL :

    Insert in the TABLE `Config`
    'help_message' : your help message : ex : Creator is the creator for UberHotel (c) 2010 - 2011, thanks you for Meth0d, creator for UberEmu

    'link_help' : your link : ex : http://your-site.com/help
    Last edited by dimitri54480; 01-03-11 at 10:33 AM.


  2. #2
    Enthusiast johwie is offline
    MemberRank
    Jan 2011 Join Date
    The NetherlandsLocation
    31Posts

    Re: ADDON UBEREMU : commands help in DB

    Thanks

  3. #3
    Banned rafa95123 is offline
    BannedRank
    May 2009 Join Date
    /home/RaphaLocation
    564Posts

    Re: ADDON UBEREMU : commands help in DB

    Screen ?



Advertisement