Hi !
I'm working on a new server system and i think it will be very convenient to make a custom command.
For example to vote for the next track like this topic : http://forum.mxsimulator.com/viewtopic.php?f=15&t=41340
Or to note a track between 1-10 like : server, vote 8
Or again many other utilities.
Currently, we will make it with a website but it's not very ergonomic and intuitive.
Server - Custom command
-
- Crushed Dissenter
- Posts: 326
- Joined: Mon Oct 13, 2014 3:46 pm
- Team: MTFactory
Re: Server - Custom command
Since it is not implemented in the actual server, you would have to approach it something like this:MxWayGamer wrote:Hi !
I'm working on a new server system and i think it will be very convenient to make a custom command.
For example to vote for the next track like this topic : http://forum.mxsimulator.com/viewtopic.php?f=15&t=41340
Or to note a track between 1-10 like : server, vote 8
Or again many other utilities.
Currently, we will make it with a website but it's not very ergonomic and intuitive.
When a race finish, you broadcast a message with 3 different tracks, like:
"What track should be on next? Type track_1 for "Rabbit hill", track_2 for "Waterloo Valley" or track_3 for "Alcrest". They you'd have to have some sort of listener that listens to the chat and after a minute decides which track got the more votes. So you'd have to make your own function that counts how many votes each "track_x" gets. Then you set that track with the server,settrack # as # being the one that got most votes.
Discord: StorkeN#6883 - StorkenMXS Youtube - StorkenMXS Instagram - StorkenMXS Facebook - TMFR on Faceboook
-
- Crushed Dissenter
- Posts: 326
- Joined: Mon Oct 13, 2014 3:46 pm
- Team: MTFactory
Re: Server - Custom command
It's possible to read a chat with a extern file ? If it's possible, we can make a custom command like this : "command, vote X" and the extern file make the modification in the server like you say.
Re: Server - Custom command
Read from "lastlog.txt" , that has all the info from the chat.
Discord: StorkeN#6883 - StorkenMXS Youtube - StorkenMXS Instagram - StorkenMXS Facebook - TMFR on Faceboook
-
- Crushed Dissenter
- Posts: 326
- Joined: Mon Oct 13, 2014 3:46 pm
- Team: MTFactory