#event HitSlow "#1# slows down."
Not registering when it occurs.
Also, having problems with the Sub Event_Resist.
The error is as follows:
Failed to parse /if condition '(1=1)', non numerical encountered.
encmsg.mac@140(Event_Resist): /if (${ResistVar}=1) {
I can't see why this happens, because ResistVar is declared an int.
Perhaps when comparing ints, you should use:
/if ${ResistVar}=1
Without ( ) enclosing the conditions.
Any ideas on either of these issues?
Macro follows:
Code: Select all
|--------------------------------------|
|encmsg.mac |
|By: JP5 |
| |
|Usage: /macro encmsg ChatType |
| |
|Description: |
| Announces |
| -Resists and the spell resisted |
| -Casts and the spell being casted |
| -Spell hits and the spell that hit |
| |
| Other Notes: |
| -Macro ended with /endmacro by user. |
|--------------------------------------|
|Misc Events
#event Resist "Your target resist#*#"
#event CharmWear "Your charm spell has worn off."
#event Interrupted "Your spell is interrupted."
|Slow
#event CastSlow "You begin casting Tepid Deeds."
#event CastSlow "You begin casting Forlorn Deeds."
#event CastSlow "You begin casting Shiftless Deeds."
#event HitSlow "#1# slows down."
|Mez
#event CastMez "You begin casting Entrance."
#event CastMez "You begin casting Bliss of the Nihil."
#event CastMez "You begin casting Bliss."
#event CastMez "You begin casting Sleep."
#event CastMez "You begin casting Word of Morell."
#event CastMez "You begin casting Apathy."
#event CastMez "You begin casting Ancient Eternal Rapture."
#event CastMez "You begin casting Rapture."
#event CastMez "You begin casting Glamour of Kintaz."
#event CastMez "You begin casting Fascination."
#event CastMez "You begin casting Dazzle."
#event CastMez "You begin casting Entracing Lights."
#event CastMez "You begin casting Enthrall."
#event CastMez "You begin casting Mesmerize."
#event HitMez "#1# has been entranced."
#event HitMez "#1# stares at the ground quietly."
#event HitMez "#1#'s jaw falls as they begin to drool."
#event HitMez "#1# falls asleep."
#event HitMez "#1# begins to dream."
#event HitMez "#1# stares off into the distance."
#event HitMez "#1# swoons in raptured bliss."
#event HitMez "#1# has been mesmerized by the Glamour of Kintaz."
#event HitMez "#1# has been fascinated."
#event HitMez "#1# has been mesmerized."
#event HitMez "#1# gawks at the glowing lights."
#event HitMez "#1# has been enthralled."
#event HitMez "#1# has been mesmerized."
|Buffs
#event Quickness "You begin casting Quickness."
#event Alacrity "You begin casting Alacrity."
#event SLTW "You begin casting Swift like the Wind."
#event AQ "You begin casting Aanya's Quickening."
#event WR "You begin casting Wonderous Rapidity."
#event SoV "You begin casting Speed of Vallon."
#event VQ "You begin casting Vallon's Quickening."
#event Celerity "You begin casting Celerity."
#event Clarity "You begin casting Clarity."
#event C2 "You begin casting Clarity II."
#event Clarity "You begin casting Boon of the Clear Mind."
#event KEI "You begin casting Koadic's Endless Intellect."
#event Tranq "You begin casting Tranquility."
#event VoQ "You begin casting Voice of Quellious."
#event Garou "You begin casting Boon of the Garou."
#event Imp "You begin casting Trickster's Augmentation."
#event NDT "You begin casting Night's Dark Terror."
|Main Functions
Sub Main
/if (${Me.Class.Name.NotEqual[Enchanter]}) /endmacro
/if (${Defined[Param0]}) {
/declare CT string outer
/varset CT ${Param0}
/echo Announcing enc messages using /${CT}.
} else {
/echo Define a Chat Type.
/endmacro
}
/declare ResistVar int outer
/declare ResistLast string outer
/call ResistReset
/call DoEvents
/return
Sub ResistReset
/varset ResistVar 0
/varset ResistLast --
/return
Sub DoEvents
:loop
/doevents
/goto :loop
/return
|MISC events
| 1 is waiting for spell hit or resist, 0 is no current spells.
Sub Event_Resist
/if (${ResistVar}=1) {
/docommand /${CT} ${ResistLast} resisted.
/call ResistReset
/return
} else {
/return
}
Sub Event_Interrupted
/call ResistReset
/return
Sub Event_CharmWear
/docommand /${CT} Charm wore off! Stun Snare Mez Debuff.
/return
| Spell Events
Sub Event_CastSlow
/varset ResistVar 1
/varset ResistLast Slow
/docommand /${CT} Casting: Slow on ${Target.CleanName}.
/return
Sub Event_HitSlow(string Line, string Tar)
/echo HELLO???? Testing ${Tar} should be target that it hit on.
/call ResistReset
/return
Sub Event_CastMez
/varset ResistVar 1
/varset ResistLast Mez
/docommand /${CT} Casting: Mez on ${Target.CleanName}
/return
Sub Event_HitMez(string Line, string Tar)
/call ResistReset
/docommand /${CT} ${Tar} mezzed.
/return
|Buffs
Sub Event_Quickness
/docommand /${CT1} Casting: Quickness on ${Target.CleanName}.
/return
Sub Event_Alacrity
/docommand /${CT1} Casting: Alacrity on ${Target.CleanName}.
/return
Sub Event_SLTW
/docommand /${CT1} Casting: Swift like the Wind on ${Target.CleanName}.
/return
Sub Event_AQ
/docommand /${CT1} Casting: Aanya's Quickening on ${Target.CleanName}.
/return
Sub Event_WR
/docommand /${CT1} Casting: Wonderous Rapidity on ${Target.CleanName}.
/return
Sub Event_SoV
/docommand /${CT1} Casting: Speed of Vallon on ${Target.CleanName}.
/return
Sub Event_VQ
/docommand /${CT1} Casting: Vallon's Quickening on ${Target.CleanName}.
/return
Sub Event_Celerity
/docommand /${CT1} Casting: Celerity on ${Target.CleanName}.
/return
Sub Event_Clarity
/docommand /${CT1} Casting: Clarity on ${Target.CleanName}.
/return
Sub Event_KEI
/docommand /${CT1} Casting: Koadic's Endless Intellect on ${Target.CleanName}.
/return
Sub Event_Tranq
/docommand /${CT1} Casting: Tranquility on ${Target.CleanName}.
/return
Sub Event_VoQ
/docommand /${CT1} Casting: VoQ on ${Target.CleanName}.
/return
Sub Event_Garou
/docommand /${CT1} Casting: Boon of the Garou (werewolf) on ${Target.CleanName}.
/return
Sub Event_Imp
/docommand /${CT1} Casting: Trickster's Augmentation (imp) on ${Target.CleanName}.
/return
Sub Event_NDT
/docommand /${CT1} Casting: Night's Dark Terror (scarecrow) on ${Target.CleanName}.
/return

