Vault/Realm command

Posts 1–14 of 14 · Page 1 of 1
Vault/Realm command
i tried making the command /vault using the /tutorial way but when try addworld to try add vault islimbo gets in the way, and for realms i don't know where the realm generator is and i can link the command to it. if someone could help a little and not entirely do it for me that would be great.
Just copy /tutorial and change it so it loads into the Gameworld (realm) or the vault.
Quote Originally Posted by OmegaBM View Post
Just copy /tutorial and change it so it loads into the Gameworld (realm) or the vault.
I did that, gets me into a infinite loading screen.
Quote Originally Posted by OmegaBM View Post
Just copy /tutorial and change it so it loads into the Gameworld (realm) or the vault.
i'm not sure if you've tried or understand but it doesn't work cos there's no addworld which you need to create it, but something is blocking it from creating a load world, and with realm there's a realm generator not an actual world or anything so that's why i can't do that same as /tutorial
To be nice. I'll put it here.

Code:
    internal class VaultCommand : Command
    {
        public VaultCommand()
            : base("vault")
        {
        }

        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            player.Client.Reconnect(new ReconnectPacket
            {
                Host = "",
                Port = Program.Settings.GetValue<int>("port"),
                GameId = World.VAULT_ID,
                Name = "Portable Storage",
                Key = Empty<byte>.Array,
            });
            return true;
        }
    }

All credits goes to the creators of the Skilly source. Found this code from there.

If you did get use of this, hit that thanks button please.
Quote Originally Posted by The 7th Hokage View Post
To be nice. I'll put it here.

Code:
    internal class VaultCommand : Command
    {
        public VaultCommand()
            : base("vault")
        {
        }

        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            player.Client.Reconnect(new ReconnectPacket
            {
                Host = "",
                Port = Program.Settings.GetValue<int>("port"),
                GameId = World.VAULT_ID,
                Name = "Portable Storage",
                Key = Empty<byte>.Array,
            });
            return true;
        }
    }

All credits goes to the creators of the Skilly source. Found this code from there.

If you did get use of this, hit that thanks button please.
Bad luck, still puts you in a Infinite Loading Screen
Quote Originally Posted by The 7th Hokage View Post
To be nice. I'll put it here.

Code:
    internal class VaultCommand : Command
    {
        public VaultCommand()
            : base("vault")
        {
        }

        protected override bool Process(Player player, RealmTime time, string[] args)
        {
            player.Client.Reconnect(new ReconnectPacket
            {
                Host = "",
                Port = Program.Settings.GetValue<int>("port"),
                GameId = World.VAULT_ID,
                Name = "Portable Storage",
                Key = Empty<byte>.Array,
            });
            return true;
        }
    }

All credits goes to the creators of the Skilly source. Found this code from there.

If you did get use of this, hit that thanks button please.
Thanks for trying to help but it doesn't work either
The code here is literally trying to have you connect to a World that was never added, aka the command doesn't add another world for that player.

If you wanted a vault command it would be more complex than you think. Vault.cs and Tutorial.cs are completely different if you take a look in the worlds folder

I don't want to attempt it but @Riigged might, up to him
Quote Originally Posted by Desire View Post
The code here is literally trying to have you connect to a World that was never added, aka the command doesn't add another world for that player.

If you wanted a vault command it would be more complex than you think. Vault.cs and Tutorial.cs are completely different if you take a look in the worlds folder

I don't want to attempt it but @Riigged might, up to him
Yeh i had a feeling it was something like that but i also thought maybe it was something simple i was missing
Maybe it's because you can do /vault <player-name>
On Owl Realms, I used to have /entvault.
err, its because everyone has their own vault, youre just telling it to bring you to vault but not specifying whos vault.
^^^^^^^^^^^

case 0x0720:
world = player.Manager.GetWorld(World.VAULT_ID); break;
I tried doing this but it kept popping up with errors within the gameid, where's the problem?
internal class RealmCommand : Command
{
public RealmCommand()
: base("")
{
}

protected override bool Process(Player player, RealmTime time, string[] args)
{
player.Client.Reconnect(new ReconnectPacket
{
Host = "",
Port = Program.Settings.GetValue<int>("port"),
GameId = world.Id,
Name = world.Name,
Key = world.PortalKey,
});
return true;
}
}
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us