[Command] CloseRealm

Posts 110 of 10 · Page 1 of 1
[Command] CloseRealm
Well, I was looking through help section, and I saw this one post asking for a /closerealm command. I saw noone post anything that was helpful except to do "/ka". Funny. I coded this really quickly a while back, so I'm like, good quick command. Well here you go.

Code:
    internal class CloseRealmCmd : Command
    {
        public CloseRealmCmd()
            : base("closerealm", 80)
        {
        }
        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            if (player.Owner is GameWorld)
            {
                var gw = player.Owner as GameWorld;
                gw.Overseer.InitCloseRealm();
                return true;
            }
            else
            {
                return false;
            }
        }
    }
ENJOY
It says insufficient rank?! Wut...kiddin

I like it! short and simple
Boi
Quote Originally Posted by Demon View Post
It says insufficient rank?! Wut...kiddin

I like it! short and simple
Boi just change the 80 into a rank that you have usually the max is 7 so go between those numbers 3 will 100% work on im pretty sure every source
Quote Originally Posted by ZXXM View Post
Boi just change the 80 into a rank that you have usually the max is 7 so go between those numbers 3 will 100% work on im pretty sure every source
hes just kidding
Cool..

/2short
Where do i put this code?
Quote Originally Posted by Pinkzombie View Post
Where do i put this code?
AdminCommand.cs
thanks for the help
Helps very much, Trying to add oryx's chamber and this saves me so much work.
Quote Originally Posted by noobster9999 View Post
Helps very much, Trying to add oryx's chamber and this saves me so much work.
Not really because that's not how it works, realm closing is automatic..
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?