Moderator: MacroQuest Developers
Code: Select all
#chat channel
Declares where Event_Chat channels you want to handle can be: say, ooc, shout, tell, group, auc,chatCode: Select all
Sub Event_Chat: Event callback for messages
$p0 - Channel of message (ooc etc., chat channels will callback with the name of the channel)
(ie. /join port ... callback will have $p0==port)
$p1 - Name of the person who sent the message
$p2 - Text they sentAccording to the above, all you need to do is run an /if statement for $p0 and you can decide how to act based on the result.Sub Event_Chat: Event callback for messages
$p0 - Channel of message (ooc etc., chat channels will callback with the name of the channel)
(ie. /join port ... callback will have $p0==port)
$p1 - Name of the person who sent the message
$p2 - Text they sent
Code: Select all
Appendix A: Macro Example
|** Filename: skillbuild.mac
** Orignally written by Plazmic
** Bastardized by Rizwank
** Please note : This script doesnt use real items. There is no Pizza combine in Everquest. Sorry.
**|
Block comment for macro header.
#turbo
Turns on turbo mode.
#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSuceed "You have fashioned the items together to create something new!"
#chat say
#chat tell