[Fab] Gamble command (rolls number 1-100)

Posts 1–7 of 7 · Page 1 of 1
[Fab] Gamble command (rolls number 1-100)
Alright here's a command that I made it pretty much just rolls a number between 0 and 100 for gambling. This was kind of inspired by runescape gambling above or below game.

Code:
    internal class GambleCommand : Command
    {
        public GambleCommand()
            : base("roll", 3)
        {
        }

        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            Random rnd = new Random();

            string pl = player.Name;

            string rand = rnd.Next(0, 100).ToString();

            foreach (Client i in player.Manager.Clients.Values)
            {
                i.SendPacket(new TextPacket
                {
                    BubbleTime = 0,
                    Stars = -1,
                    Name = pl,
                    Text = "rolled a " + rand
                });
            }
            return true;
        }
    }
Credits: 99.5% to me, 0.5% to Kithi for changing /gamble to /roll
Quote Originally Posted by Stellar Spark View Post


add mor variables pls
M9 it aint supposed to be complex. It's a simple roll command XD
Quote Originally Posted by Caesar1928 View Post
M9 it aint supposed to be complex. It's a simple roll command XD
you play rs3 or osrs

btw this command is:


 
If you play rs3
The command is fucking terrible never coder again


 
If you play OSRS
This command is good.


- - - Updated - - -

Quote Originally Posted by Stellar Spark View Post


add mor variables pls
is dis the new guy you were talking about xD
Quote Originally Posted by NotKierze View Post
you play rs3 or osrs

btw this command is:


 
If you play rs3
The command is fucking terrible never coder again


 
If you play OSRS
This command is good.


- - - Updated - - -



is dis the new guy you were talking about xD
LOL that's so true... I used to play osrs private servers :P
Quote Originally Posted by Caesar1928 View Post
LOL that's so true... I used to play osrs private servers :P
xD yep rs3 ruined the game so now i am just a hardcore old school player
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?