Feature request, or how to make a change to my own copy.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
aardkaz
Posts: 14
Joined: Thu Dec 10, 2009 1:33 am

Feature request, or how to make a change to my own copy.

#1 Post by aardkaz » Wed Dec 16, 2009 7:03 pm

ok... so sometimes I need to use mouseclickL however I am also tabbed reading in another window, I tracked down this bit of code in player.lua:

Code: Select all

	if( foregroundWindow() ~= getWin() ) then
		cprintf(cli.yellow, language[139]);	-- RoM window has to be in the foreground
		return;
	end
What I would like to do is use something equivalent to:

Code: Select all

 player:sleep();
So that the bot goes into pause mode until I tab back over and resume it. Anyone know what I change I would need to make?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Feature request, or how to make a change to my own copy.

#2 Post by Administrator » Wed Dec 16, 2009 7:10 pm

Change that code to:

Code: Select all

while( foregroundWindow() ~= getWin() ) then
  yrest(100); -- So we don't waste up processor time while waiting
end

aardkaz
Posts: 14
Joined: Thu Dec 10, 2009 1:33 am

Re: Feature request, or how to make a change to my own copy.

#3 Post by aardkaz » Wed Dec 16, 2009 7:18 pm

AWESOME!!! made one quick change, need a "do" instead of a "then" But this works perfectly as I wanted! Thank you!

Main reason I wanted this change was my daily quest waypoint file, does class change to high level, grabs daily quest, then class changes back to turn it in (MORE EXP) and it has to left click on the bulletin board, I've found no other way to interact with bulletin board, its the only mouse click in the whole waypoint file. Well its more convenient for it to pause this way when I finally tab back its not walking back before ive even accepted the quest.

ALSO! HARVESTING! if you get a window pop up like somebody instant messages you or something.... then your bot is running from node to node for possibly hours... but not gathering... I can't really think of much that would like more suspicious than that. LOL!

Code: Select all

while( foregroundWindow() ~= getWin() ) do
  yrest(100); -- So we don't waste up processor time while waiting
end

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest