Latest Bot revision 758 causes issues

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Latest Bot revision 758 causes issues

#1 Post by Cindy » Tue Jun 11, 2013 2:51 pm

Since updating to latest rev, I have had failures consistently with the Miller farm waypoint file (i do it for the golden egg) and the AT waypoint file. Specifically, upon entry,

Code: Select all

	local zoneid = RoMScript("GetZoneID()")
	print(zoneid)
	if zoneid ~= 304 then -- not at Miller's Ranch
		-- Try to find Sorrun and teleport in
		if player:target_NPC("Sorrun") then
			sendMacro("ChoiceOption(3)") yrest(1500)
			sendMacro("ChoiceOption(1)") yrest(1500)
			waitForLoadingScreen(20000)
			yrest(3500)
			-- __WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X,player.Z))
		else
			error("You are too far from Miller's Ranch")
		end
	end
now fails, in that it always decides waypoint 6 is the nearest, and runs to collect the bags without having picked up the quest. (Note i increased/added yrest values, and finally disabled the line that picks the waypoint based on position).

In the AT script, I actually got inside all the way to the center place without any npcs/towers/chest being summoned, I suspect it is a similar timing type issue that causes this. On my backup computer, the exact same waypoints, and exact same game version work fine, so it is something that changed in the last bot revision that causes the anomaly.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Latest Bot revision 758 causes issues

#2 Post by rock5 » Tue Jun 11, 2013 2:58 pm

I think I might have remove a player:update() in waitForLoadingScreen() because it was sometime causing problems on some servers that need more time to be ready before a player:update() can be done. Just add a player:update() after the waitForLoadingScreen(). See if that fixes it.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Latest Bot revision 758 causes issues

#3 Post by Cindy » Wed Jun 12, 2013 11:17 am

This did not work:

Code: Select all

	local zoneid = RoMScript("GetZoneID()")
	print(zoneid)
	if zoneid ~= 304 then -- not at Miller's Ranch
		-- Try to find Sorrun and teleport in
		if player:target_NPC("Sorrun") then
			sendMacro("ChoiceOption(3)") yrest(1000)
			sendMacro("ChoiceOption(1)")
			waitForLoadingScreen(20);	yrest(1000);   player:update();    yrest(1000)
			printf("x: " ..player.X.."  : "..player.Z)
			__WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X,player.Z))
		else
			error("You are too far from Miller's Ranch")
		end
	end

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Latest Bot revision 758 causes issues

#4 Post by rock5 » Wed Jun 12, 2013 11:36 am

Well the fix worked for me but I think you are right, it's a timing issue. Some servers such as the nexon server (rom4u) have this small time after waitForLoadingScreen has ended that player:update doesn't work. You could try increasing the yrest before the player:update and see if that helps.

Either way I might have a look and see if there is some way I can put the player:update back in waitForLoadingScreen as it seems to be causing a few too many problems. Maybe I can get the bot to ignore errors when player:update runs.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 14 guests