Moderator: MacroQuest Developers

Code: Select all
#chat tell
sub main
/varset v1 "$p0"
:Loop
/doevents chat
/delay 3s
/goto :Loop
/return
sub Even_Chat
/if "$p1"!="$v1" {
/tell "$p1" "wait one"
/tell "$v1" $p1 told me $p2
/return
}
/if "$p2"=="patk" {
/target pc "$p1"
|This is a bad example, easier if I knew we could do nested {}'s
:VerifyTarget
/if "$target(name)"!="$p1" /goto :TargetVerified
/assist
/delay 3
/goto :VerifyTarget
:TargetVerified
/pet attack
/return
}
/if "$p2"=="pbo" {
/attack off
/pet back off
/return
}
/tell "$p1" huh?
/return