Code: Select all
|DKPParse.mac by Harden
|Events Borrowed From Gimps krust.mac
|Special Thanks to Gimp for all the Help he's provided me.
|Janurary 01, 2006
|Last Updated: Feburary 3, 2006
|Channels can be listed by name, rather then number, in case your channel numbers change a lot.
|Added a Check to see if your in a Raid.
|
|This Macro Auto-Updates your Logs for DKP.
|Does /list and /who commands every 15 Minutes
|Provides Function to see who in Raid is Not in zone, by typing /notinzone
|Added "Camp Check" to end macro if you camp.
|Change the Name to match your Raid Channel Name. (ex. /list WeRaidGud)-
|Change 15m, to what ever Time Frequency you want (ex. 15m = 15 Minutes)-
#Event WhoNotInZone "[MQ2] notinzone"
Sub Event_WhoNotInZone(string Line)
/if (!${Raid.Members}) {
/echo /notinzone: You are not in raid.
/return
}
/echo --------------------------
/echo # Raid members not in zone:
/declare i int local 0
/declare cnt int local 0
/for i 1 to ${Raid.Members}
/if (!${Spawn[PC ${Raid.Member[${i}].Name}].ID}) {
/echo # ${Raid.Member[${i}].Name} [${Raid.Member[${i}].Class.ShortName}] (${SpawnCount[pc ${Raid.Member[${i}].Class.ShortName}]} ${Raid.Member[${i}].Class.Name.Lower}s in zone)
/varcalc cnt ${cnt}+1
}
/next i
/echo # ${cnt} of ${Raid.Members} raid members not in zone
/echo --------------------------
/return
Sub MakeRaidDumpsFunction
|Change Channel(s) to Suit your Raid Channels
/list RaidChannel1
/delay 1
/list RaidChannel2
/delay 1
/
/return
#Event Camping "#*#It will take you about 30 seconds to prepare your camp.#*#"
Sub Event_Camping
/echo Camping - Ending macro!
/endmacro
/return
Sub Main
/declare MakeRaidDumpsTimer timer outer 0
/squelch /alias /notinzone /echo notinzone
:dkploop
/doevents
|DKP log parse
|Change 15m to what time interval you want logs updated (15m = 15 Minutes)
/if (!${MakeRaidDumpsTimer} && ${Raid.Members}) {
/echo [${Time}] # Updating Logs for DKP.
/call MakeRaidDumpsFunction
/popup Updating Logs for DKP.
/echo Next Update in 15 Minutes.
/varset MakeRaidDumpsTimer 15m
}
/goto :dkploop
/returnAlso included is the command /notinzone (Thanks Gimp, Borrowed from Krust.mac) Reports who is in raid, but not in zone.
I Don't know if anyone will Find use for this, but I thought I would share reguardless.


