This is the place where you can find everything related to the dedicated server, control scripts and community tools.
Moderators: Pit Crew, TM-Patrol
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 27 Oct 2006 11:05
Hi guys!
Inspired by Sloth's dogbot and the tweaks by XXX-MAX I decided to write my own.

You can find the code
here if you are interested.
Any and all comments and critiques welcomed. Feel free to use and modify this code as you desire.
PS - this runs on my server - XXX El Fuego - when I have the server running.
Edit: Link updated with latest version as of 6th August 2010, and points to Ant's server.

Last edited by
El Fuego on 06 Aug 2010 11:47, edited 2 times in total.
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 27 Oct 2006 11:45
One improvement I want to make is to incorporate the user's nickname. This is easily available in the chat_bgbot() function because the $command array includes it. However in the BigGeordie() function the $command array only includes the following elements ...
Code: Select all
[0] - User' ID on server
[1] - User's login name
[2] - User's chat text
[3] - I don't know, this is always empty when I look at it
Therefore there must be a way of getting the nickname from the login name. Anyone done this before and can give any pointers? (I'm gonna dissect the Aseco and RASP code anyway to try and find out, but if someone's done this before and can give some guidance then it would be appreciated).

-
Assembler Maniac
- Pit Crew

- Posts: 1493
- Joined: 03 Jun 2006 13:24
- Owned TM-games: TMU
-
Contact:
Post
by Assembler Maniac » 27 Oct 2006 13:31
El Fuego wrote:One improvement I want to make is to incorporate the user's nickname. This is easily available in the chat_bgbot() function because the $command array includes it. However in the BigGeordie() function the $command array only includes the following elements ...
Code: Select all
[0] - User' ID on server
[1] - User's login name
[2] - User's chat text
[3] - I don't know, this is always empty when I look at it
Therefore there must be a way of getting the nickname from the login name. Anyone done this before and can give any pointers? (I'm gonna dissect the Aseco and RASP code anyway to try and find out, but if someone's done this before and can give some guidance then it would be appreciated).

Try using $command['author']->nickname.
$command['author'] is actually the Player record from the ASECO player list.
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 27 Oct 2006 15:14
That's what I thought ... but the $command array in the BigGeordie function
only contains the elements shown in my post! (The $command array in the chat_bgbot function has two main elements - author and params - and the author element has subelements including the nickname etc). Why would that be the case?
Anyway - I think I have found the answer ...
Code: Select all
$player = $aseco->server->players->getPlayer($loginname);
... replicates the $command['author'] array, so you can use $player->nickname to get the nickmname, etc.
Updated code in link in first post.
-
Dmdfreak
- smooth traffic navigator

- Posts: 299
- Joined: 25 Jun 2006 15:02
- Location: Florida, USA
-
Contact:
Post
by Dmdfreak » 27 Oct 2006 17:46
What does this plugin do?
http://www.RacingFreaks.Org
Quote From RFUnwavering:
Then she continues, "Why is it that sex is the only thing guys are interested in?"
I thought for a second and stated, "That's not true, I like Trackmania too."
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 28 Oct 2006 11:56
Is that not evident from the first post?
It's a chat bot script - automatically responds to chat text. Also includes a swear filter/responder (not a swear kicker).
-
Oldbie
- smooth traffic navigator

- Posts: 279
- Joined: 23 May 2006 22:17
- Location: The Netherlands
-
Contact:
Post
by Oldbie » 28 Oct 2006 13:53
El Fuego wrote:Is that not evident from the first post?
It's a chat bot script - automatically responds to chat text. Also includes a swear filter/responder (not a swear kicker).
If you build in a swear kicker I will most certainly use this one.

Rugby World Cup Champions 1995, 2007: DIE SPRINGBOKKE
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 29 Oct 2006 12:14
Your wish is my command!
V0.2 now linked in first post - including a swear kicker. Set to
true any word you want to kick the player.

-
Oldbie
- smooth traffic navigator

- Posts: 279
- Joined: 23 May 2006 22:17
- Location: The Netherlands
-
Contact:
Post
by Oldbie » 29 Oct 2006 12:20
El Fuego wrote:Your wish is my command!
V0.2 now linked in first post - including a swear kicker. Set to
true any word you want to kick the player.

Thanks.....going to test it right away

Rugby World Cup Champions 1995, 2007: DIE SPRINGBOKKE
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 29 Oct 2006 12:43
Small tweak - I hadn't used the $swearkick variable as planned.
-
Oldbie
- smooth traffic navigator

- Posts: 279
- Joined: 23 May 2006 22:17
- Location: The Netherlands
-
Contact:
Post
by Oldbie » 29 Oct 2006 14:59
El Fuego wrote:Small tweak - I hadn't used the $swearkick variable as planned.
I tweaked the chat phrases and it's running on my server now.
1 kick trigger, 4 swear triggers and some chat triggers.
"James" is working very hard now. Thanks a lot

Rugby World Cup Champions 1995, 2007: DIE SPRINGBOKKE
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 29 Oct 2006 15:54
Where's your server? (nation and name).
-
Oldbie
- smooth traffic navigator

- Posts: 279
- Joined: 23 May 2006 22:17
- Location: The Netherlands
-
Contact:
Post
by Oldbie » 29 Oct 2006 16:11
El Fuego wrote:Where's your server? (nation and name).
It's the "[Fok!]Common Tracks" Server in NED

I also run the "RSA-NED Custom Tracks" in RSA (without James) the "TMX Contest" (password protected) in NED (also without James)

Rugby World Cup Champions 1995, 2007: DIE SPRINGBOKKE
-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 30 Oct 2006 13:43
I paid a quick visit and said hi to James.

-
El Fuego
- solid chaser

- Posts: 1097
- Joined: 27 Oct 2006 11:00
- Owned TM-games: TMUF, TM2 C/S
- Location: Nae too far frae Glesgie
-
Contact:
Post
by El Fuego » 08 Nov 2006 20:19
v0.3 now linked. Adds a rank kicker function so that players with a rank higher than what you define automatically get kicked from the server. Can be enable/disabled in the code by setting True/False the
$rankkick variable.
