Results 1 to 2 of 2
  1. #1
    SwitchBot's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    140
    Reputation
    10
    Thanks
    5

    [FSoD] How to add a new database column/row/slot

    How to add a new database column/row/slot in database.cs that could be used for the server, like /color. or do I just need to add the column/row/slot in rotmgprod.sql?
    edit: i did the rotmgprod.sql editing already
    Last edited by SwitchBot; 10-18-2016 at 06:51 PM.

     

    Hi
     

    Hi
     

    Hi
     

    Hi





  2. #2
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    In heidisql (or phpmyadmin)

    Go to the table you want. Now when the page loads, you should find this "add column" button or something similar.

    Just enter your values in.

    Now, in database.cs

    I'll use public Account Register(string uuid, string password, bool isGuest, XmlData data) as an example.

    To add a new column for this,

    just add
    Code:
    cmd.Parameters.AddWithValue("@column", valuetype);
    under
    Code:
    cmd.Parameters.AddWithValue("@empty", "");
    If you read through the file, you should get the flow as to how it works

    (sorry for a poor tutorial. I don't have phpmyadmin or heidisql to show you how it looks like)
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

Similar Threads

  1. [FSOD] How to add a new class.
    By MikeRaarupBirk in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 30
    Last Post: 05-13-2019, 06:29 AM
  2. [Help Request] [FSOD] How to add pink star without adding new characters?
    By Lion3 in forum Realm of the Mad God Private Servers Help
    Replies: 8
    Last Post: 10-22-2016, 09:06 AM
  3. [Help Request] How to add a new weapon with ready texture and data.
    By kacper42342432 in forum Realm of the Mad God Private Servers Help
    Replies: 0
    Last Post: 06-09-2016, 10:21 AM
  4. How to add a new class to my private server?
    By Dpalad67 in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 09-25-2015, 05:23 PM
  5. [Tutorial] How to add a new Sprite Sheet on As3 Client
    By Omniraptor in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 1
    Last Post: 02-28-2015, 04:12 PM