Ulysses

General => Developers Corner => Topic started by: JabbaTheWut on February 01, 2015, 10:49:33 AM

Title: Make a command teleport you to a pre specified location
Post by: JabbaTheWut 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.
Title: Re: Make a command teleport you to a pre specified location
Post by: XxLMM13xX 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 )
Title: Re: Make a command teleport you to a pre specified location
Post by: Bytewave on February 01, 2015, 03:35:03 PM
This addon (https://github.com/jkralicky/Custom-ULX-Commands) has a !warp and !setwarp command that may work like you want it to.
Title: Re: Make a command teleport you to a pre specified location
Post by: XxLMM13xX 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!
Title: Re: Make a command teleport you to a pre specified location
Post by: Bite That Apple 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..
Title: Re: Make a command teleport you to a pre specified location
Post by: XxLMM13xX 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
Title: Re: Make a command teleport you to a pre specified location
Post by: Caustic Soda-Senpai on February 05, 2015, 01:05:18 PM
I still think that name is dumb..

Apple, your support is amazing XD
Title: Re: Make a command teleport you to a pre specified location
Post by: Bite That Apple on February 05, 2015, 05:05:24 PM
Steve jobs would of said the same thing ;)