Madalin wrote:You can use this script for PING http://tclhelp.net/unb/130
You dont need to reinvent the wheel
thanks Madalin, but this IRCD are bit different, there is no ctcr, the IRCD commands are bit different. To get a ping, the reply was not /ping $nick but /raw p $nick
The /raw command in mIRC is merely used to send a string directly to the server without parsing; in eggdrops you use the puthelp, putserv, or putquick commands. So in your case, that part of the code would be something like this
You would still have to parse the response from the irc server, which is done using a binding. Exactly how to do this depends on what kind of message/command your irc server uses to send the response. If it is a server-notice, you're pretty much stuck with the RAW binding, which can be somewhat dangerous if you don't know what you are doing...
nml375 wrote:The /raw command in mIRC is merely used to send a string directly to the server without parsing; in eggdrops you use the puthelp, putserv, or putquick commands. So in your case, that part of the code would be something like this
You would still have to parse the response from the irc server, which is done using a binding. Exactly how to do this depends on what kind of message/command your irc server uses to send the response. If it is a server-notice, you're pretty much stuck with the RAW binding, which can be somewhat dangerous if you don't know what you are doing...
how to get var from puthelp "P $nick" ?
set result "puthelp "P $nick""
regxp ... $result
then I got the 2ms ?
You need to catch the RAW response if you want that result. In mIRC do /debug @test then do that /raw p gembels and copy/paste what you see in the @test window.
Once the game is over, the king and the pawn go back in the same box.
caesar wrote:You need to catch the RAW response if you want that result. In mIRC do /debug @test then do that /raw p gembels and copy/paste what you see in the @test window.