armysoldier
Well-known member
- Joined
- Jun 26, 2005
- RedCents
- 101¢
I wanted a macro that would take a second bard.. and assist the first when the mob gets below 70% health
Once i get this working properly I will add the loot section of the mac.
but I usually have 3 toons in the FH instanced.. so 3rd toon could use the lootwhore.mac just fine
Problems
1. The if statement does not seem to work right.. it calls the sub kill no matter what the HP of the target
2. If the mob dies or the assisting bard has no target I want it to twist selo and regen... and then go back to the main part of the mac and start over...
It does not seem to work:
3. I would like to add so that usage is /mac assist Name
and the string name can then be used in the macro .. and one less line for the user to edit
Oh btw the macro is ending unexpectedly also
PLEASE help .. and see what u can do
thanks
Once i get this working properly I will add the loot section of the mac.
but I usually have 3 toons in the FH instanced.. so 3rd toon could use the lootwhore.mac just fine
Problems
1. The if statement does not seem to work right.. it calls the sub kill no matter what the HP of the target
Rich (BB code):
/if (${Target.PctHPs}<=69) /call kill
2. If the mob dies or the assisting bard has no target I want it to twist selo and regen... and then go back to the main part of the mac and start over...
It does not seem to work:
Rich (BB code):
Sub Event_Exp
/echo target gone gonna regen till i get another
/twist 1 7
/goto :begin
/return
3. I would like to add so that usage is /mac assist Name
and the string name can then be used in the macro .. and one less line for the user to edit
Rich (BB code):
|--- usage /mac Assist
|--- Songs 1 = Selo 2-6 = Dots 7 = Regen
|--- CTRL-G to bring up find window
|--- Edit Line 24 Main bards name
|--- Edit line 110 with your twist (incase u don't have 5 dots)
#turbo
#Event Zoned "#*#You have entered#*#"
#Event Exp "#*#has been slain by#*#"
#Event Exp "#*#You must first select#*#"
|--- Set for FH atm
|--- Warp to start of circle
|--- assists main bard
|--- Calls for mob Check
Sub Main
/echo starting my circle
/warp loc -580.50 162.80 2.15
/face heading 270
/delay 5s
/circle on 21
/keypress forward hold
:begin
/call GMcheck
/doevents
/if (${Me.PctHPs}<=30) /call succor
/if (${Me.PctHPs}<=80) /call regen
/echo assist and check mob
/assist InsertNameHere
/call Mob
/doevents
/return
|--- Duh standard GM check - add Fade if you have it
Sub GMcheck
/if (${Spawn[gm].ID}) {
/echo Gm detected
/mqlog GM detected ending macro
/beep
/beep
/beep
/endmac
/unload
/q
}
/return
|--- Reduces your dots and adds a regen
Sub regen
/echo getting beat on need some regen
/twist 1 2 3 7
:regenloop
/doevents
/if (${Me.PctHPs}<=30) /call succor
/if (${Me.PctHPs}>=95) {
/call sing
/twist adjust 5
/return
}
/goto :regenloop
/return
|--- Warps off world and regens
Sub succor
/echo Gonna die .. time to save myself
/warp loc 245 -33 0
/circle off
/cast 7
/sit
/delay 60
:loopheal
/if (${Me.PctHPs}>80) {
/stand
/face heading 270
/warp loc -580.50 162.80 2.15
/circle on 21
/keypress forward hold
/call sing
/twist adjust 5
/return
}
/delay 60
/goto :loopheal
/return
|--- Performs any checks for mobs (lvl, names etc etc)
|--- Calls Kill sub to start twisting
Sub Mob
/echo checking mobs
/doevents
/if (${Target.PctHPs}<=69) /call kill
/if (${Target.Level}>67) /keypress esc
/if (${Target.Distance}>220) /keypress esc
|---Add any mob checks here
/doevents
/delay 2s
/return
Sub Kill
/echo time to help kill and earn this EXP
/call sing
:loop
/if (${Me.PctHPs}<=30) /call succor
/if (${Me.PctHPs}<=80) /call regen
/if (${Target.PctHPs}<=5) {
/return
/echo Target gonna die soon
}
/doevents
/goto :loop
/return
Sub sing
/twist 1 2 3 4 5 6
/return
Sub Event_Zoned
/echo died or instanced ended.. time to go
/twist off
/circle off
/delay 5s
/sit
/camp desk
/endmac
/return
Sub Event_Exp
/echo target gone gonna regen till i get another
/twist 1 7
/goto :begin
/return
/return
Oh btw the macro is ending unexpectedly also
PLEASE help .. and see what u can do
thanks