Solved Teleport / warp locations

Discussion in 'Plugin Requests' started by Upperking, Apr 17, 2015.

  1. I guess Imma go for that.
     
  2. But.. Teleportation is already in the game.. o_O
     
  3. I think he means that in an advanced way, just like in Rust. With Tpr, Home etc
    Anyways im going to challaenge myself with that...
     
  4. It would be nice for guildmates to have a tp system. It should be on a cool down system controlled by the admins for the best results but it could work well for new people joining a server.
     
  5. having the ability to teleport a user to you would be great.
     
  6. Fairly simple to do.
    You could run it of a location based area that is checked when a player calls a teleport request command in the chat.
    You could add a teleport transportation cost, etc.

    The only problem you may face with having "shrines / teleport buildings' etc is how to stop other players breaking them, etc.
    Probably need to use one of the block protection scripts for this. Perhaps again win a marker area set out.

    Ohhhh the possibilities are endlesssssssss!!!! :-D
     
  7. Damn... Teleportation shrines.. I didn't even think of anything like that. That's an awesome idea! Especially on the new HUGE map!
     
  8. Sounds like the teleport things in the game Fable ;)

    Are you able to do a teleport command similar to /teleport [USER] But instead have the user teleport to you?
     
  9. I reckon I could knock that up fairly quickly. Gimme a few minutes... ;-)
     
  10. Why would you want a player to teleport to you? o_O That would get out of control/abused like crazy.

    Teleportation Shrines would be an awesome idea for RP servers.

    So, would it just be preset locations they can teleport to? So, they could do something like /warplist to pull up the locations, and /warp location to go to that shrine? With a cooldown, I assume. Pretty excellent notion!
     
  11. Not entirely tested because am at work and can only use one character login (on my VM), but try something like this:
    It might do the trick... ;-)

    Code:
    using System;
    using System.Linq;
    using CodeHatch.Engine.Networking;
    using CodeHatch.Common;
    using Oxide.Core;
    using CodeHatch.Networking.Events;
    using CodeHatch.Networking.Events.Entities;
    using CodeHatch.Networking.Events.Entities.Players;
    using CodeHatch.Networking.Events.Players;namespace Oxide.Plugins
    {
        [Info("TeleToMe", "Scorpyon", "1.0.1")]
        public class TeleportToMe : ReignOfKingsPlugin
        {
            void Log(string msg) => Puts($"{Title} : {msg}");
        
            // USAGE : /teletome "player Name"
            [ChatCommand("teletome")]
            private void AdminTeleportToLocation(Player player, string cmd, string[] input)
            {
                if (!player.HasPermission("admin"))
                {
                    PrintToChat(player, "Only admins can use this command.");
                    return;
                }
                if(input.Length < 1) return;
                var playerName = input[0];
                TeleportPlayerToMe(player, playerName);
            }        private void TeleportPlayerToMe(Player player, string playerName)
            {
                var target = Server.GetPlayerByName(playerName);
                if(target == null) return;
                double posX = target.Entity.Position.x;
                double posZ = target.Entity.Position.z;
            
                posX = player.Entity.Position.x + 2;
                posZ = player.Entity.Position.z;
            
                PrintToChat(player, "Player has been moved to you.");
            }
        }
    }
    
     
  12. How would it be abused? It would be an admin command. Not a user command. o_O Have you not been on any other game server? Most game servers have this command. In fact, it is one of the most requested commands in the steam community for this game.
    https://steamcommunity.com/app/344760/discussions/4/610575007218493057/
    [DOUBLEPOST=1434465824][/DOUBLEPOST]
    Awesome!! Will test it now and let you know :)
     
  13. It wasn't clear to me that you meant Admin only.. BUT.. You do realize that this command exists naturally in the game, right?

    /tp name name. First name teleports to second name. You can teleport anyone to anyone... That includes players to YOU.
     
  14. I would assume it's for admins to rescue stuck / trapped players without having to scour the map for them.
    I would imagine?
    [DOUBLEPOST=1434465983][/DOUBLEPOST]
    I wasn't aware of this command either, funnily enough! Hah!
    Could have saved my fingers the "somewhat minimal" effort... :p
     
  15. Just read the post he linked. It's not exactly MOST requested. :p

    Also, you CAN teleport players to coordinates... It's almost like the people who made that list of requests to Code}{atch haven't even typed /help to view built in commands. :p

    /tp name x z
    That simple.
    [DOUBLEPOST=1434466992][/DOUBLEPOST]A thought on the Shrine business.

    Make them only able to use the command from a shrine location. Also, if possible, incorporate the Grand Exchange currency into it so they have to use Gold to pay for their travel. This would shape up to be an amazing RP plugin!
     
  16. I was going to work on a warp plugin but if someone else is already doing it I wont.

    /warp king would telport you to the tax tree.
    /warp oil would telport you to the oil field

    etc.

    also add ability to set additional locations

    very useful for mod/admin
    [DOUBLEPOST=1434595303][/DOUBLEPOST]and I like the idea of charging currency to use a teleport shrine. you can hook into the Grand Exchange currency system.
     
  17. For this idea, you might as well make the currency part of the Grand Exchange it's own plugin. Have a Currency system plugin that other plugins can hook into. This way people who don't want the Grand Exchange, can have other plugins that require a currency.
     
  18. It's doable, for sure.
    Though, it would be a little awkward.
    Probably something I'll think about soon.
    On that note, an easier option in the interim is to keep the GE for Currency, but add an option for toggling off the store. (So people don't have to worry about the store, but can keep the money.
     
  19. I am currently working on a core mod for a currency system. I had ideas for staking (a big thing in runescape for money making), trading (items and currency), and possibly a plugin that will allow players to exchange in-game currency for real-life items and/or real life items for in-game currency (if we can manage it legally that is).