PDA

View Full Version : REQ: Paging feature



Phat_Lewtz
08-20-2003, 05:15 AM
Hey Folks

I will pay $100 USD for this feature : )

when rare mob pops MYSEQ rings my phone or pager : )

Phone prefered : )

HEHEH Thanks

Phatman

LordCrush
08-20-2003, 06:36 AM
plz ban

Dedpoet
08-20-2003, 01:39 PM
Step 0: Get SMTP running on your Showeq box.

Step 1: Change your "alert action" to run a shell script instead of play a sound.

Step 2: Put your mob on your alert list.

[Alert]
Name:Emperor Crush

Step 3: Make shell script.

#!/bin/sh

echo OMGZ OMGZ Lord Crush is up! Cut out of work and get to Crushbone now! | mail [email protected]

Step 4: Park FD'd character in Crushbone.

Step 5: Go to work. Stare at email client.

I don't do this personally, but no reason why it wouldn't work. Now you can KS other guilds with incredible efficiency!

Edit: Ooooooo, a sarcasm detector. That's reeeeeeeeal useful.

dsiroky
08-20-2003, 04:56 PM
Here's a quick hack to do just this.

1. You'll need to know how to send an SMS to your phone via email. eg [email protected] (att) or [email protected] (t-mobile/voicestream)

2. you need to have IIS installed with SMTP service configured as a smarthost using dns

3. Add the reference to the .net mail libraries:

System.Web.Mail;

4. Copy the beepalert definitions to a pagealertdefinitions and create a new pagealert checkbox on form 3, mapping it to chkbox7 (instead of 5). You should probably add a phone/email address textbox here, but I was lazy.

Here's where you hook in and send the mail message on alert

search for:

if (matched) {
if (Settings.Instance.PrefixStars)
t = "*** " + t;

//** new code begins:

if (Settings.Instance.PageOnAlert) {
string from = "[email protected]";
string to = "[email protected]";
string subject = t
string body = ""
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(from, to, subject, body);
}


This should send you an SMS to your phone with the subject being the name of the mob that spawned.