Suggestion for waitForLoadingScreen function

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Giram
Posts: 191
Joined: Thu Aug 26, 2010 3:34 pm
Location: Finland

Suggestion for waitForLoadingScreen function

#1 Post by Giram »

I have been farming instance for some time now and have noticed that sometimes my alt might disconnect. So when my char is in instance it can't get out cause it is not in party and mobs will spawn back after certain time and kills me. So my temporary solution was logout if we wait more than 180 seconds while waiting loading screen. It could do something else if someone has better solution.

Code: Select all

	local currentTime = os.time();
	-- wait for loading screen to appear
	if memoryReadBytePtr(getProc(), addresses.loadingScreenPtr, addresses.loadingScreen_offset) == 0 then
		repeat
			yrest(1000)
			
			-- Timeout in seconds
			if( os.difftime(os.time(), currentTime) > 180 ) then
				player:logout(false, false);
			end
		
		until memoryReadBytePtr(getProc(), addresses.loadingScreenPtr, addresses.loadingScreen_offset) == 1
	end
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Suggestion for waitForLoadingScreen function

#2 Post by rock5 »

So what you are saying is, if your alt hasn't disconnected, you would leave the party which teleports you out of the instance? Couldn't you just check to see if your alt is still part of the party before leaving it? If the alt has gone then you logout instead.
  • 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