Posted: Sun Sep 11, 2005 7:44 am
gordon you volunteering: hehe
The way I do it is to look at the chatparse sub and read the triggers. They are in [], and are followed by what each will do, like so:
the trigger is "bor"
look after that and read about what it will do:tune in to the /call Cast "whatever" phrases. This one is a check to see if you have an item to cast a spell haste buff. If not, it will cast ${spellhastebuff} defined in the beginning of the macro.
If you get the hang of this, its easy enough to figure out the triggers, and add your own custom chat events.
The way I do it is to look at the chatparse sub and read the triggers. They are in [], and are followed by what each will do, like so:
Code: Select all
/if (${ChatText.Equal[bor]}) {look after that and read about what it will do:
Code: Select all
/call FindExactPC ${Sender}
/if (${Macro.Return.NotEqual[TARGET_SUCCESS]}) /return
/if (${edbuffItem.Name.NotEqual[NULL]}) /call EquipItem "${edbuffitem}"
/if (${edbuffItem.Name.NotEqual[NULL]}) /varset olditem ${Macro.Return}
/if (${FindItem[Breastplate of Vengeful Fury].ID}) /call Cast "Breastplate of Vengeful Fury" item
/if (!${FindItem[Breastplate of Vengeful Fury].ID}) /call Cast "${spellhastebuff}" gem8 5s
/if (${edbuffItem.Name.NotEqual[NULL]}) /call EquipItem ${olditem}
}If you get the hang of this, its easy enough to figure out the triggers, and add your own custom chat events.