Add Text Message Alerts To Any Macro.

riot

Member
Joined
Oct 3, 2011
Messages
632
Reaction score
1
Points
16
Location
Milwaukee, WI
This .inc file will allow you to set up custom text message alerts for any cell phone provider, in the world, that gives its users an email extension to their phone number. For example: 1235555555@mms.att.net. I have only been able to test this out on ATT but from my experience with it MMS messages are much cleaner than SMS messages. If your carrier has two options, like ATT does, use the email that allows for MMS messages. Some carriers merge MMS and SMS in to one email and others only allow SMS messages.

The files are configured for Gmail since there is hardly a person alive who doesn't have a Gmail account. If you don't have one then go sign up for one or you can figure out the config settings for yourself. I'm not providing information for the hundreds of thousands of different email providers that exist.

I have tried to make the set up for this as idiot proof as I possibly could so here is the full set up in a few easy steps:

Step 1) Download the .rar file.

Step 2) Extract the .rar file to your MacroQuest2\Macros\ directory.

Step 3) Open up Name.rText.ini and edit the values.

Code:
[General]
QuietMode= ->TRUE turns echoing off. FALSE turns echoing on.
MyEmail= -> This would be your Gmail address.
MyPassword= -> Your Gmail address password.
MyName= -> Your character name.
MQDir= -> The full path of where your MacroQuest2\Macros\ folder is.
DeathNotify= -> TRUE/FALSE notify on death.
AANotify= -> TRUE/FALSE notify on AA Gain.
AAToNotify= -> How many AAs should be gained before being notified.
GMNotify= -> TRUE/FALSE notify if GM enters zone.
LevelNotify= -> TRUE/FALSE notify upon gaining new levels.
TellNotify= -> TRUE/FALSE notify upon receiving a tell.
[SendThis] -> These are fully customizable. Add in whatever message you want to send if you don't want the default ones.
DeathText=Oh shit! I died at ${Time.Time12}.
AAText=AA Gained: ${AAGained} and AA Gained This Session: ${AATotal}.
GMText=GM is in the zone at ${Time.Time12}. Quitting macro and camping.
LevelText=Just gained a level! Current level is ${Me.Level}.

Step 4) Save the file as YourName.rText.ini

Step 5) Open up SendTo.txt and add in the email address that is linked to your cell phone number. For example: 1235555555@mms.att.net. Make sure there are no spaces before the number or after the number. Save the file when done and close it. You'll never need to edit it again unless you change your number.

Step 6) Load up the game and start rTextDebug.mac then perform some actions that would trigger the notifications to make sure everything works before wasting time on adding this to an actual macro. If it doesn't work then it is trouble shooting time.

Step 7) If the notifications are triggered and you received a text message (hooray!) then it is time to add this to an actual macro.
  1. Add "#include rText.inc" at the top of your macro
  2. Add "/declare LoadVars bool outer True" after Sub Main
  3. Add "/call Text" in whatever Subs that might require it. Main sub, Combat sub, Downtime sub, etc.

That's it. 7 simple steps. Pretty easy, huh?

If you have issues then I need you to not be a dumbass and actually tell me about the issue instead of 'no werk plzzz fix plzzz how u fix'. I have an actual version of this that I use for debugging and testing which I'll be sending out to those who have issues that I can't figure out.

Some errors I can think of that might happen due to improper configurations:

MQDir needs the trailing forward slash on it. If it looks like MacroQues2\Macros then you are wrong. It needs to be MacroQuest2\Macros\

If there is a space in your MacroQuest2 directory path then you will might not be able to get this to work. You can try to escape the space but I can't guarantee it will work. For example, if your path is C:\I Love Puppies\MacroQuest2\Macros\ you could try using C:\I^ Love^ Puppies\MacroQuest2\Macros\ so the parser ignores the spaces.

Current Bugs:

I have absolutely no idea why but text alerts that involve a Tell have a 1 placed in front of them. Every other alert displays as normal. There is something funky going on with the output when it involves a tell. The actual string returns the proper text without the 1 but once output> is called a 1 is added before it. But only when the string involves a tell..weird.

Optional Stuff:

For those ultra paranoid types that think I'm going to steal your Gmail account and look at all of your porn spam, here are the actual download links for the two programs included with this. These are optional. The files are already included in the rar file and do not need to be downloaded again unless you really feel the need to.

blat - Blat - Windows Command Line SMTP Mailer | Free Communications software downloads at SourceForge.net

blat is the program that sends the mail from your computer to Gmail then Gmail sends it to your carrier account which then gets relayed to your cell phone by your carrier. The program has been around since 1997 and is used in networks across the world to easily automate emailing trivial stuff among other useful things.

stunnel - https://www.stunnel.org

Gmail requires SSL, which blat does not have, so in order to send out a text we need to create an SSL tunnel that will encrypt the text and pass the information to Gmail. Without using stunnel every attempt to send the text would be rejected. This program has been around since 1998 and is also used around the world by network and IT guys/girls.

Questions? I'll try my best to help answer them for you!

Comments? Let me know what you think of this. Feedback would be wonderful.

Concerns? If you're concerned about the security aspect of this, don't be. And if that didn't convince you then just make a new Gmail account that is used for nothing but sending out texts.

Requests? Post them up! I'll be more than happy to add in whatever text notifications you can think of.

-Riot
 
Last edited:
I want picture messaging, so I can check if my baby's are okay hourly like an obsessive parent.
 
I want picture messaging, so I can check if my baby's are okay hourly like an obsessive parent.



Hourly seems a bit too long. Obsessive parents need a complete CCTV system with constant web updating!








Sent from my Windows Phone using Tapatalk
 
anyone on with skype able to help with this, i seem to be doing something wrong and getting nothing sent to me no matter what i do

traviscopas is skype name