Exemplo n.º 1
0
            public override void Process(CmdTrigger <RealmServerCmdArgs> trigger)
            {
                InstancedMap instancedMap;

                if (!trigger.Text.HasNext && trigger.Args.Character != null)
                {
                    instancedMap = trigger.Args.Character.Map as InstancedMap;
                    if (instancedMap == null)
                    {
                        trigger.Reply("Current Map is not an Instance.");
                        return;
                    }
                }
                else
                {
                    instancedMap = InstanceCommand.GetInstance(trigger);
                    if (instancedMap == null)
                    {
                        return;
                    }
                }

                instancedMap.Delete();
                trigger.Reply("Instance Deleted");
            }
Exemplo n.º 2
0
            public override void Process(CmdTrigger <RealmServerCmdArgs> trigger)
            {
                InstancedMap instance = InstanceCommand.GetInstance(trigger);

                if (instance == null)
                {
                    return;
                }
                int entrance = trigger.Text.NextInt(0);

                instance.TeleportInside(trigger.Args.Character, entrance);
            }