I got a problem while trying to make a daily quest script for a few characters at the same time.
What I want to do is to make a script for the character, who does the quest and one script for those who just wait to turn in the quest. This is why I want to set up an "alt-list" and let wait the character who does the quest until all alts have written "accepted" in the party chat.
Now at first I got two problems. If I start the script and write "accepted" in the party chat manually while micromacro shows "Waiting for partymembers to accept/complete daily" nothing happens. I dn't know why. but it doesn't react.
Second thing is, that I need to implent the alt list, so is does not just look for the message "accepted" but also if every alt has written this in the partychat.
Maybe there is something wrong with "EventMonitorCheck("Wait","4,1",true)" but I never understood what the "4,1", true means.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
DAILY_ALTS = {""}
EventMonitorStart("Wait", "CHAT_MSG_PARTY")
function acceptDaily()
cprintf(cli.lightred,"Waiting for partymembers to accept/complete daily...\n")
while true do
local time, moreToCome, _name, _message = EventMonitorCheck("Wait","4,1",true)
if _message then
string.lower(_message)
end
if _message and (_message == "accepted" or _message == "completed") then
break
else
yrest(500)
end
end
cprintf(cli.lightgreen,"Going on\n")
end
</onLoad>
<!-- # 1 --><waypoint x="-7099" z="-4127" y="172" tag="quest">
acceptDaily() -- wait for party to accept the daily
....