Hey i took apart tarons seru macro a little to try to add the pchold to the casting macro. If u start the macro with someone in zone it doesnt do or say anything when they zone it starts. but then they zone back in it keeps casting was wondering if anyone could tell me what im missing. heres what i have .
Spell_routines.inc
|
| SpellCast.inc
Code:
|--- Macro Castskills.mac
|--- Work your casting skills while AFK
|--- or while on the toon being PLed
|---
|--- usage /mac Castskills
|--- Park yourself in a safe place -
|--- I like PoK .. you don't take damage from casting nukes on yourself
#include spell_routines.inc
#turbo
#Event Zoned "#*#You have entered#*#"
#Event Mana "#*#Insufficient Mana#*#"
|--- Set for spells to be in slots 1 -5
|--- one spell for each ability you want to work
|--- Ensure you save the spell set as CS or edit line 13 to your spellset name
Sub Main
|-------------------------------------------------------------------------------
|- Set this to 1 if you want to pause macro when GM zones in (Instead of ending)
|-------------------------------------------------------------------------------
/declare WaitonGM int outer 1
|----------------------------------------------------------------------
|- Set this to 1 if you want to pause macro when somebody else zones in
|----------------------------------------------------------------------
/declare InZone int outer 1
/call RealMacro
/return
Sub RealMacro
|----------------------------------------|
|- Hold macro if others are in the zone -|
|----------------------------------------|
:PCHolding
/doevents
/varset InZone ${SpawnCount[PC]}
/if (${Me.Grouped}) {
/for loopcount 0 to 5
/if (${Spawn[${Group.Member[${loopcount}]}].ID}) {
/varcalc InZone ${InZone}-1
}
/next loopcount
/varcalc InZone ${InZone}+1
}
/if ((${InZone}>1) && ${WaitonPC}==1) /goto :PCHolding
|------------------------------------------------------|
|- Make sure there is no GM, or KoS mobs near our guy -|
|------------------------------------------------------|
:Start
/if (${Spawn[gm].ID}) /call Event_GMAlert
/doevents
/memspellset CS
/delay 20s
:begin
/target myself
/call cast "${Me.Gem[1]}" gem1
/delay 5s
/autoinventory
/doevents
/call cast "${Me.Gem[2]}" gem2
/delay 5s
/autoinventory
/doevents
/call cast "${Me.Gem[3]}" gem3
/delay 5s
/autoinventory
/doevents
/call cast "${Me.Gem[4]}" gem4
/delay 5s
/autoinventory
/doevents
/call cast "${Me.Gem[5]}" gem5
/delay 5s
/autoinventory
/doevents
/goto :PCHolding
/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_Mana
/sit
:loop
/delay 15S
/echo checking my mana
/if ( ${Me.PctMana}==100 ) /return
/goto :loop
:endloop
/return
Spell_routines.inc
|
| SpellCast.inc
Last edited by a moderator: