| Blockland Forums > Modification Help |
| Block a bot |
| << < (2/3) > >> |
| YourBuddyBill:
--- Quote from: Blocki on March 26, 2012, 06:02:53 PM ---To go around that script, simple make the bot say Blahbot says blah or something --- End quote --- There's a truckload of ways around it. :/ |
| pecon98:
--- Quote from: YourBuddyBill on March 26, 2012, 07:01:00 PM ---There's a truckload of ways around it. :/ --- End quote --- It just blocks against the way the majority of them are made. |
| Chrono:
Don't forget this little part! --- Code: ---package BlockWelcomeBot { function serverCmdMessageSent(%c,%m) { %tempmsg = getSubStr(%m,0,strLen(%m)-1); %tempmsg = getWord(%m,1); for(%x=0;%x<ClientGroup.getCount();%x++) if(%tempmsg $= ClientGroup.getObject(%x).getPlayername() && ClientGroup.getObject(%x).joinTime+0.3 > getSimTime()/1000) { commandToClient(%client, 'messageBoxOK', "No Bots!", "You are not allowed to use irritating chatbots on this server"); return; } return parent::serverCmdMessageSent(%c,%m); } function GameConnection::autoAdminCheck(%c) { %c.jointime = getSimTime()/1000; return Parent::autoAdminCheck(%c); } }; activatePackage(BlockWelcomeBot); --- End code --- Stops people from saying "____ <name>" when <name> has just joined the server. Effectively blocking greeting bots. |
| YourBuddyBill:
--- Quote from: Chrono on March 27, 2012, 07:37:56 AM ---Don't forget this little part! --- Code: ---package BlockWelcomeBot { function serverCmdMessageSent(%c,%m) { %tempmsg = getSubStr(%m,0,strLen(%m)-1); %tempmsg = getWord(%m,1); for(%x=0;%x<ClientGroup.getCount();%x++) if(%tempmsg $= ClientGroup.getObject(%x).getPlayername() && ClientGroup.getObject(%x).joinTime+0.3 > getSimTime()/1000) { commandToClient(%client, 'messageBoxOK', "No Bots!", "You are not allowed to use irritating chatbots on this server"); return; } return parent::serverCmdMessageSent(%c,%m); } function GameConnection::autoAdminCheck(%c) { %c.jointime = getSimTime()/1000; return Parent::autoAdminCheck(%c); } }; activatePackage(BlockWelcomeBot); --- End code --- Stops people from saying "____ <name>" when <name> has just joined the server. Effectively blocking greeting bots. --- End quote --- What about those of us who greet people we know like that? |
| Wordy:
fun fact for the people with bots like me: turn them into a GUI interface, it seems more effective AND doesn't spam the whole server while you're using it. Also this gives you bot lovers a target to make your first GUI. RESULT. |
| Navigation |
| Message Index |
| Next page |
| Previous page |