Results 1 to 6 of 6
  1. #1
    Siphilice's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    107
    Reputation
    10
    Thanks
    122

    Adding a /gold command to clubs source

    Open AdminCommands.cs and paste at the bottom of the file

    Code:
    class GoldCommand : ICommand
       {
            public string Command { get { return "gold"; } }
            public int RequiredRank { get { return 3; } }
    
            public void Execute(Player player, string[] args)
            {
                try
                {
                    if (args.Length == 0)
                    {
                        player.SendHelp("Use /gold <ammount>");
                    }
                    else if (args.Length == 1)
                    {
                            using (Database dbx = new Database())
                            {
                                player.Credits = dbx.UpdateCredit(player.Client.Account, int.Parse(args[0]));
                                player.UpdateCount++;
    
                            }
    
    
                    }
                }
    
                catch
                {
                    player.SendError("Error!");
                }
            }
        }

  2. #2
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Lol, where is the credits you ripped this from doomed. This is just the fame command with changed currency....

  3. #3
    Siphilice's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    107
    Reputation
    10
    Thanks
    122
    Uh it wasnt ripped from doom herp derp. I never even downloaded doomed source lmfao. I love how people think because code is similar or the same its automatically stolen?

    What im supposed to rewrite the whole server just because the code i typed happens to be in someone elses source? Get a life and i never claimed credit for it :P

  4. #4
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Siphilice View Post
    Uh it wasnt ripped from doom herp derp. I never even downloaded doomed source lmfao. I love how people think because code is similar or the same its automatically stolen?

    What im supposed to rewrite the whole server just because the code i typed happens to be in someone elses source? Get a life and i never claimed credit for it :P
    Well first of all, i might took mistake, this is also on clubs anyways, what is the chance you code your own code that is similare to another one. And i have a life. But it sounds like your oppinion of "life" is all about making a good single code since your only tutorial thread is this one revealing what you point to be your "own" work. Now you didnt annoy me as you perhaps wanted to but at all made me feel sad for you. I have nothing else to say.

  5. #5
    Siphilice's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    107
    Reputation
    10
    Thanks
    122
    Quote Originally Posted by thenired View Post
    Well first of all, i might took mistake, this is also on clubs anyways, what is the chance you code your own code that is similare to another one. And i have a life. But it sounds like your oppinion of "life" is all about making a good single code since your only tutorial thread is this one revealing what you point to be your "own" work. Now you didnt annoy me as you perhaps wanted to but at all made me feel sad for you. I have nothing else to say.
    Got nothing better to do than harass someone who is trying to share with the community, nice job sir you are a winner

  6. The Following User Says Thank You to Siphilice For This Useful Post:

    lkdjnfoskjednfblksjdfn (07-02-2015)

  7. #6
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Siphilice View Post
    Got nothing better to do than harass someone who is trying to share with the community, nice job sir you are a winner
    Enjoy your thanks, but i deserve it most.

Similar Threads

  1. as3 client to clubs source???
    By toby2449 in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 03-07-2015, 08:37 PM
  2. We need a working reboot/restart command... for phoenix source
    By ebeards in forum Realm of the Mad God Private Servers Help
    Replies: 2
    Last Post: 02-08-2015, 11:32 AM
  3. I need help making shops and dungeons using Club source
    By Chilly ROMG in forum Realm of the Mad God Private Servers Help
    Replies: 4
    Last Post: 09-20-2014, 12:23 PM
  4. [Help Request] i keep getting this error using club source
    By Killergard in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 08-30-2014, 03:26 PM
  5. Adding/Modifying Console Commands (work in progress / need input)
    By nilly in forum Realm of the Mad God Help & Requests
    Replies: 2
    Last Post: 12-05-2012, 09:46 AM