1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Teleports settable by admin

Discussion in 'Scripts' started by MissMelissa, Dec 29, 2016.

  1. MissMelissa

    MissMelissa Staff Member Forum Moderator Wiki Staff

    Messages:
    157
    Likes Received:
    103
    Joined:
    Dec 26, 2016
    Someone on Discord wanted a simple teleporting script which could teleport you to several places on the map, so here it is: https://github.com/MissyMelissa/freeroam-tp

    [​IMG]

    You can use the commands /tele as a regular user, and /tpset, /tprem, /tpload, /tpsave as an admin.

    On resource stop it automatically saves the locations xml file to the server folder, and on resource start it automatically loads them.

    Download: Zip on Github
     
    Last edited: Dec 30, 2016
  2. Kemula

    Kemula Active Member Language Board Moderator

    Messages:
    99
    Likes Received:
    29
    Joined:
    Aug 6, 2016
    Thank you for uploading your scripts! They're very helpful to people in order to learn more about the API and C#.

    :=D
     
  3. Jorge Santamaria

    Jorge Santamaria Member

    Messages:
    15
    Likes Received:
    1
    Joined:
    Dec 8, 2016
  4. MissMelissa

    MissMelissa Staff Member Forum Moderator Wiki Staff

    Messages:
    157
    Likes Received:
    103
    Joined:
    Dec 26, 2016
    I'm glad you like them! :=D
     
  5. Corleone

    Corleone Member

    Messages:
    19
    Likes Received:
    1
    Joined:
    Jan 2, 2017
  6. Corleone

    Corleone Member

    Messages:
    19
    Likes Received:
    1
    Joined:
    Jan 2, 2017
    Hey, thanks for the script - I really like it.
    But I got the problem that I cant see my new tps because theres no line break at /tplist.

    How to add a line break after 5 ~ tps in a foreach loop?

    Code:
    string ret = "";
    
    foreach (var tl in m_teleportLocations) {
                    ret += tl.Name + ", ";
                }
    
                sender.sendChatMessage("~g~Locations: ~s~" + ret.Trim(',', ' '));
     
  7. MissMelissa

    MissMelissa Staff Member Forum Moderator Wiki Staff

    Messages:
    157
    Likes Received:
    103
    Joined:
    Dec 26, 2016
    You're right, that's a problem. I'll fix it tomorrow :=)
     

Share This Page