TM-FORUM

The TrackMania universal forum ^_^
It is currently Tue Nov 25, 2014 4:36 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 85 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Big Geordie
PostPosted: Fri Oct 27, 2006 2:05 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
Hi guys!

Inspired by Sloth's dogbot and the tweaks by XXX-MAX I decided to write my own. 8) 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. :lol:

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. :)

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Last edited by El Fuego on Fri Aug 06, 2010 2:47 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 2:45 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
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:
[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). 8)

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 4:31 pm 
Offline
Pit Crew
Pit Crew

Joined: Sat Jun 03, 2006 4:24 pm
Posts: 1493
Owned TM-games: TMU
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:
[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). 8)


Try using $command['author']->nickname.

$command['author'] is actually the Player record from the ASECO player list.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 6:14 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
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:
$player = $aseco->server->players->getPlayer($loginname);

... replicates the $command['author'] array, so you can use $player->nickname to get the nickmname, etc. 8)

Updated code in link in first post.

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 8:46 pm 
Offline
smooth traffic navigator
smooth traffic navigator
User avatar

Joined: Sun Jun 25, 2006 6:02 pm
Posts: 299
Location: Florida, USA
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."


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 28, 2006 2:56 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
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).

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 28, 2006 4:53 pm 
Offline
smooth traffic navigator
smooth traffic navigator
User avatar

Joined: Wed May 24, 2006 1:17 am
Posts: 279
Location: The Netherlands
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 3:14 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
Your wish is my command! 8)

V0.2 now linked in first post - including a swear kicker. Set to true any word you want to kick the player.

:D

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 3:20 pm 
Offline
smooth traffic navigator
smooth traffic navigator
User avatar

Joined: Wed May 24, 2006 1:17 am
Posts: 279
Location: The Netherlands
El Fuego wrote:
Your wish is my command! 8)

V0.2 now linked in first post - including a swear kicker. Set to true any word you want to kick the player.

:D

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

_________________
Rugby World Cup Champions 1995, 2007: DIE SPRINGBOKKE


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 3:43 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
Small tweak - I hadn't used the $swearkick variable as planned.

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 5:59 pm 
Offline
smooth traffic navigator
smooth traffic navigator
User avatar

Joined: Wed May 24, 2006 1:17 am
Posts: 279
Location: The Netherlands
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 6:54 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
Where's your server? (nation and name).

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 29, 2006 7:11 pm 
Offline
smooth traffic navigator
smooth traffic navigator
User avatar

Joined: Wed May 24, 2006 1:17 am
Posts: 279
Location: The Netherlands
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 30, 2006 4:43 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
I paid a quick visit and said hi to James. 8)

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 08, 2006 11:19 pm 
Offline
solid chaser
solid chaser
User avatar

Joined: Fri Oct 27, 2006 2:00 pm
Posts: 1097
Location: Nae too far frae Glesgie
Owned TM-games: TMUF, TM2 C/S
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. 8)

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 85 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group