Ulysses

General => Developers Corner => Topic started by: Panther on February 24, 2016, 01:30:34 AM

Title: !bring only lets me bring one person at a time
Post by: Panther on February 24, 2016, 01:30:34 AM
How do i make it so !bring lets me bring everyone, for example the command !bring * does not work and if people have the same name it will simply refuse to work until i specify only one person. Can someone help me fix this?
Title: Re: !bring only lets me bring one person at a time
Post by: Megiddo on February 24, 2016, 03:25:44 AM
As written, it won't allow more than one. Are you looking to modify the command to bring more?
Title: Re: !bring only lets me bring one person at a time
Post by: Panther on February 24, 2016, 02:24:50 PM
Yes im trying to make it so i can bring as many people as i want at one time, for example to where !bring * brings everyone.
Title: Re: !bring only lets me bring one person at a time
Post by: Megiddo on February 25, 2016, 03:21:02 AM
You will need to modify goto.lua. I think the function is SendTo. It only accepts one "sendee" at the moment.
Title: Re: !bring only lets me bring one person at a time
Post by: Panther on February 28, 2016, 02:08:38 AM
Sorry im new to coding and im not sure what file youre referring to, where exactly is goto.lua ?
Title: Re: !bring only lets me bring one person at a time
Post by: Megiddo on February 28, 2016, 05:14:50 AM
Sorry it's teleport.lua. The function you'll want to modify is this -- https://github.com/TeamUlysses/ulx/blob/master/lua/ulx/modules/sh/teleport.lua#L4 -- as well as the commands to accept players rather than just a player.