Author Topic: Make a command teleport you to a pre specified location  (Read 3394 times)

0 Members and 1 Guest are viewing this topic.

Offline JabbaTheWut

  • Newbie
  • *
  • Posts: 35
  • Karma: -3
  • The Noob.
Make a command teleport you to a pre specified location
« on: February 01, 2015, 10:49:33 AM »
So I want to add an adimn room. I would like to make it so you type !sit and it auto teleports you to a location that I have specified.
I looked through teleport.lua and tried to do it myself but failed.
I might be one of the stupidest people you will ever meet.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Make a command teleport you to a pre specified location
« Reply #1 on: February 01, 2015, 03:04:06 PM »
This is a good idea ill try making it! ( im a bad lua coder so ill see what i can think of )

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Make a command teleport you to a pre specified location
« Reply #2 on: February 01, 2015, 03:35:03 PM »
This addon has a !warp and !setwarp command that may work like you want it to.
bw81@ulysses-forums ~ % whoami
Homepage

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Make a command teleport you to a pre specified location
« Reply #3 on: February 01, 2015, 04:08:44 PM »
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Lol i made a !sit command and i will post it in the release section of the ulx forums after a few fixes!

i will put the code below so you can use it now and i will warn you of the new version....

Whats wrong with is.....
It does not advert the people involved and is not in the ulx menu yet so you have too say !sit <name> then !sit


Thanks!

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Make a command teleport you to a pre specified location
« Reply #4 on: February 05, 2015, 09:00:17 AM »
So I want to add an adimn room. I would like to make it so you type !sit and it auto teleports you to a location that I have specified.
I looked through teleport.lua and tried to do it myself but failed.

It really depends what you want. I believe !setwarp disappears after the map or server restart, but at the same time I do not know because I didn't look at the code.

I made a !sit command

I still think that name is dumb..
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Make a command teleport you to a pre specified location
« Reply #5 on: February 05, 2015, 12:08:35 PM »
I still think that name is dumb..

I needed a idea for a command to make and I wanted to make this... I'm sorry i'm not a pro coder and don't know how to do pro things

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Make a command teleport you to a pre specified location
« Reply #6 on: February 05, 2015, 01:05:18 PM »
I still think that name is dumb..

Apple, your support is amazing XD
Once you get to know me, you'll find you'll have never met me at all.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Make a command teleport you to a pre specified location
« Reply #7 on: February 05, 2015, 05:05:24 PM »
Steve jobs would of said the same thing ;)
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.