MobCheck Beta v0.1 with Email Support...

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

HaCK
orc pawn
orc pawn
Posts: 13
Joined: Fri Feb 13, 2004 10:16 pm

MobCheck Beta v0.1 with Email Support...

Post by HaCK » Sat Feb 21, 2004 10:30 pm

Continued Discussion from HERE
----------------------


The goal was to get this macro to identify a mob that spawned, email an address with the information. I think I've got it figured out fairly well. Let me know what you all think.

Code: Select all

| Orginal Spawnchecker macro by wilso132
| MobCheck edited by HaCK for Email Support 
| USAGE: /macro mobcheck <spawn_name>
| e.g. "/macro mobcheck frenzied" will check for something with the 
| name "frenzied" and run mobcheck.bat located at c:\MobCheck\ (Edit 
| this to wherever you unzipped MobCheck Zip file). Also Edit 
| "mobcheck.bat" to fill in your EMail address.  If you cannot Edit INI files
| BAT files or Macro files please DO NOT use this macro.  Thanks!

Sub Main 
/declare alertlistno_ global 
/declare spawn_name global 
/varset alertlistno_ 9 
/varset spawn_name "@Param0" 
    
   /echo MobCheck Macro is going to send an email when "@spawn_name" spawns. 
   /alert clear alertlistno_ 
   /alert add alertlistno_ npc radius 10000 "@spawn_name" 
      
    :TOP 
   /if $alert(alertlistno_)==TRUE { 
	/w npc @spawn_name 
	/echo Matches your criteria of "@spawn_name"
	/mqlog "@spawn_name" Has Spawned on $date(m)/$date(d)/$date(y) @ $time(h):$time(m)
	/echo Time of spawn is $date(m)/$date(d)/$date(y) @ $time(h):$time(m)
	/exec c:\MobCheck\mobcheck.bat bg
   /return 
   } else { 
      /goto :TOP 
   } 
/return 
Bat file listed here for information purposes, it's in the ZIP file below:

Code: Select all

@ECHO OFF
ECHO SENDING EMAIL, PLEASE WAIT...
rem PLEASE EDIT LOCATION OF MACROQUEST LOG FILES & LOCATION OF UNZIPPED MOBCHECK ZIP
Move "C:\Macroquest\Logs\mobcheck.mac.log" C:\Mobcheck\sendmail.txt
rem PLEASE EDIT TO EMAIL ADDRESS & LOCATION OF UNZIPPED MOBCHECK ZIP FILE
C:\mobcheck\sendmail.exe from=mobcheck@macroquest2.com to=your_email@your_domain.com Subject="Mob has SPAWNED, Check message for Details" Text=c:\Mobcheck\sendmail.txt StartAfterLoad
cls
HERE is the ZIP file which contains the sendmail.exe app and the entire bat, ini files and more. Let me know what you all think.

Spanky_Monkey
a ghoul
a ghoul
Posts: 103
Joined: Wed Feb 19, 2003 3:10 pm

That is great...

Post by Spanky_Monkey » Wed Feb 25, 2004 1:18 am

I can be out somewhere, and get paged when mob pops... hahahahahahahaha.. awesome....

BEEP BEEP BEEP!!
*looks at pager*
"Shit, baby I got to go.. my machine just paged me, AOW is up!!!"

HaCK
orc pawn
orc pawn
Posts: 13
Joined: Fri Feb 13, 2004 10:16 pm

Post by HaCK » Sat Feb 28, 2004 10:45 am

That's the goal, I use this Macro in Karnors for watching for VS Spawn (since his spawn is aprox. 72 hours and you never know when he'll pop). FD at the zone, watch for him, login when you get the page.

It may be cool to try to merge the email support with Lestor's Spawn Checker Macro but I am not skilled enough to do so.

Glasscoin
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Jan 13, 2003 8:57 am

Post by Glasscoin » Sun Mar 14, 2004 9:25 pm

I liked this idea, a lot, so I made something called EQMail.inc which builds on the same principle. Basically, what it will allow you to do is someting like

Code: Select all

/call EQMail <from name> <e-mail address> <subject> <body>
For example,

Code: Select all

/call EQMail "Spawn Checker" "user@macroquest2.com" "@spawnname spawned!" "Go kill him!"
You can find the EQMail.inc routine here, as well as how I worked it into the above mobchecker macro... anyway, good work HaCK. :)