DOD exit load screen problem

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

DOD exit load screen problem

#1 Post by 883Dman »

This is the biggest frustration I am having with my DOD script. The problem is the bot not recognizing that it has entered or exited (most often on exit) and continues to run to the next dungeon waypoint while having already exited into the sewers. The bot then runs to the end of the hall until reaching the wall. This is fairly frequent. Is there a way to have the bot occasionally verify its position relative to the waypoint it is trying to reach? Some sort of check that says "oh, I'm here not here so I'll go ahead and run to the nearest waypoint of my current position".

The other problem is the disappearing exit portal but nothing we can do about that. Thanks.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: DOD exit load screen problem

#2 Post by rock5 »

You probably just need to add a pause after transporting and then do a player:update().
  • 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
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: DOD exit load screen problem

#3 Post by 883Dman »

Ah, playerupdate. I knew it wouldbe simple. I did put (20) in the waitforloadscreen, but that didn't do anything. How do I add a pause to the load screen?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: DOD exit load screen problem

#4 Post by rock5 »

You can't make waitForLoadingScreen wait extra. The number you give waitForLoadingScreen is the maximum time it should wait for the loading screen. Once the loading screen appears, it just waits for it to disappear then returns control. It does wait a couple of seconds and then do a playerupdate before returning control but for some systems/servers it's not enough so you have to do an extra wait and update. eg.

Code: Select all

waitForLoadingScreen(20)
rest(3000)
player:update()
Note, I use rest in this case because yrest 'yields' to other threads, such as the gmmonitor userfunction, and you don't want other code running if the game hasn't fully loaded yet.

Also, make sure you aren't still using revision 758 as I temporarily tried removing the player:update() from waitForLoadingScreen. It was restored in 759.
  • 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
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: DOD exit load screen problem

#5 Post by 883Dman »

Ah, I had yrest in there. maybe that's why it's not working. Thanks.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: DOD exit load screen problem

#6 Post by rock5 »

883Dman wrote:Ah, I had yrest in there. maybe that's why it's not working. Thanks.
I doubt it. Typically something yielded to might cause an error but if it doesn't error then doing a player:update() after a sufficient pause should fix the player coords and it should work correctly. Maybe there is something wrong with the code in general, that you use to portal. If it still happens it might help to see your porting code. Or maybe you could just use the 'travelTo' userfunction to get to Dod.
  • 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