Page 1 of 1

Setting Camera Position - Daily Quests Made Easy

Posted: Wed Sep 16, 2009 9:18 am
by FactorY
You ever wished you were able to fully automate your alts to hand in dailies for you?
Well I've got a solution for you

As many of you who have already discovered, rombot tends to change the camera position,angle and zoom as you walk around.
This makes clicking on the daily board a hellish experience as you have to spam the mouseclickR/L like crazy in hope that one will hit.

So I propose you use the following steps to make this job easier:
1. Copy and Paste the following into a Macro

Code: Select all

 /run a,b,c=GetCameraPosition(); DEFAULT_CHAT_FRAME:AddMessage(a); DEFAULT_CHAT_FRAME:AddMessage(b); DEFAULT_CHAT_FRAME:AddMessage(c); 
2. Stand infront of the daily board or w.e you want to click, and move your camera till you get your desired position
3. Execute the macro - (3 numbers will show up in your General Chat tab. Copy these down)
4. Make another macro and paste the following

Code: Select all

/script SetCameraPosition(FIRST NUMBER,SECOND NUMBER,THIRD NUMBER);
5. Chuck that macro onto your skills bar
6. Now goto your daily run waypoints file and get it to execute the macro when at the dialy board


eg. (DONT COPY THIS, IT IS PURELY RANDOM STUFF I MADE UP)

Code: Select all

<waypoints type="TRAVEL" >
	<!-- # 1 --><waypoint x="5529" z="-4428">   	<!--AT DAILY BOARD-->
                for i=0,10 do             
			keyboardPress(key.VK_1);		<!--ASSUMING YOUR MACRO IS AT 1-->
			player:mouseclickR(450, 159, 800, 600);	<!--CLICK ON DAILY BOARD-->
			yrest(1000);				<!--WAIT 1 SECOND-->
			player:mouseclickL(450, 159, 800, 600);	<!--CLICK ON QUEST-->
		end
	</waypoint>

	<!-- # 2 --><waypoint x="5523" z="-4371">	<!--DAILY RECIEVER NPC-->
		player:target_NPC("DAILY NPC");		<!--TALK TO NPC-->
		yrest(1000);				<!--WAIT 1 SECOND-->
		player:mouseclickL(450, 159, 800, 600);	<!--QUEST DIALGUE CLICK IF NECESSARY-->
	</waypoint>
</waypoints>


One question I got is.. If I use the variable i in the for loop as I did, will it affect anything in the other functions?
should I declare another variable? and if so how do it do that


Hope this helps

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Wed Sep 16, 2009 10:11 am
by Administrator
Good post. No, using 'i' in your for loop shouldn't cause any problems. However, you could make it local just to make sure:

Code: Select all

local i;
for i = 1,10 do
...

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Wed Sep 16, 2009 2:35 pm
by GurdyMan
I simply use

Code: Select all

player:scan_for_NPC("Bullet");

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Wed Sep 16, 2009 4:07 pm
by d003232
FactorY wrote:

Code: Select all

/script SetCameraPosition(FIRST NUMBER,SECOND NUMBER,THIRD NUMBER);
Instead of define a new skill and use that by a hotkey, it would now be more easy to use the MACRO function directly in your wayointfile:

Code: Select all

sendMacro("SetCameraPosition(FIRST NUMBER,SECOND NUMBER,THIRD NUMBER);");
or

Code: Select all

RoMScript("SetCameraPosition(FIRST NUMBER,SECOND NUMBER,THIRD NUMBER);");
First function is with a line in the MM window. Second without.

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Thu Sep 17, 2009 12:55 pm
by j_schlott
all these options still require the rom window to be on top for mouseclicks though, right?

is there no way to target the board with commands, and why doesnt the ChoiceOption() function work inside the board quest list, it seems to only work on Merchant NPCs

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Thu Sep 17, 2009 1:18 pm
by Administrator
j_schlott wrote:all these options still require the rom window to be on top for mouseclicks though, right?

is there no way to target the board with commands, and why doesnt the ChoiceOption() function work inside the board quest list, it seems to only work on Merchant NPCs
Nobody really knows. That's something the game developers didn't think of. Good luck trying to ever get them to fix something, though.

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Thu Sep 17, 2009 2:15 pm
by j_schlott
ok hehe, so it isnt just me

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Sat Sep 19, 2009 6:23 am
by d003232
j_schlott wrote:all these options still require the rom window to be on top for mouseclicks though, right?

is there no way to target the board with commands, and why doesnt the ChoiceOption() function work inside the board quest list, it seems to only work on Merchant NPCs
I don't know how to do it at the blackboard at the moment. But I found some more commands to accept and complete quests at 'Speaking' NPC's like NPC Lehman in the classhall:

Code: Select all

/script SpeakFrame_LoadQuestDetail(1);	-- Show quest detail to accept quest
/script SpeakFrame_LoadQuestDetail(2);	-- Show quest detail to complete quest
/script SpeakFrame_AcceptQuest();	-- accept quest while in details
/script AcceptQuest();		-- accept quest while in details
/script CompleteQuest();	-- complete quest while in details
I'm not sure about the right argument. So just try and error. Would need more time and NPCs to test.

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Sat Sep 19, 2009 6:42 am
by d003232
The bulletin board/black board seems also to work with the speakframe.xml/speakframe.lua:

Code: Select all

/script  SpeakFrame:Show();
/script  
SpeakFrame_Show();
/script  SpeakFrame_LoadQuest();
/script SpeakFrame_Clear();
I could it get to acceppt one quest. But there seems to be trouble to acceppt a second quest. It seems something to clear the questdetails from the first quest is missing.

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Thu Sep 24, 2009 9:09 am
by fredgsanford
Hmm if your doing dailies just get dailynotes addon and set it to auto quest and then pick what ones you want it to do and in settings also set to only accept if you have items needed. then all you need to do is get the npc click which i think i read you can scan for npc now so that shold take care of finding and clicking or whatever on him?
New to the bot and have not even used it really but looking around boards etc and looks good and just trying to help.

Dailynotes rocks for doing dailies since you don't have to do anything if you have certain ones set to auto accept and finish with the auto quest feature. just have to get to bulletin board and npc and interact with them.

Re: Setting Camera Position - Daily Quests Made Easy

Posted: Thu Sep 24, 2009 9:32 am
by d003232
fredgsanford wrote:Hmm if your doing dailies just get dailynotes addon and set it to auto quest and then pick what ones you want it to do and in settings also set to only accept if you have items needed. then all you need to do is get the npc click which i think i read you can scan for npc now so that shold take care of finding and clicking or whatever on him?
New to the bot and have not even used it really but looking around boards etc and looks good and just trying to help.

Dailynotes rocks for doing dailies since you don't have to do anything if you have certain ones set to auto accept and finish with the auto quest feature. just have to get to bulletin board and npc and interact with them.
thx for the info. Could be a good source to look for the right RoM API functions to interact with the board.