TM-FORUM

The TrackMania universal forum ^_^
It is currently Fri Aug 22, 2014 8:56 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 85 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Big Geordie
PostPosted: Mon Sep 20, 2010 4:01 am 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: Sat Dec 01, 2007 8:04 pm
Posts: 1845
Location: London, England
Owned TM-games: TMN, TMUF, TM Wii
Are you using this with at least XAseco v1.11 on a tmf server ? Thats what i'm using since the most recent changes, and I have no problem with it at all (using the code in the download from the 1st post in this topic).

If you're not using Xaseco or a tmf server, can you post what you are using please ?

Edit: Just tested it and the same thing happens for me too, for a quick fix if you still want the swear kicker - on line 124 of the code you posted:
Code:
$swear = true;

change to
Code:
$swear = false;


the kicker will still work, a warning just won't be given first of all though, just the kick message gets sent and they get kicked.

Also, along with that you can add this at the end of the bot responses array to still produce that warning (these are all the words that you have set as false in the swear filter)

Code:
            'piss,twat,cock,****,shoite,turd,bastard,prick,bugger' => array (
                '$f30Please do not use foul and abusive language $z'.$author.'$z$f30. Consider yourself warned! The \'F\' and \'C\' words may get you kicked!'
                    ),


I've now updated the main download including readme - This is foolproof now :thumbsup:

_________________
My TMF Hub --- Server


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Thu Sep 23, 2010 12:13 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
Oops! I'm sure that was correct originally. ;)

$swearon ... turn on (true) or off (false) the swear filter

$swearkick ... turn on (true) or off (false) the auto-kick if a noted swear word is used

$swear ... dynamic variable to determine if a swear word has been found; default false, true when word found.

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Thu Sep 23, 2010 8:06 pm 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: Sat Dec 01, 2007 8:04 pm
Posts: 1845
Location: London, England
Owned TM-games: TMN, TMUF, TM Wii
As it is now though (with tmf), using the $swear option results in spitting out that message on any word - something I didn't catch before because I don't use the swear filter or any of the swear functions.

My little hack above though produces the same end result as originally intended - just goes about doing it in a different way.

_________________
My TMF Hub --- Server


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Sat Sep 25, 2010 3:55 am 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: Sat Dec 01, 2007 8:04 pm
Posts: 1845
Location: London, England
Owned TM-games: TMN, TMUF, TM Wii
I could have edited my above post with this info - but I have changed the plugin a bit so it warrants a new post. :)

The rank kick feature didn't work how I liked, so I copied the function and changed it ever so slightly so it can be used in 2 ways. I hope this is ok with you fuego !

I have updated the download, including readme - which now follows.

biggeordie.php install notes /
----------------------------------/
-----------------------------------

-->All functions are enabled by default<--

1. There is a rank kicker function that you can configure to kick players that are ranked higher than a specified
limit (Line 35). You can also enable and disable this function (Line 30).
This limit is currently set at 5000, so it will kick all players that have a world ladder rank better than 5000.
(e.g 4999 or even 3000 etc). This has now been updated with an extra function that will kick rubbish players as well.
(Enable/Disable this on line 58, change limit on line 63)
This limit is set as 75000, so it will kick all players that have a world ladder rank worse than 75000.
(e.g 75001 or even 200000 etc) Of course, you can change these limits in the plugin but I would only recommend
enabling one of these rank kick functions at a time. (Rank kick great players is currently the default)

2. There is also a swear filter & swear kicker that can be configured on lines 151, 154, 157 and lines 161 - 171.
On lines 184 and 376, you can also customize the swear kick messages that get sent.

IMPORTANT: The config option on line 157 to display a swear warning has been disabled due to a bug that keeps reproducing
the warning message for any word that gets typed. The warning message (line 190) is now also on line 376
(in the main bot responses). Change the keywords according to the config (lines 161 - 171) you have set on different
swear words.


3. You can customize the bot to say whatever you like, just look at the examples (lines 199 - 378) and use them
to build your own ideas !

4. The bot's name can be changed on lines 82 and 135.

5. Place this in your plugins folder and edit plugins.xml to include this line :

<plugin>biggeordie.php</plugin>

6. Restart Aseco/XAseco and enjoy !

Support: viewtopic.php?f=28&t=5197&start=0

_________________
My TMF Hub --- Server


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Sat Sep 25, 2010 12:59 pm 
Offline
wheelbarrow operator
wheelbarrow operator

Joined: Sat Aug 29, 2009 2:22 am
Posts: 23
Owned TM-games: TMNF
hi again, sry for my late answer

i am using Xaseco 1.11 Ant, but i think is ok now, ty for your updates :)


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Mon Sep 27, 2010 3:44 am 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: Sat Dec 01, 2007 8:04 pm
Posts: 1845
Location: London, England
Owned TM-games: TMN, TMUF, TM Wii
no problem man :thumbsup:

_________________
My TMF Hub --- Server


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Tue Oct 26, 2010 10:21 am 
Offline
cyclist
cyclist

Joined: Thu Sep 30, 2010 7:33 pm
Posts: 40
Owned TM-games: TMNF
pls help the bot dont speak in english how to configurate it


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Tue Oct 26, 2010 11:06 am 
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
???

Do you mean - I'd like to change the bot from English to my own language? If yes then simply edit the various messages to what you want. (Line numbers identified below). You can also add or delete words to catch and responses to make. :)

Line 37:
Line 49:
Line 58:
Lines 63 and 64:
Line 85 (for your log):
Line 89:
Line 101:
Lines 128 to 137:
Line 150:
Line 156:
Lines 168 to 348:

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Tue Oct 26, 2010 11:41 am 
Offline
cyclist
cyclist

Joined: Thu Sep 30, 2010 7:33 pm
Posts: 40
Owned TM-games: TMNF
El Fuego wrote:
???

Do you mean - I'd like to change the bot from English to my own language? If yes then simply edit the various messages to what you want. (Line numbers identified below). You can also add or delete words to catch and responses to make. :)

Line 37:
Line 49:
Line 58:
Lines 63 and 64:
Line 85 (for your log):
Line 89:
Line 101:
Lines 128 to 137:
Line 150:
Line 156:
Lines 168 to 348:

1st with which program I must open the php to see this line and number with notpad and worpad not shows
hm but the bot have bulgarian language or?


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Tue Oct 26, 2010 12:54 pm 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: Wed May 23, 2007 10:20 am
Posts: 1461
Location: Venray
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
find a tool called notepad++ or programmers notepad 2.

_________________
Code:
tmnforever is nations and united makes it special. tmnforever has united. I need united!


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Tue Oct 26, 2010 1:24 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
pepel wrote:
hm but the bot have bulgarian language or?

The bot is English by default. It does NOT have any other languages built in - these must be configured as needed by you. :)

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Sat Nov 13, 2010 5:46 pm 
Offline
wheelbarrow operator
wheelbarrow operator
User avatar

Joined: Thu Sep 03, 2009 7:57 pm
Posts: 17
Owned TM-games: TMU
Hello all!
After a time, receive this warning in the log files after the written words in chat

Code:
[11/13,16:21:47] (rapy) jk
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php
[11/13,16:24:43] (rapy) hi
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php
[11/13,16:24:48] (rapy) gg
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php
[11/13,16:26:17] (rapy) shut up
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php
[11/13,16:26:40] (rapy) shutup
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php
[11/13,16:27:16] (rapy) shut up
[11/13,16:28:10] (rapy) sasdasfa
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php
[11/13,16:28:11] (rapy) sfdasf
[PHP Warning] stristr(): Empty delimiter on line 389 in file E:\Program Files\TMU\United\xaseco\plugins\biggeordie.php


line 389
Code:
if ( stristr ($message, $k2) ) {


I use, Xaseco1.12, PHP Version is 5.3.1
Thx , for help, in advance

_________________
Image


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Sat Nov 13, 2010 7:18 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
Hmm. That suggests either $message or $k2 are empty values. $message is the chat text, and $k2 is an element from the array of words to check for.

Does it work OK if you stop and restart Xaseco?

What about if you try this?

Code:
if ( stristr ($message, $k2) === true ) {


Have you edited the array of words/responses? ($bgarr) It may be that you've made an error here.

_________________
Cheers!
.FUEY.
Diary Of A Mad Man


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Sat Nov 13, 2010 9:13 pm 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: Sat Dec 01, 2007 8:04 pm
Posts: 1845
Location: London, England
Owned TM-games: TMN, TMUF, TM Wii
This is the code he's using,

Code:
<?php
// Big Geordie bot plugin
// By XXX El Fuego
// October 29th, 2006
// Version 0.3 (7th November 2006)
//        Added rank kick function
// Version 0.4 (February 1st, 2008)
//        Changed $loginname to $pid in BOT check line for messages
//        Added a comma after the last array element to simplify user changes
// Version 0.5 (6th August 2010)
//         Modified to work with TMF servers
//       
// Requirements: RASP 1.3a or higher for the chat_bgbot function
// Changelog: Moved chat_bgbot messages to BigGeordie, but function name retained for future use
//            Added an option to swear section to KICK on certain words
//            Now works with TMF !!
//            Moved swear warning to main bot responses (check readme file)
//            Extended the rank kick function (check readme file)


// Big Geordie bot responses to the '/bgbot' prompt
Aseco::addChatCommand("bgbot", "Action calls to Big Geordie");

// Check player rank and kick great players
Aseco::registerEvent("onPlayerConnect", "check_rank");

function check_rank ($aseco, $command) {

    // Enable/Disable rank kicker
    $rankkick = false;

    if ( $rankkick ) {

        // Set rank limit
        $ranklimit = 5000;
        $playerlogin = $command-> login;
        $playernick = $command-> nickname;
        $playerrank = $command-> ladderrank;

        if ( $playerrank < $ranklimit ) {

            $msg = "$z$w$i$f30Sorry $z$playernick, $z$w$i$f30but I have to kick you as your rank number is higher than this server allows!";
            $aseco->addCall("ChatSendToLogin",array($msg, $playerlogin));
            $aseco->addCall("Kick", array($playerlogin));

        }

    }

}

// Check player rank and kick rubbish players
Aseco::registerEvent("onPlayerConnect", "check_rank1");

function check_rank1 ($aseco, $command) {

    // Enable/Disable rank kicker
    $rankkick1 = false;

    if ( $rankkick1 ) {

        // Set rank limit
        $ranklimit1 = 75000;
        $playerlogin = $command-> login;
        $playernick = $command-> nickname;
        $playerrank = $command-> ladderrank;

        if ( $playerrank > $ranklimit1 ) {

            $msg = "$z$w$i$f30Sorry $z$playernick, $z$w$i$f30but I have to kick you as your rank number is higher than this server allows!";
            $aseco->addCall("ChatSendToLogin",array($msg, $playerlogin));
            $aseco->addCall("Kick", array($playerlogin));

        }

    }

}

function chat_bgbot ($aseco, $command) {
   
    $botname = '$w$666[$f00Kratos$666]$z$fff>>$o ';

    $player = $command['author'];
    $message = $command['params'];
   $login = $player->login;

//    print_r ($message);

        if ($aseco->isMasterAdmin($player)) {
        $logtitle = 'MasterAdmin';
        $chattitle = $aseco->titles['MASTERADMIN'][0];
     

        $bgarray = array (
            'warn' => 'I am the $666Guardian$z$o$fff of this server. Don\'t ever cross me! Do that again and I\'ll have you!',
       'swear' => 'Please note that I am watching for any swearing. Most words will mean a warning, but anyone using the \'F\' or \'C\' words gets kicked!',
            'close' => 'This server is shutting down in a moment. Thanks for playing!'
            );

        if ( strlen ($message) > 0 ) {

            $msgarr = explode ( ' ', $message );

            foreach ( $bgarray as $k => $v ) {
                if ( stristr ($msgarr[0], $k) ) {
                    $msg = $v;
                    break;
                }
            }

            $msg = $botname.$msg;
            $aseco->addCall("ChatSendServerMessage", array($msg));
        }

    } else {

        // writes warning in console ...
        $aseco->console($login." tried to use BGBOT chat command (no permission!)");

        // sends chat message ...
        $aseco->addCall("ChatSendToLogin",
        array($aseco->formatColors("{#error}You have to be in admin list to do that!"), $login));

    }

}


// Big Geordie bot response to general chat
Aseco::registerEvent("onChat", "BigGeordie");

function BigGeordie ($aseco, $command) {

    $botname = '$w$666[$fooKratos$666]$z$fff>>$ffo ';

    $pid = $command[0];
    $loginname = $command[1];
    $message = $command[2];

//    print_r ($player);

    if ( !stristr ($message, '/bgbot') && $pid != 0) { // Make sure we don't catch BOT calls or server messages

        $player = $aseco->server->players->getPlayer($loginname);
        $author = $player->nickname;

        // Check for swear words and warn

        // Enable/Disable swear filter
        $swearon = true;

        // Enable/Disable swear kick option
        $swearkick = false;

        // Swear word found flag
        // $swear = false;

        if ( $swearon ) {
            $sweararr = array (
                **** => true,
                '****' => true,
                'piss' => false,
                'twat' => false,
                'cock' => false,
                '****' => false,
                'shoite' => false,
                'turd' => false,
                'bastard' => false,
                'prick' => false,
                'bugger' => false
                );

            foreach ( $sweararr as $k => $v ) {
                if ( stristr ($message, $k) ) {
                    $swear = true;
                    break;
                }

            }

            if ( $swear && $v && $swearkick ) {

                $msg = $botname.'$f30That word has no place in chat$z'.$author.'$z$f30. You are being kicked!';
                $aseco->addCall("ChatSendServerMessage", array($msg));
                $aseco->addCall("Kick", array($loginname));

            } elseif ( $swear ) {

                $msg = $botname.'$f30Please do not use abusive language $z'.$author.'$z$f30. Consider yourself warned!';
                $aseco->addCall("ChatSendServerMessage", array($msg));

            }

        }

        if ( !$swearon || !$swear ) {

        // Array of BOT responses
        // Add new keywords to the first array level, then add an array of responses
            $bgarr = array (
                'here big man' => array (
                    'Thanks for putting me mind at rest. Ah was worried for a moment.'
                    ),
                'shut up Kratos,shutup Kratos' => array (
                    'Who\'s gonna make me? You? HA HA HA HA HA!',
                    'Yeah right, the wimp has spoken!',
                    'Leave it, or you\'ll be crapping your teeth tomorrow!'
                    ),
                'kratos?,Kratos?' => array (
                    'Someone mention me name?',
                    'What d\'ya want ya wassack?',
                    'Who rang da bell?'
                    ),
                'unde?,ce fac?,aici?' => array (
                    'Enjoy the fun of discovering map - do not ask after every single checkpoint where to go',
                    'Try to spend some time to find out how to continue ... ask when you are really stucked and frustrated'
                    ),
                'get star,get a star' => array (
                    'Are ye into Astrophysics or summat? Or div ye mean in Trackmania? :-P',
                    'Ye need to cajole/bribe/pursuade someone to vote for you at trackmanianations.com and Bob\'s your parent\'s brother! :-)',
                    'Start with a cold gas. This is attracted to the centre by gravity.The outside forms into a disk as the inside continues to heat up and contract eventually stabalizing the pressure. This is how you make a star.'
                    ),
               'salut Kratos,sal Kratos,hi Kratos,hy Kratos,' => array (
                    'How you doing '.$author.'$z$fff?',
                    'Wassup '.$author.'$z$fff? You OK?'
                    ),
                'virus' => array (
                    'HACK ATTACK!!!! LOOK OUT!!!',
                    'Did you forget to select the right account again DIO? Hehe!'
                    ),
                'hello,ello,howdy,hi all,lo all,alreet,hey all' => array (
                    'Howdy pardner!',
                    'Alreet pal?',
                    'Yo '.$author
                    ),
                'lol,haha,lool,lewl,rofl,hehe' => array (
                    'You\'ll laugh at anything!',
                    'HA HA HA HA HA HA ... ha ha ha ... ha ... Erm - I\'ll shut up now, eh?',
                    'How man! Calm down, calm down! Eh? Eh?',
                    'Makes me laugh too!',
                    'HAR HAR HAR de bloody HAR!',
                    'U R teh funny geezer!',
                    'Makes me laugh too!',
                    'That\'s geet funny as out man!',
                    'I kna - I\'m wetting mesell!',
                    ':-D',
                    'Just as well I\'m not allowed to drive as I\'d PWN that lot of ya!'
                    ),
                'jk' => array (
                    'Very funny! I nearly wet myself! :-S',
                    'You reckon that\'s funny?',
                    'HA HA HA HA HA HA HA HA HA ... ha ha ... ha ... erm - I\'ll shut up now.',
                    ':-D'
                    ),
                'drive' => array (
                    'Can I drive please? Pretty please?'
                    ),
                'scouse,scows' => array (
                    'Lot\'s of people confuse Geordies and Scousers. Dunno why tho! :-S'
                    ),
                'locator,loc ' => array (
                    'The locator or .loc file allows players to download the gfx or music from the web instead of your computer, thereby decreasing the time it takes for your skin to show up or track music to be available.'
                    ),
                'hard,difficult' => array (
                    'You reckon $wthat\'s$z$fff hard? Wait till you see the next one!',
                    'Very!',
                    'Wimp!'
                    ),
                '/official' => array (
                    'Your account and ladder score, as per your request, have been deleted.'."\n".'(Press Alt+F4 to cancel)',
                    'NOOOOOOOB!'
                    ),
                'nooo' => array (
                    'Has No arrived?',
                    'Oh yesss!',
                    'Unlucky'
                    ),
                'yarr' => array (
                    'SOOPER SPEEEEEEEEEED!!'
                    ),
                'brb' => array (
                    'OK, hurry tho.',
                    'We know what your doing!',
                    'Aye right - the clock\'s ticking.',
                    'Giving up already?'
                    ),
                'afk' => array (
                    'Don\'t go! You\'ll lose your ladder points!',
                    'How can you be AFK when you just typed in AFK? :-S',
                    'If you\'re not back in 5 minutes I\'m booting your ass outta here!',
                    'Attention span of a frigging gnat!',
                    'Lets all hide when he comes back!',
                    'Is all this hot action getting ya steamed up? ;-)'
                    ),
                'bbl,gtg,g2g' => array (
                    'See ya next time.',
                    'Come back later if you want.',
                    'Something more interesting to do?',
                    'Cheers m8 for gracing us with your presence. ;-)',
                    ),
                'cya all,cya l8r,ttfn,bb,ciao,bye all,bye,cya,cyas,cyas all,cya later,cya later all,cyas later all,cya l8r all,cyas l8r all,cu m8,c u m8' => array (
                    'See ya next time.',
                    'Tara m8. Peace!',
                    'Ciao for now.',
                    'Cheers big ears!',
                    'Don\'t go! I\'ll miss ya - and I don\'t like missing when I throw darts.'
                    ),
                'gg all,gga' => array (
                    'More luck than skill I think.',
                    'Except for that git beeping all the time!',
                    'Next one should be good too.',
                    'How could it be good? I wasn\'t driving!',
                    'Splendiferous!'
                    ),
                'you ok bot,u ok bot,you ok bg,u ok bg,you ok geordie,u ok geordie' => array (
                    'As well as a big man like me can be.',
                    'Well, apart from having to admin a bunch of idiots, yes. ;-)',
                    'Wey aye man!',
                    'Fair to muddling.',
                    'Been better - been worse.'
                    ),
                'thx bot,thx bg,thx geordie' => array (
                    'At your service.',
                    'Anytime, my little skin covered friend.',
                    'NP, but im charging next time. :-)',
                    'You scratch my back - I\'ll scratch yours.',
                    'All part of the job pal.'
                    ),
                'crash,Crashed' => array (
                    'Cos you got no skill.',
                    'Reactions of an overweight limpet.',
                    'You do realise that there are corners and you have to go round them, don\'t ya?',
                    'Try turning your monitor on.',
                    'Typical!'
                    ),
                'hmm' => array (
                    'Wassamarra? You no likey this track or summick?',
                    'Try singing the song rather than humming, then we might know it!'
                    ),
                '/like,/hate' => array (
                    'Please use /++ and /-- to vote for/against a track.'
                    ),
                'jukebox' => array (
                    'To use $0a0JUKEBOX$fff first type $0ff/list$fff to get map i.d. number, then type $0ff/jukebox$fff and the  number of your map. eg.$0ff/jukebox 23$z'
                    ),
                'karma' => array (
                    'Typing $0ff/karma$fff allows you to see how good a track is. To give a karma point type $0ff/++$z or $0ff/--$z if you dislike it. 1 vote per person per track, you can change at any time.'
                    ),
                'rank' => array (
                    'Typing $0ff/rank$fff shows your position in relation to unique players that have visited this server. Depends on your highest placings in the maps on rotation.'
                    ),
                'help' => array (
                    'Type: '."\n".'$0a0/rank$fff (shows server rank and average track placing); $0a0/pb$fff (shows personal best on track)'."\n".'$0a0/recs$fff (shows top server records); $0a0/top10$fff (Shows top 10 server players)'."\n".'$0a0/list$fff (shows the map numbers); $0a0/jukebox ?$fff (Queue map up)'
                    ),
                'skins' => array (
                    'Please go to $0a0www.trackmania-carpark.com$fff to get your skins. Don\'t forget to download the locator file too, if it\'s available.'
                    ),
                'teams' => array (
                    'Type in /teamname YOURTEAM to assign to a team. Please note that YourTeam, yourteam and YOURTEAM are all different teams - the name is case-sensitive!'
                    ),
                'are you gay,ru gay,r u gay,are u gay,r you gay' => array (
                    'Do u want a beatin !!',
                    'That sort of question will get your face smashed in lad !!',
                    'No way man, ask your ma !',
                    'err, I think YOUR gay for even askin !',
                    'why? lookin for some action gayboy ??'
                    ),
                'ur gay,your gay,u r gay,you r gay,u are gay,you are gay,you gay,u gay' => array (
                    'Do u want a beatin !!',
                    'No way man, ask your ma !',
                    'err, I think YOUR gay for even sayin that ****!',
                    'You wish, gayboy !!',
                    'Shut it rent boy !!'
                    ),
      'piss,twat,cock,****,shoite,turd,bastard,prick,bugger' => array (
          '$f30Please do not use abusive language $z'.$author.'$z$f30. Consider yourself warned!'
                    ),               
                );

            $respond = false;

            foreach ( $bgarr as $k => $v ) {

                $karr = explode (',', $k);

                foreach ( $karr as $k2 ) {

                    if ( stristr ($message, $k2) ) {

                        $respond = true;

                        if ( is_array ($v) ) {
                            srand((double)microtime()*1000000);
                            $num = rand(0,sizeof($v)-1);
                            $msg = $v[$num];
                        } else {
                            $msg = $v;
                        }
                        break;
                    }

                }

                if ( $respond ) break;

            }

            if ( $respond ) {

                $msg = $botname.$msg;
                $aseco->addCall("ChatSendServerMessage", array($msg));

            }
        }

    }

}
?>


I can only see 2 mistakes but fixing them doesn't get rid of this message -
line 235 should be
Code:
'Yo '.$author.''

instead of
Code:
'Yo '.$author


and line 300 should be
Code:
'Cheers m8 for gracing us with your presence. ;-)'

instead of
Code:
'Cheers m8 for gracing us with your presence. ;-)',

_________________
My TMF Hub --- Server


Top
 Profile  
 
 Post subject: Re: Big Geordie
PostPosted: Sun Nov 14, 2010 6:00 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
Line 235 is OK as it is, but your edit doesn't hurt. :)

Line 300 - technically that comma is incorrect but it doesn't break the plugin. (That error also exists in my MKII version). :oops:

So I can only suggest a stop/restart of Xaseco, and check the logs for any startup error messages.

_________________
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 Previous  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 1 guest


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group