Skip to content
MSN Addons

reconnect on dc

A TG007 community discussion started by bobbbbt.

Discussion 14 posts
Page 1 of 1
Open
Topic #7058 · 14 published posts · 3,123 views

how can i make my script reconnect on dc ( internet dc or msn servers dc ),what i mean is when internet discconect and reconnect again the script auto connect and join the rooms that are on the auto join list and on msn servers dc the same.

 

thank you

*/
Made by TGK
\*
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 (!$gettok(%msn.gochans,1,32)) .timerrecon1 off 
else msn $gettok(%msn.gochans,1,32) 
} 
on me:*:JOIN:#: { 
if (%msn.rjwd == on) && (%msn.gochans) { 
   %msn.gochans = $remove(%msn.gochans,$right($chan,-2)) 
  if ($remove(%msn.gochans,$chr(32)) == $null) unset %msn.gochans 
  Â else msn $iif(G_* iswm $gettok(%msn.gochans,1,32),-c $gettok(%msn.gochans,1,32),$gettok(%msn.gochans,1,32)) 
} 
} 
on *:START: unset %msn.gochans 
on *:DISCONNECT: { 
if (%msn.rjwd == on) { 
   var %l = 1 
   while ($scon(%l)) { 
     scid $ifmatch 
    if ($scid($ifmatch).status == connected) { break | return } 
     else var %x = %x $right($chan(1),-2) 
     scid -r | inc %l 
   } 
%msn.gochans = %x | msn.arecon | .timerrecon1 20 10 msn.arecon 
} 
}

Thats for Vincula .. if thats not what you use, you can use that as a rough guide for the aliases you need, and some other things. Hope it helps. :)

thank you for the help.

it seems so complicated to edite and am not that good in scripting ,am using Ryln connection id ,i dont know if u can just make it work with id.

 

Wow, Id4 is really old, isnt it? I recommend DogCollar. Look in the Downloads section here under Official TGK releases. I believe it has that option.

This always works for me :pizza:

on *:DISCONNECT: {
  .timer.recon 1 4 recon
  .timer.rejoin 1 10 rejoin
}
alias recon { msn.relookcon } 
alias rejoin { $msn.recent(1,2) }

Jaimes_Pet, he's using ID4, not Vincula. Those aliases wont work unless he inputs them manually from Vincula.

i think X-FUSION is the only one that can write me the one that works with id :P

 

Thanks

Just take this code and edit it.

 

 

 

on *:DISCONNECT: {
  .timer.recon 1 4 recon
  .timer.rejoin 1 10 rejoin
}
alias recon { msn } 
alias rejoin { %lastroom }

 

 

 

Now set in variables %lastroom and it should work.

 

 

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

thanks Molson for ur help , i think it will work but i does it join all the rooms that was in before the dc?

ID4 is really old right? I garuntee it outperforms DC hands down. :pizza:

Probably not, only rejoin the variable you set.I dont know about that Travis, it may be fast and all but I did see someone using DC and someone using ID4 and ID4 ended up flooding out and DC went on for another 20 mins kicking until the person stop flooding.

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

thanks travis , but ur post didnt help me!

:pizza: ID4 huh i tried using it one time I didnt like it tho there are some who do like it , it was too difficult for me to use<wo0t>

ID4 ,,VERY OLD