Skip to content
MSN Addons

On script disconnect reconnect again

A TG007 community discussion started by bonTy.

Discussion 11 posts
Page 1 of 1
Open
Topic #6885 · 11 published posts · 3,227 views

Hey guys,

 

I am looking for a nice code which makes my script able to reconnect again on disconnect weither disconnect by ISP or by others

I am using Vincula Neo (v4.9) and I am using TGK, vinupdater..

I join groups and paid msn with 2 passports 1 for groups and 1 for paid chat, so I want to reconnect all moslty I am in 5 groups and 3 msn paid chat

I tried TGK, Auto Rejoiner didn't work I dunno why so if anyone could help please

Thanks in Advance!!

 

Switch your connection to Dogcollar. :P

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

lol funny. I did make an vincula auto rejoiner ages ago, i think under the request of molson :P

 

;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: 
;  - 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 
} 
alias csall { 
 var %t = 1 , %channel = $false | while (%t <= 2) { 
   var %l = 1 | while ($scon(%l)) { 
     scid $ifmatch 
     if ($status != disconnected) { %channel = $true | inc %l } 
     elseif ($status == disconnected) && ((%l > 1) || ((%t > 1) && (%channel == $true))) window -c "Status Window" 
     else inc %l 
     scid -r 
   } 
   inc %t 
 } 
} 
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 
 } 
 else csall 
} 
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 
 } 
}

lol funny. I did make an vincula auto rejoiner ages ago, i think under the request of molson :P

 

;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: 
;  - 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 
} 
alias csall { 
 var %t = 1 , %channel = $false | while (%t <= 2) { 
   var %l = 1 | while ($scon(%l)) { 
     scid $ifmatch 
     if ($status != disconnected) { %channel = $true | inc %l } 
     elseif ($status == disconnected) && ((%l > 1) || ((%t > 1) && (%channel == $true))) window -c "Status Window" 
     else inc %l 
     scid -r 
   } 
   inc %t 
 } 
} 
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 
 } 
 else csall 
} 
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 
 } 
}

 

Hey David,

I've tried this code b4 I post the code and tried it again now

and its not working with me I've no idea why

I joined 1 room, and then I wrote /disconnect and I've waited long till the script reconnect again but it never happends

I joined 2 roomz did the same and it never happend to join

I think that'll only work when you automatically moof yoursel .. not when you type /disconnect ...

Or type whatever the alias is to reconnect .. thats why its called rejoin on reconnect

Edited Jun 21, 2006 7:19 PM by X-Fusion

Well

I m in roomz now and the code is on so I'll just leave it like that till a disconnect happends to me

and see wat will happend..I'll keep you guys updated as soon as I get dc:P

Thanks all

TGK .. i've tried your code just now but it didn't reconnect me to server, hence it wasn't able to join

 

===

( 12:16a ) • Socket close error in msn.server.99: [10054] Connection reset by peer

( 12:16a ) * Disconnected

==

 

i'm not sure why :(

 

====update=====

 

Ok, i flooded my self out using a differet script to flood me out, but i noticed that it just told me a socket read was lost, but it never showed "Disconnected" and the nicks remained in room"

 

---

 

( 12:21a ) • Socket read error in msn.server.573: [10053] Software caused connection abort

 

----

 

how can i get it to disconnect properly when i flood out ?

Ignorance Is Bliss

hmm, wonder how molson got this working before...?

 

Quick Fix: Used DC :P

Slow Fix: Give me some time, when i have it, i'll test out the code (don't hold your breath though).

Works with Vincula 4.9 EZR 4.8, Vincula 4.9r,havent tested it with others but works here.:P

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

Hitman is 28BFF4BBF69C2CCE@GateKeeperPassport * Vincula Neo (4.9 EZR 4.1)

 

that's probably the case then :P...

Ignorance Is Bliss

Gets out trout

Slaps The Gate Keeper for recommending DogCollar to someone who probably already has it [The Gate Keeper has been slapped (1) time]