Results 1 to 15 of 29
Thread: nice IDLE kick script...
Hybrid View
-
23-01-2005, 12:30 #1
nice IDLE kick script...
okay, i have code an IDLE kick script in Perl.
I need beta tester .
please try only with SA Staus.
code:
#!\C:\Perl\bin\perl.exe
#
#
use IO::Socket;
print "KICK_ALL_IDLERS_Script Version 1 by xT\n\n";
{
print "Your Server IP+TCPport(defaultport=51234) : ";
chomp ($ip = <STDIN>) ;
exit if $ip eq "q" ;
}
my $sock = IO::Socket::INET->new(qq($ip));
{
print "Your Server Port : ";
chomp ($in = <STDIN>) ;
exit if $in eq "q" ;
}
{
print "Your Login Account name : ";
chomp ($in = <STDIN>) ;
exit if $in eq "q" ;
}
{
print "Your Login Account Password : ";
chomp ($on = <STDIN>) ;
exit if $on eq "q" ;
}
{
print "please,choice your idle time : ";
chomp ($time = <STDIN>) ;
exit if $time eq "q" ;
}
{
print $sock qq(sel 8767\n);
print $sock qq(slogin $in $on\n);
print $sock qq(ki $time 1 does not idle please\n);
print $sock qq(ki $time 2 does not idle please\n);
print $sock qq(ki $time 3 does not idle please\n);
print $sock qq(ki $time 4 does not idle please\n);
print $sock qq(ki $time 5 does not idle please\n);
print $sock qq(ki $time 6 does not idle please\n);
print $sock qq(ki $time 7 does not idle please\n);
print $sock qq(ki $time 8 does not idle please\n);
}
{
print "\nWe did Ok , all idlers with $time minutes was kicked.....\n";
print "\n\nWhen you will Public messgae with idlers-kick,\nThen you musst press a arbitrary gropes\n";
print "When you doesnt will this you musst press q and enter\n";
}
chomp ($name = <STDIN>) ;
{
print $sock qq(msg @ OK , all Idlers with $time min idle time ,was kicked from Server\n);
print ".........\n";
chomp ($name = <STDIN>) ;
}
-
23-01-2005, 15:22 #2
Hello
I have write an Correction from ur Code ...
And i think you must use "use strict" and "use warnings" or "use diagnostics"
You have allways write "{" and "}" but why ?
Here is the Untested Correction of your code
mfgCode:#!/usr/bin/perl #======================== ##### Modules and Define Var.. #======================== use strict; use warnings; use IO::Socket; my $ip; my $answer; my $answer_connect; my $check; my $SERVER_IP; my $SERVER_PORT; my $LOGIN_NAME; my $LOGIN_PASS; my $IDLE_TIME; my $time; my $name; print "="x20;print "\n"; print "TeamSpeak KickIdler Script\n"; print "="x20;print "\n"; print "Your Server IP+TCPport(defaultport=51234) :"; chomp ($SERVER_IP = <STDIN>) ; #======================== ##### Verbindungs aufbau ... #======================== my $sock = IO::Socket::INET->new(qq($SERVER_IP))or do { print "ERROR : Cannot connect to ".$ip."\n"; print "ERROR : Terminating Process ...\n"; sleep 1; exit 0; }; my $bool = recv($sock,$answer_connect,1000,0); #======================== ##### Eingaben ..... #======================== print "Your Server Port :"; chomp ($SERVER_PORT = <STDIN>) ; print "Your Login Account name :"; chomp ($LOGIN_NAME = <STDIN>) ; print "Your Login Account Password :"; chomp ($LOGIN_PASS = <STDIN>) ; print "Please,choice your idle time :"; chomp ($IDLE_TIME = <STDIN>) ; if ($IDLE_TIME < "10") { print "ERROR : Idle Timme must moore then 10min\n"; sleep 2; exit 0; } #======================== ##### Connection und Login ... #======================== print "="x20;print "\n"; print "Connect = OK\n" if ($answer_connect eq "[TS]\r\n"); print $sock "sel ".$SERVER_PORT."\n"; $bool = recv($sock,$answer,1000,0); print "Select = OK\n" if ($answer eq "OK\r\n"); print $sock "slogin ".$LOGIN_NAME." ".$LOGIN_PASS."\n"; $bool = recv($sock,$answer,1000,0); print "Login = OK\n" if ($answer eq "OK\r\n"); print "="x20;print "\n"; #======================== #### Kick idler ... #======================== print "="x20;print "\n"; # Flags my $flags = (1+2+4+8); print $sock "ki ".$IDLE_TIME." ".$flags." Dont idle !\n"; my $bool = recv($sock,$answer,1000,0); print $answer; print "="x20;print "\n"; print "We did Ok , all idlers with ".$IDLE_TIME." minutes was kicked.....\n"; print "If u wish to send a Public message choice yes else any key to not\n"; #======================== #### Server Message ... #======================== chomp ($check = <STDIN>) ; if ($check eq "yes") { print $sock "msg @ OK , We think all idlers with ".$IDLE_TIME."min Kicked\n"; my $bool = recv($sock,$answer,1000,0); print "Message was Send to Server" if ($answer eq "OK\r\n"); print "\n\nPress Any Key ...\n"; } #======================== #### End of Script and Logout #======================== <STDIN>; print $sock "quit\n"; print "GooD ByE ..."; sleep 1;
RealTTX
PS:Sorry 4 my Bad English
=====
Ich habe noch was geändert mir ist aufgefallen das die Flags, bei dir xT 1-8 einfach .. dabei sind es einfach 4 Flags die man beliebig zusammen zählen kann ... 1 2 4 8 ....
Habe es ungetestet geändert ....
=====Last edited by Real-TTX; 24-01-2005 at 19:05.
-
23-01-2005, 15:45 #3
-= TeamSpeak Addict =-
- Join Date
- Apr 2004
- Location
- Germany
- Posts
- 492
unglaublich du veröffentlichst ja zum teil deine scripte real
-
23-01-2005, 15:52 #4
Naja was heist zum teil

Ist ja ein ganzer ... es ist nicht meiner habe da nur eine kleinigkeit geändert
bei mir wäre das ganz anders nicht einfach mit dem befehl "ki"
..
mfg
Real-TTX
-
23-01-2005, 15:58 #5
-= TeamSpeak Addict =-
- Join Date
- Apr 2004
- Location
- Germany
- Posts
- 492
ok dann betone ich damit auf "alte" scripte.
der code ganz oben sieht ja geklaut aus.
-
23-01-2005, 16:06 #6
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2003
- Location
- Germany
- Posts
- 4,140
Warum? Was veranlaßt dich zu dieser Annahme?der code ganz oben sieht ja geklaut aus.
-
23-01-2005, 23:54 #7
Wie Bitte.....
Originally Posted by Rooty
Wie kannst du dir so eine Anschuldigung gegen mich erlauben ?
Meinst du ich Verstehe kein Deutsch ?
Hast du irgentwelche brauchbaren Beweise das das Script geklaut ist ?
Wenn Ja Poste sie bitte in das offizielle Forum !
mfg xT
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Idle Kick Linux Script
By schroedi in forum [TeamSpeak 2] Server SupportReplies: 20Last Post: 20-05-2005, 22:26 -
Idle Player kick
By Broder in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 17-12-2004, 16:23 -
The first Kick Idler Script where you can use with SA
By Real-TTX in forum [TeamSpeak 2] Addons & ScriptsReplies: 5Last Post: 12-06-2004, 03:06 -
Idle Kick
By ShadowWalkerDtD in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 11-03-2004, 05:05



Reply With Quote