egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

script problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Sep 09, 2008 5:38 pm    Post subject: script problem Reply with quote

Code:
#### RCON KIT ####

proc myrcon {hand idx args} {
global q_chan q_pubannounce
set comnd "say launched at #channel irc channel - go subscribe!"

dorcon 192.168.1.2 27015 myrcon $comnd
putlog "announce to servers completed"
putserv "NOTICE $q_chan :[q_txt pubannounce]"
}

proc dorcon {rip rport pswd comnd} {
set challenge [challengercon $rip $rport]
set response [rcon $rip $rport $challenge "$pswd" $comnd]
if { $response == -1 } { set response "$rip has trouble" }
putlog "$response"
}

### /RCON KIT ###



server ip : 192.168.1.2
rcon : myrcon
But all the time on dcc chat when i run the proc


[00:06:15] <GC-Bot> [00:06] 192.168.1.2 has trouble
[00:06:24] <GC-Bot> [00:06] rconerror: Server not responding (timeout) 0
[00:06:30] <GC-Bot> [00:06] rconerror: Server not responding
[00:06:31] <GC-Bot> [00:06] 192.168.1.2 has trouble
[00:06:31] <GC-Bot> [00:06] announce to servers completed

saids aftes fails that announce goes to server but nothing.. also module rcon is added.. can someone help me to fix that?
Why server not responsing and server is ok ?
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sat Sep 13, 2008 4:37 pm    Post subject: Reply with quote

anyone? :/
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Sun Sep 14, 2008 6:06 am    Post subject: Reply with quote

if this ip can see ftom other networks. Looks like default windows ip xD
Code:
C:\Documents and Settings\gameover>telnet 192.168.1.2 27015
Connecting To 192.168.1.2...Could not open connection to the host, on port 27015
: Connect failed
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Sep 15, 2008 7:00 am    Post subject: Reply with quote

yes is local ip :p

anyway look on this ip.. and it if works will be fine..

87.243.64.70 27015
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Wed Sep 17, 2008 5:06 pm    Post subject: Reply with quote

my code i ask someone who run that code before and he said is correct..

i must make any change on rconmod? port or something?
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sat Sep 20, 2008 11:59 am    Post subject: Reply with quote

anyone knows what changes i must do to rcon module?
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sat Sep 20, 2008 12:31 pm    Post subject: Reply with quote

maybe i need that?

tcludp-1.0.8
http://sourceforge.net/projects/tcludp
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber