User Control Panel
Advertisements

HELP US, HELP YOU!

MSNP11

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
X-Worm
Newbie
Newbie


Joined: 12 May 2005
Posts: 36

Reputation: 35.7Reputation: 35.7Reputation: 35.7Reputation: 35.7

PostPosted: Sat Jan 05, 2008 3:37 pm    Post subject: MSNP11 Reply with quote

I used to have a msn.pm with working PSM and CE's but I seem to have lost it (downloaded it from here once when the links weren't dead).

I believe it was called "MSNP11+PSM", anyone still has it?

Help appreciated
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 126
Location: Liverpool(home) or Derby(uni), UK
Reputation: 58
votes: 3

PostPosted: Sat Jan 05, 2008 4:58 pm    Post subject: Reply with quote

Just had a quick google and cant find it. Botworld doesnt have it, I tried their andromeda template but it looks like its using their own module. The P11 MSN.pm had quite a few issues anyway so it might be best to just alter the existing one yourself. Its not that difficult, just use the protocol wiki. Not a lot has changed other than AuthPP3 but inky made a module for that, its literally 1 call to it and youre auth'ed. http://msnpiki.msnfanatic.com/index.php

My old bot is stored on a memory card somewhere but unfortunately I dont have a card reader that can get the data back off. My old server had one built in but that died on christmas eve Sad. I may still have the P11+PSM stuff on there, so once I find a way to retrieve it, i'll post it up here.
Back to top
X-Worm
Newbie
Newbie


Joined: 12 May 2005
Posts: 36

Reputation: 35.7Reputation: 35.7Reputation: 35.7Reputation: 35.7

PostPosted: Wed Jan 09, 2008 7:13 pm    Post subject: Reply with quote

I used to have the 2.0.84 version with the PSM part copied from MSNP11, which worked just fine, now I have tried doing the same by taking bits from the 2.1.2 version (AuthPP3 included).

It connects without any errors (apart from empty event received from server) though it disconnects me whenever I try to change the PSM.

I believe I can't use the 2.1.2 as Crypt::SSLeay won't install on this computer (64-bit, Vista)

Any suggestions/solutions?

Yes, I suck at this.
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 126
Location: Liverpool(home) or Derby(uni), UK
Reputation: 58
votes: 3

PostPosted: Thu Jan 10, 2008 1:17 pm    Post subject: Reply with quote

If you cant install crypt::ssleay then none of the modules will work for you as far as I know. I had trouble installing it using perl 5.10, but no trouble using 5.6, have you tried this? Im also using vista, albeit 32-bit.
Back to top
X-Worm
Newbie
Newbie


Joined: 12 May 2005
Posts: 36

Reputation: 35.7Reputation: 35.7Reputation: 35.7Reputation: 35.7

PostPosted: Sun Jan 13, 2008 3:29 pm    Post subject: Reply with quote

Not yet, I'll try it later on today.
Back to top
X-Worm
Newbie
Newbie


Joined: 12 May 2005
Posts: 36

Reputation: 35.7Reputation: 35.7Reputation: 35.7Reputation: 35.7

PostPosted: Sun Apr 13, 2008 4:39 pm    Post subject: Reply with quote

Got it working now by reverting back to Perl 5.8 with Vista 32-bit, still I can't get the blasted PSM to work (you'd think I would get better at this).

My command
Code:

my $psm = $1;
if ($psm) {
   $msn->setPSM("$1","",0,"","");
   &send($self,"[$bot_name] PSM updated", $username);
} else {
   &send($self,"[$bot_name] You must specify a PSM message to set.", $username);   
}


The PSM part inside msn.pm
Code:

=item
setPSM

set the PSM Message.

=cut

sub setPSM
{
my $self = shift;

return $self->{Notification}->setPSM( @_ );
}



Now, using the code below in notification.pm
Code:

sub setPSM
{
   my $self = shift;
   my $psm = shift;

   my $data = '<Data><PSM>'.$psm.'</PSM><CurrentMedia></CurrentMedia></Data>';
   $self->sendraw("UUX",  length($data)."\r\n" . $data);# if ($MSNPROTO eq 'MSNP11');
}

... simply disconnects the bot.

Using this code (happens to be yours),
Code:

#Teario- set the psm data (MANY thanks to matt007 for showing me how)
sub setPSM
{
my $handle = shift;
my $self = shift;
my $psm = shift;

my $data = '<Data><PSM>'.$psm.'</PSM><CurrentMedia></CurrentMedia></Data>';
$self->sendraw("UUX", length($data)."\r\n" . $data);# if ($MSNPROTO eq 'MSNP11');
}


... I get the following error message
Quote:


Can't locate object method "sendraw" via package "message" (perhaps you forgot to load "eh"?) at Lib/MSN/Notification.pm line 239.


where "message" is whatever you try to set as PSM.

Any help would be greatly appreciated.
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 126
Location: Liverpool(home) or Derby(uni), UK
Reputation: 58
votes: 3

PostPosted: Mon Apr 14, 2008 12:39 am    Post subject: Reply with quote

Looks like its shifting in the wrong order. Im pretty sure $self is always going to be the first shift, so try doing it in this order:
Code:
my $self = shift;
my $psm = shift;
my $handle = shift;


Ive got working PSM code which i'll post up for you when I get a chance, probably tomorrow some time.
Back to top
X-Worm
Newbie
Newbie


Joined: 12 May 2005
Posts: 36

Reputation: 35.7Reputation: 35.7Reputation: 35.7Reputation: 35.7

PostPosted: Sun Apr 20, 2008 5:24 pm    Post subject: Reply with quote

That did not do the trick.

Happen to have that piece of code laying around on a silver plate somewhere? Wink

Cheers
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 126
Location: Liverpool(home) or Derby(uni), UK
Reputation: 58
votes: 3

PostPosted: Tue Apr 22, 2008 12:21 pm    Post subject: Reply with quote

Hi, yeah I think so. Sorry I never got round to giving it to you, ive been mega busy the last few weeks. I'll do it when I get home later, I even wrote it on my hand so I remember Razz
Back to top
Teario
Member
Member


Joined: 25 Jun 2004
Posts: 126
Location: Liverpool(home) or Derby(uni), UK
Reputation: 58
votes: 3

PostPosted: Wed Apr 23, 2008 1:27 am    Post subject: Reply with quote

Ok I had a look, i have a few different modules and I dont know which one will work, so I put them all in an archive for you. Since we cant upload to bot depot any more, I put on my own server: http://teaserver.no-ip.org/teario/libs.rar
Back to top
X-Worm
Newbie
Newbie


Joined: 12 May 2005
Posts: 36

Reputation: 35.7Reputation: 35.7Reputation: 35.7Reputation: 35.7

PostPosted: Wed Apr 23, 2008 5:56 am    Post subject: Reply with quote

Works perfect,

Thanks! Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group