Code: Select all
EventMonitorStart("Crush","CHAT_MSG_SAY");
Code: Select all
EventMonitorStart("Crush","CHAT_MSG_SAY");
Code: Select all
Clearing target.
Large Mayan Plant Pot
Use MACRO: Executing RoMScript "AskPlayerInfo('lolliecharname');".
You have been whispered by: lolliecharname
Pausing for 30 seconds. Press Delete to stop the pause.
Time remaining 20 seconds.
Time remaining 10 seconds.
Time remaining 0 seconds.
reseting monitor
Use MACRO: Executing RoMScript "AskPlayerInfo('lolliecharname');".
1
grow
You have been whispered by: lolliecharname
Pausing for 30 seconds. Press Delete to stop the pause.
Time remaining 20 seconds.
Time remaining 10 seconds.
Time remaining 0 seconds.
reseting monitor
Use MACRO: Executing RoMScript "AskPlayerInfo('lolliecharname');".
Clearing target.
Large Mayan Plant Pot
You have been whispered by: lolliecharname
Pausing for 30 seconds. Press Delete to stop the pause.
Time remaining 20 seconds.
Time remaining 10 seconds.
Time remaining 0 seconds.
reseting monitor
Use MACRO: Executing RoMScript "AskPlayerInfo('lolliecharname');".
You have been whispered by: lolliecharname
Pausing for 30 seconds. Press Delete to stop the pause.
Time remaining 20 seconds.
Time remaining 10 seconds.
Time remaining 0 seconds.
reseting monitor
Code: Select all
triggerTime = os.time()
Code: Select all
triggerTime = GetTime()
Code: Select all
clienttime = RoMScript("GetTime()")
systemtimedifference = some mathmatical thing (clienttime - + * os.Time())
Code: Select all
local time, moreToCome, msg = EventMonitorCheck("GMdetect2", "1")
if msg ~= nil then
if 60 > somemaths(time - + systemtimedifference + - os.Time()) then
-- do stuff.
end
end
Although probably this will be the one and only time it's used. Normally if you want to time something you would use the rombot time functions.lisa wrote:Yeah it's just a theory atm, would need to do some testing to see how posible it is.
The address could work too, wouldn't be so hard to implement into it. Could add in a global in maybe settings with it. So it could be called upon by anything to access the ingame timer.
Code: Select all
D:/micromacro/scripts/rom/classes/player.lua:669: onSkillCast error: [string "..
."]:5: bad argument #1 to 'find' (string expected, got nil)
Code: Select all
<onSkillCast>
repeat
local time, moretocome, msg = EventMonitorCheck("Crush","1")
if string.find(msg, "I'll crush you!") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("away"));
end
until moretocome == false
</onSkillCast>
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 21 --><waypoint x="1658" z="-4960" y="758" tag="teleport">
while not RoMScript("UnitExists('party1')") do
sendMacro('InviteByName("alt_name")'); yrest(1000)
end
EventMonitorStart("Crush","CHAT_MSG_SAY");
</waypoint>
<!-- # 22 --><waypoint x="1696" z="-5162" y="773">
waitForLoadingScreen(10);
if sendMacro("GetCurrentWorldMapID();") == 209 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("teleport"));
end
</waypoint>
<!-- # 1 --><waypoint x="1771" z="2880" y="433"> </waypoint>
<!-- # 2 --><waypoint x="1900" z="2873" y="433"> </waypoint>
<!-- # 3 --><waypoint x="2116" z="2605" y="432">
changeProfileOption("HARVEST_DISTANCE", 80);
yrest(2000);
keyboardPress(key.VK_SPACE);
</waypoint>
<!-- # 4 --><waypoint x="2255" z="2409" y="401"> </waypoint>
<!-- # 5 --><waypoint x="2395" z="2484" y="401" tag="away"> yrest(500) </waypoint>
<!-- # 4 --><waypoint x="2255" z="2409" y="401"> __WPL:setForcedWaypointType("NORMAL"); </waypoint>
<!-- # 6 --><waypoint x="2215" z="2495" y="401"> EventMonitorStop("Crush"); </waypoint>
<!-- # 7 --><waypoint x="1901" z="2870" y="433"> </waypoint>
<!-- # 8 --><waypoint x="1700" z="2885" y="433"> waitForLoadingScreen(10); </waypoint>
</waypoints>
Code: Select all
<onSkillCast>
repeat
local time, moretocome, msg = EventMonitorCheck("Crush","1")
if msg ~= nil then
if string.find(msg, "I'll crush you!") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("away"));
end
end
until moretocome == false
</onSkillCast>
That's because the monitor wont start until you get to the waypoint where it starts but the monitor is checked every time you cast a skill.wizzyslo wrote:If i add I get only spamming on chat: "Cannot get log event for monitor 'Crush'. No such monitor name exists." nothing else. Somehow it doesnt start monitor.
Does it keep doing the error or only just at the start? Because I think the bot applies buffs before going to the first waypoint so you will always get that message after the initial buff casts.wizzyslo wrote:It should start it at 1st waypoint ( # 21) after making party.
I added it at 2nd, 3rd waypoint but dont help. Only if i write it wrong.
Code: Select all
<onSkillCast>
-- if target.Name = "boss guy" then
repeat
local time, moretocome, msg = EventMonitorCheck("Crush","1")
if msg ~= nil then
if string.find(msg, "I'll crush you!") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("away"));
end
end
until moretocome == false
-- end
</onSkillCast>
Code: Select all
<onSkillCast>
local target = player:getTarget();
if target and target.Name = "bossguy" then
printf("targeting mad mallen\n")
repeat
local time, moretocome, msg = EventMonitorCheck("Crush","1")
if msg ~= nil then
if string.find(msg, "I'll crush you!") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("away"));
end
end
until moretocome == false
else
printf("Using skill but not targeting mad mullen or the name is incorrect.\n")
end
</onSkillCast>
Code: Select all
memoryReadDoublePtr(getProc(),0x00606FF2,0)
Users browsing this forum: No registered users and 187 guests