Skip to content
MSN Addons

Sockbot using m_sMSNChat.dll

A TG007 community discussion started by Twister.

Discussion 11 posts
Page 1 of 1
Open
Topic #7055 · 11 published posts · 2,796 views

its not joining... it says the the socket is active in socklist but it doesnt join and plus it dont say anything i the echo... it just say sock.%#!!test.a 207.68.167.157:6667 tcp active (on: 192.168.2.3 1215)

alias sw return sockwrite -n
alias sock {
  sockopen $+(sock.,#) 207.68.167.157 6667
}
on *:sockopen:sock.*:$sw $sockname $+(NICK %bot_nick,$lf,$dll(m_sMSNChat.dll,passport_init,0))
on *:sockread:sock.*:{
  var %c | sockread %c | tokenize 32 %c
  echo @bot $sockname $+ : %c
  if ($1 $3 = AUTH S) {
    if ($4 != :OK) $sw $sockname $+($dll(m_sMSNChat.dll,second,0),$dll(m_sMSNChat.dll,encode,$4),$lf,$1-3 :,$+(000000,$base($len(%bot_ticket),10,16),%bot_ticket,000000,$base($len(%bot_profile),10,16),%bot_profile),$lf,PROP $ SUBSCRIBERINFO :,%bot_subinfo,$lf,USER * "*" "127.0.0.1" : $+ $tag $lf join $sock($sockname).mark) | halt )
    hadd -m bot ial $4
    return
  }
  if ($1 = ping) $sw $sockname PONG $2
}

 

 

And this is sid's tutorial that i followed....

;;;; example passport connection using m_sMSNChat.dll
;;;; must have %ticket, %profile and %subinfo set
;;;; sid

alias passport {
  sockopen $+(sMSNChat_passport.,$rnd) 207.68.167.157 6667
}

on *:sockopen:sMSNChat_passport.*:{
  if (!$sockerr) {
    sockwrite -n $sockname NICK mr_beefy

   ; we send the initializing passport gkssp

    sockwrite -n $sockname $dll(m_sMSNChat.dll,passport_init,0)
  }
}

on *:sockread:sMSNChat_passport.*:{
  var %r
  sockread %r
  tokenize 32 %r
  echo -s $sockname : %r
  if ($1 == AUTH) {
    if ($2 == GateKeeperPassport) {
     ; here we encode the auth string sent to us as $4 and send it back
     ; no guest gate is required so we do not need to send the encoded gate string

      sockwrite -n $sockname $dll(m_sMSNChat.dll,second,0) $+ $dll(m_sMSNChat.dll,encode,$4)

     ; here we send the ticket and profile in the appropriate hex (or as game likes to call it: hex.decimal - clown) form to auth our passport

      sockwrite -n $sockname AUTH 1 S $base($len(%ticket),10,16,8) $+ %ticket $+ $base($len(%profile),10,16,8) $+ %profile

     ; here we send the SUBINFO to allow us to subscribe

      if (%subinfo) sockwrite -n $sockname PROP $ SUBSCRIBERINFO %subinfo

     ; here we send USER to allow us to connect successfully

      sockwrite -n $sockname USER 0 0 0 :mr_beefy

     ; below here add joining code

     ; sockwrite -n $sockname JOIN $(%,0) $+ #Programmers iwishthiswastehkey
    }
  }
}

Do you have %bot_ticket, and %bot_profile set?

of course it said that when the tutorial started and it was a fresh update...

Edited Jul 21, 2006 3:24 AM by Twister

*off topic

 

heh your sig border such an old effect :P

Hey Digital can you make me a cool sig for me plz?

yea off topic... but i still need help please...

Iam not sure wether the auth string is correct or not just check it :) .Sids auth is good but i would say Use exonytes ocxless auth its really good and simple. .

Edited Jul 21, 2006 5:03 PM by Cryton

 

 

There is nothing so absurd but some philosopher has said it

i dont know how to use that correctly either... someone told me the dll makes it a little faster so thats what i was trying...

Its not like making faster it just authenticates with minimal resource.Automatically it will authenticate a bit faster than fully resource connection i.e using Msn Chat ocx ,other wise i would say both are same :) .Whenever we use ocxless dll or ocxless codes we should always set the strings correctly .Otherwise it may not connect or it may show some weird issues .

 

 

There is nothing so absurd but some philosopher has said it

so what do u think i should do... or do u see anything wrong with the code?

I may prescribe you to use exo's auth string but i cant say sids auth string is wrong, but they way you pass the code to your connection it may be a bit wrong :) .

 

 

There is nothing so absurd but some philosopher has said it