I want code who join auto msnchatrooms when i was dc.
A TG007 community discussion started by Luky¬.
I want code who join auto msnchatrooms when i was dc.
;Auto rejoin when disconnected - Vincula
;What makes this different to all other auto rejoin when disconnected?
;Answer: this rejoins all the rooms that you've been disconnected from.
;
;Pros:
; - It gets back into all the rooms you've been disconnected from.
;Cons:
; - Leaves twice as many status windows open [when you d/c, it doesn't replace status windows]
; - May not rejoin the first room you joined [glitches in the variable]
;
;Created by The Gate Keeper for Vincula Purposes Only
;Modifications are allowed to suite your needs and your connections
;Please leave credit somewhere though :D
;
;Note: This requires you to be disconnected from all chatrooms
;before it kicks in and starts rejoining again.
menu * {
-
Rejoin when Disconnect
.$iif(%msn.rjwd == on,$style(2)) Turn On : %msn.rjwd = on
.$iif(%msn.rjwd != on,$style(2)) Turn Off : unset %msn.rjwd
}
alias msn.arecon {
if (!$sock(msn.look.main)) || (!$sock(msn.look.comm)) msn.lookcon
elseif ($hget(hold.room,0).item == 0) .timerrecon1 off
else msn $chr(37) $+ $hget(hold.room,1).item
}
on *:START: hmake hold.room 1
on me:*:JOIN:#: {
if (%msn.rjwd == on) && ($hget(hold.room,0).item > 0) {
var %r = $hget(hold.room,1).item
msn $iif(#G_* iswm %r,-c) $chr(37) $+ %r
hdel hold.room %r
}
}
on *:DISCONNECT: {
if (%msn.rjwd == on) {
var %l = 1
while ($scon(%l)) {
scid $ifmatch
if ($scid($ifmatch).status != disconnected) { break | return }
elseif ($hget(msn. $+ $cid)) hadd -m hold.room $right($hget(msn. $+ $cid,fullroom),-1) $right($hget(msn. $+ $cid,shortroom),-1)
scid -r | inc %l
}
msn.arecon | .timerrecon1 20 10 msn.arecon
}
}
;Auto rejoin when disconnected - Vincula ;What makes this different to all other auto rejoin when disconnected? ;Answer: this rejoins all the rooms that you've been disconnected from. ; ;Pros: ; - It gets back into all the rooms you've been disconnected from. ;Cons: ; - Leaves twice as many status windows open [when you d/c, it doesn't replace status windows] ; - May not rejoin the first room you joined [glitches in the variable] ; ;Created by The Gate Keeper for Vincula Purposes Only ;Modifications are allowed to suite your needs and your connections ;Please leave credit somewhere though :D ; ;Note: This requires you to be disconnected from all chatrooms ;before it kicks in and starts rejoining again. menu * { - Rejoin when Disconnect .$iif(%msn.rjwd == on,$style(2)) Turn On : %msn.rjwd = on .$iif(%msn.rjwd != on,$style(2)) Turn Off : unset %msn.rjwd } alias msn.arecon { if (!$sock(msn.look.main)) || (!$sock(msn.look.comm)) msn.lookcon elseif ($hget(hold.room,0).item == 0) .timerrecon1 off else msn $chr(37) $+ $hget(hold.room,1).item } on *:START: hmake hold.room 1 on me:*:JOIN:#: { if (%msn.rjwd == on) && ($hget(hold.room,0).item > 0) { var %r = $hget(hold.room,1).item msn $iif(#G_* iswm %r,-c) $chr(37) $+ %r hdel hold.room %r } } on *:DISCONNECT: { if (%msn.rjwd == on) { var %l = 1 while ($scon(%l)) { scid $ifmatch if ($scid($ifmatch).status != disconnected) { break | return } elseif ($hget(msn. $+ $cid)) hadd -m hold.room $right($hget(msn. $+ $cid,fullroom),-1) $right($hget(msn. $+ $cid,shortroom),-1) scid -r | inc %l } msn.arecon | .timerrecon1 20 10 msn.arecon } }
This code is not working for groups in vincula.. When i was dc in my group like iam using dialup and my internet dc (disconnect ) its again join but gives me error like this group is not created blah blah... i guess its do /msn G_group name but if we join group the command is like /joins -c G_group name could you fix it for group please ? Iam really thankfull to you and hole tg007 team Thanks in advance
use a $readini or read file...
a simple basic auto join...
alias autoJoin {
var %a, %b
%a = 1
%b = $lines(rooms.txt)
while ( %a <= %b ) {
; here a joiner
; test it
; timer 1 1 /join $read(rooms.txt,%a)
; but test the read, if not work...
; test removing the %# and put a chr's on the timer's...
inc %a
}
}
Try make the ur's
if u have a Dc
ON 1:SOCKCLOSE:room.*: {
if ( !%reJoined ) {
if ( $getRoom( $sockname ) ) {
if ( $groupRoom( $getRoom( $sockname ) ) ) { sockwrite -n server.groups FINDS $getRoom( $sockname ) }
else { sockwrite -n server.main FINDS $getRoom( $sockname ) }
}
}
echo -at Room Disconnected, Recon $getRoom( $sockname )
}
; the [ sockwrite -n server.main FINDS $getRoom( $sockname ) ]
; is 4 Reconect the clean server..
; but if u want tri, /JOIN
dasfsdg
Sign in to reply or start a new topic where your account has permission.