Thanks Rock. let's see if I got it right...my intention is to try to bot Okander "Mad Man" Mallen for meme.
Whenever he casts the crush skill he says "I'll crush you!". So what I have been trying to do is to run event monitor on SAY and check it on skillCast (during battle), but still no luck.
Question: EventMonitorStart("Crush","CHAT_MSG_SAY",",,,
Okander"); does this name needs to be exactly like Boss name? if yes, how can I use the quotes in the name without screwing up the function?
Also, I have PRIEST_HOLY_AURA skill defined in profile as requested...Please have a look at the code below, thanks again.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onSkillCast>
repeat
local time, moretocome, msg = EventMonitorCheck("Crush","1")
if string.find(msg, "I'll crush you!") then
player:cast("PRIEST_HOLY_AURA");
end
until moretocome == false
</onSkillCast>
<!-- # 1 --><waypoint x="1910" z="2849" y="433"> </waypoint> -- INI entrance
<!-- # 2 --><waypoint x="1972" z="2779" y="433"> </waypoint>
<!-- # 3 --><waypoint x="2014" z="2731" y="433"> </waypoint>
<!-- # 4 --><waypoint x="2205" z="2502" y="401">
EventMonitorStart("Crush","CHAT_MSG_SAY",",,,Okander");
</waypoint>
<!-- # 5 --><waypoint x="2315" z="2388" y="401">
yrest(1000);
</waypoint> -- get aggro here
<!-- # 4 --><waypoint x="2205" z="2502" y="401"> </waypoint>
<!-- # 3 --><waypoint x="2014" z="2731" y="433"> </waypoint>
<!-- # 2 --><waypoint x="1972" z="2779" y="433"> </waypoint>
<!-- # 1 --><waypoint x="1910" z="2849" y="433">
EventMonitorStop("Crush");
</waypoint> -- INI exit
</waypoints>