I have a piece of macro here that I want to hail an npc. Sometimes there is lag or whatever and it takes a multiple hail to get them to respond. I am trying to have the macro check for a part of the text the npc replies in /say with and if he doesnt say it to repeat the hail. This is where I am, please forgive me I am trying to learn this by looking at other macros but I just cant get this to work.
Rich (BB code):
Sub Main
/declare Hello string outer "#*#Hello there#*#"
/target a monster
/delay 1s
:hail
/keypress h
/delay 3
/If (${ChatType.Equal[SAY]} && ${ChatText.Equal[${Hello}]}) {
/target clear
/return
} else {
/goto :hail
}