Page 1 of 1

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

Posted: Wed Dec 16, 2009 7:03 pm
by aardkaz
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?

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

Posted: Wed Dec 16, 2009 7:10 pm
by Administrator
Change that code to:

Code: Select all

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

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

Posted: Wed Dec 16, 2009 7:18 pm
by aardkaz
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