[SD] Quest Teleport Command

Posts 1–8 of 8 · Page 1 of 1
[SD] Quest Teleport Command
Well yea, nothing to say really. Just teleports you to your quest if you have one..
if you want other ranks to have permission to use this code simply change 7 to the rank you desire

This has to be added to wServer\realm\commands\AdminCommands.cs

Code:
internal class TpQuestCommand : Command
    {
        public TpQuestCommand() : base("tpq", 7) { }

        protected override bool Process(Player player, RealmTime time, string args)
        {
            if (player.Quest == null)
                return false;

            player.Move(player.Quest.X + 0.5f, player.Quest.Y + 0.5f);
            player.SetNewbiePeriod();
            player.UpdateCount++;
            player.Owner.BroadcastPacket(new GotoPacket
            {
                ObjectId = player.Id,
                Position = new Position
                {
                    X = player.Quest.X,
                    Y = player.Quest.Y
                }
            }, null);
            return true;
        }
    }
cool. This is already in most sources tho.
Quote Originally Posted by MikeRaarupBirk View Post
cool. This is already in most sources tho.
Every TQ command teleports right at the boss, lol...

without godmode dead everytime ;p
Quote Originally Posted by Demon View Post
Every TQ command teleports right at the boss, lol...

without godmode dead everytime ;p
so does this.
Quote Originally Posted by MikeRaarupBirk View Post
so does this.
Exactly, ;p ima try to make one that doesn't ;p
Quote Originally Posted by Demon View Post
Exactly, ;p ima try to make one that doesn't ;p
just increase the + 0.5f to something else xd
Quote Originally Posted by MikeRaarupBirk View Post
just increase the + 0.5f to something else xd
lol, XD

i'll do something neat to it then
Quote Originally Posted by Demon View Post
Every TQ command teleports right at the boss, lol...

without godmode dead everytime ;p
yea because it's meant to be for admins only.
You can also add invulnerability for 1 sec if you want non admins to use it
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us