Thanks.
Palanca
Moderator: MacroQuest Developers

Code: Select all
Usage with Rogue Helper
add the lines in RED to rh.mac
Quote:
/echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/echo Jerle's Rogue Helper Macro (v${rhversion}) Starting...
/echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/echo Loading Includes...
/echo Use "/rhhelp" to display help information
/echo -------=======(Current Status)=======--------
Quote:
#Event StatInfo "[MQ2] -------=======(Current Status)=======--------"
#include DPS.inc
Sub Main
add to your HUD(just change the X and Y location if you need to)
Quote:
DPSHeader=3,5,326,255,255,255,${If[${DPS_bDPSLoaded},~~~~~~ DPS Stats~~~~~~,]}
DPS=3,5,338,255,255,255,${If[${DPS_bDPSLoaded},${DPS_iTotalDMG} (DMG) / ${DPS_iNumSec} (seconds) = ${DPS_iDPS} DPS,]}
Code:
|**----------------------------------------------------------
DPS.inc
Usage:
add the following to your main script
(just before sub main)
#include RHBackstab.inc
(inside of sub Main)
/echo Loading Includes...
add to your HUD(just change the X and Y location)
DPSHeader=3,5,326,255,255,255,${If[${DPS_bDPSLoaded},~~~~~~ DPS Stats~~~~~~,]}
DPS=3,5,338,255,255,255,${If[${DPS_bDPSLoaded},${DPS_iTotalDMG} (DMG) / ${DPS_iNumSec} (seconds) = ${DPS_iDPS} DPS,]}
NuttsThatKlank
----------------------------------------------------------**|
#Event InitDPS "[MQ2] Loading Includes..."
#Event DPS "You #1# #2# for #3# points of damage."
#Event DPSnm "#1# hit #2# for #3# points of non-melee damage."
Sub Event_InitDPS
/declare DPS_bDPSLoaded bool outer TRUE
/declare DPS_iStart int outer ${Math.Calc[${MacroQuest.Running}/1000]}]}
/declare DPS_iNumSec int outer 0
/declare DPS_iTotalDMG int outer 0
/declare DPS_iDPS int outer 0
/declare DPS_CombatTargetID int outer 0
/echo ---===DPS module loaded===---
/return
sub EVENT_DPS
/call addDMG ${Param1} ${Param3}
/RETURN
sub EVENT_DPSnm
/IF (${Param1.Equal[${Me.Name}]}) {
/call addDMG "non melee" ${Param3}
}
/RETURN
sub addDMG(string dmgType,string Damage)
/IF (${DPS_CombatTargetID}!=${Target.ID} && (${Target.ID}!=NULL)) {
/varset DPS_iStart ${MacroQuest.Running}
/varset DPS_iNumSec 0
/varset DPS_iTotalDMG 0
/varset DPS_CombatTargetID ${Target.ID}
}
/declare tNow float ${MacroQuest.Running}
/varset DPS_iNumSec ${Math.Calc[(${tNow}-${DPS_iStart})/1000]}
/varcalc DPS_iTotalDMG ${DPS_iTotalDMG}+${Damage}
/IF (!${DPS_iNumSec}==0) {
/varset DPS_iDPS ${Math.Calc[${DPS_iTotalDMG}/${DPS_iNumSec}]}]}
}
/RETURNMy best guess is you didn't follow the final direction in the DPS.inc file:Mulletmaster wrote:Is it possible to get the DPS module to work again?
That goes inside Sub Main, like so:(inside of sub Main)
/echo Loading Includes...
/echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/echo Jerle's Rogue Helper Macro (v${rhversion}) Starting...
/echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/echo Loading Includes...
/echo Use "/rhhelp" to display help information
/echo RH Status
:ForeverLoop
However, if you want it to continue using the RHSettings.ini file, just replace RHBackstab.ini with RHSettings.ini in the RHBackstab.inc file.[General]
BSAnnounce=TRUE
BSNotifier=echo
BSTrack=TRUE
MaxBS=2517


Code: Select all
#event SomeTestEvent "#*#Alice dances wildly at your arrivial.#*#"Code: Select all
#event SomeOtherTestEvent "#*#Alice jiggles appropriately for your dollar.#*#"
Code: Select all
#event SomeTestEvent "#*#Alice dances wildly at your arrivial.#*#"Code: Select all
#event SomeTestEvent "#*#lice dances wildly at your arrivial.#*#"