User Control Panel
Advertisements

HELP US, HELP YOU!

Set Bot Location in PSM

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Teario
Member
Member


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

PostPosted: Mon Sep 11, 2006 5:05 pm    Post subject: Set Bot Location in PSM Reply with quote

In the new WLM 8.1 beta, you can set your location. I have only been playing around with this for about 5 minutes but it works a bit like this:

Previously you could send something like:
Quote:
<Data><PSM>(some psm)</PSM><CurrentMedia></CurrentMedia></Data>


but for the location you send this:
Quote:
<Data><PSM></PSM><CurrentMedia></CurrentMedia><LOC>\0Location\01\0(location)\0(location)\0\01\0</LOC></Data>


I dont know why it sends the same location twice, it just does.
On the official client you get the option of adding in details about your address. If you do this then an object is sent along as one of the parameters and then if a user clicks the location in your name, they will be taken to msn maps at that location. Im not very good with the msn objects, but you can set an unclickable location by doing something like this:
(this is made for my own bot but should be pretty easy to modify)

Code:
sub
{
   my $loc = shift;

   my $data = '<Data><PSM></PSM><CurrentMedia></CurrentMedia><LOC>\0Location\01\0'.$loc.'\0'.$loc.'\0\01\0</LOC></Data>';
   $bot->{msn}->sendraw("UUX",  length($data)."\r\n" . $data);
}


Your bot will show the location as its PSM, with a new icon next to it, just like the music, game and office icons.



I have only tested this with MSNP12. It is new in WLM8.1b so I assume it works for MSNP15 as well.

Edit Im not positive but you may need to have WLM8.1b in order to see the location PSM
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Wed Sep 13, 2006 7:07 pm    Post subject: Reply with quote

I've not seen those locations icons before, probably limited to 8.1
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands 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