ULX

Author Topic: !bring only lets me bring one person at a time  (Read 2541 times)

0 Members and 1 Guest are viewing this topic.

Offline Panther

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
!bring only lets me bring one person at a time
« 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?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: !bring only lets me bring one person at a time
« Reply #1 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?
Experiencing God's grace one day at a time.

Offline Panther

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: !bring only lets me bring one person at a time
« Reply #2 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.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: !bring only lets me bring one person at a time
« Reply #3 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.
Experiencing God's grace one day at a time.

Offline Panther

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: !bring only lets me bring one person at a time
« Reply #4 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 ?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: !bring only lets me bring one person at a time
« Reply #5 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.
Experiencing God's grace one day at a time.