I am making a script... - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: I am making a script... (/showthread.php?tid=64988)
I am making a script... by augrunt on 08-16-2006 at 04:16 AM
I am making a script atm... and I want it to do Two particular functions...
I am making a Combat script... For two friends who are fighting for something...
Now, I need it to... Once the person signs in to look at an inputed email (which will be entered in the configuration).
So say myself and my friend... jack, are having a little chat battle or nudge war... I'll put his email inside the configuration (jack@somewhere.com).
Now soon as i do that, the script checks his email, and retrieves his nickname and stores it as a variable...
Now depending on what its set... it could either appear as my Nickname as (|| Steven || v || --J@ck--- ||) or a personal message (|| Steven || is Vs || --J@ck-- ||)
My question is how do I set the script to retrieve his name using just an email.
please add me on augrunt@hotmail.com
RE: I am making a script... by ddunk on 08-16-2006 at 04:24 AM
code: var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact("ddunk@is.a.ponynugget.net");
Debug.Trace(Contact.Name);
and for the PSM/nick thing:
code: Messenger.MyPersonalMessage = Messenger.MyName + " vs " + Contact.Name;
or
code: Messenger.MyName = Messenger.MyName + " vs " + Contact.Name;
RE: I am making a script... by markee on 08-16-2006 at 04:34 AM
quote: Originally posted by ddunk
code: var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact("ddunk@is.a.ponynugget.net");
Debug.Trace(Contact.Name);
You could just write that into a single line as well, though you won't have the Contacts and Contact variables to refer back to later.
code: Debug.Trace(Messenger.MyContacts.GetContact("email@address.com").Name)
|