ok i am after a little macro i can use with my mage when some on in group says anything with ROD in a sentence it will auto target them and cast rod
same in a tell if the mage recievs a tell he auto targets the sender and casts a mod rod now i have found somthing that is very close to doing it on the board it has a simple problem though i cant for the life of me work out .
Code: Select all
#chat group
#chat tell
Sub main
:Wait
/Doevents
/delay 1
/goto :Wait
/return
Sub Event_Chat(MsgType, MsgFrom, MsgData)
/if "@ChatText"~~"rod" {
/echo @MsgFrom needs a rod.
/target PC @MsgFrom
/stand
/cast 8
}
/return
ok this works great if they say (RoD) but if they say (rod please ) or even a Rod with a space or any other charcter besides Rod it just hangs up and dies any ideas please would be greatly appreciated
ps i got this from the search engine i have been looking for 3 days and 5 hours spent on this forum to try to find anything that works so please dont htink i didnt search
thank you for you help :)
