Page 2 of 2

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Mon Jul 15, 2013 6:58 am
by Aron
The daily quest from Anthony Taz in Ancient Kingdom of Rorazan is where I do the dailies.
The waypoint #1 code is just a waypoint I inserted to stand still near the NPC Anthony Taz. To complete and accept quests I use the macro which vegasmike posted some time ago. And I inserted the yrests in that macro now, and its working alot better now.

Here is the code of the macro.

Code: Select all

/script TargetUnit("focus1")
/yrest 1500
/script UseAction(1)
/yrest 1500
/script ChoiceOption(1)
/yrest 1500
/script TargetNearestEnemy()
/yrest 1500
/run KillSequence("","2")()
The macro accepts the quest, speaks to Anthony Taz again to spawn a mob, targets the mob and kills it with DIYCE, which cant be anything from melee to ranged, in my case ranged.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Mon Jul 15, 2013 10:00 am
by rock5
I see, so while the waypoint is running you are pressing the macro? I'd say the waypoint targeting the npc would interfere with the macro. I would add a check in the waypoint to do nothing until the quest is complete instead of what it does now which is continuously target the npc and try to complete the quest. The code, as it's written now, is ideal for a normal waypoint file but for how you want to use it it should have an extra check.

Try adding this to the end of the waypoint

Code: Select all

     while getQuestStatus(questName) == "incomplete" do yrest(1000) end
I was going to use an 'if' statement but then it would still be continuously going to the waypoint which might interfere with the macro as well. The above macro will make sure it does absolutely nothing while you are using the macro.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Mon Jul 15, 2013 4:36 pm
by Aron
I am not pressing anything manually if the bot is working. Now it doesnt work at all. I did my dailies 10/10, left the char close to the NPC and had the NPC in focus (the macro requires that). Started the bot, and the bot doesnt even check if I done the dailies or not, it just tries to cast Shot and failes, and when it failed a couple of times the char starts to move and runs straight into the wall.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-18351" z="-22685" y="469">	</waypoint>
	
	<!-- #  1 --><waypoint x="-18351" z="469">         
      player:target_NPC(questGiverId);
      CompleteQuestByName(questName);
      
      local dqCount, dqPerDay = RoMScript("Daily_count()");
      if dqCount ~= 10 then
         AcceptQuestByName(questName);
      else
         inventory:update();
         player:update();
         if inventory:itemTotalCount(dailyTicket) > 0 then
            inventory:useItem(dailyTicket);
            yrest(2000)
            AcceptQuestByName(questName);         
         else
            player:sleep();
         end
      end
      yrest(10000)
	  while getQuestStatus(questName) == "incomplete" do yrest(1000) 
end
   </waypoint>
	
</waypoints>

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 1:27 am
by rock5
Maybe it's trying to attack something. Does the mm output reflect this? Try making the waypoint type 'travel'.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
Edit: If all you are using the bot for is turning in the dailies it might be easier to get the "dailynotes" addon.
http://www.curse.com/addons/rom/dailynotes
It can be set to automatically accept and complete quests when you click on npcs. So what you would do is just click-click-click-click-click-click-click until it's finished.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 1:32 am
by lisa
Is there more to the WP because it is trying to use variables that arn't defined?

Code: Select all

player:target_NPC(questGiverId);
      CompleteQuestByName(questName);
Also a huge gap between the 2 waypoints

Code: Select all

 <!-- #  1 --><waypoint x="-18351" z="-22685" y="469">   </waypoint>
   
   <!-- #  1 --><waypoint x="-18351" z="469">  
Copy/paste issue or typo?

Code: Select all

   while getQuestStatus(questName) == "incomplete" do yrest(1000) 
end
That will basically sit there forever waiting for the quest to be complete, so it means you need to be actually doing something to complete quest.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 1:58 am
by rock5
lisa wrote:Is there more to the WP because it is trying to use variables that arn't defined?

Code: Select all

player:target_NPC(questGiverId);
      CompleteQuestByName(questName);
I think at some point I convinced myself that there was more to the file or the variable was set somewhere else, but considering it again I think you're right, he may actually be using empty variables instead of the quest names.
lisa wrote:Also a huge gap between the 2 waypoints
I didn't notice that. Well that would explain why it's trying to run through a wall.
lisa wrote:Copy/paste issue or typo?

Code: Select all

   while getQuestStatus(questName) == "incomplete" do yrest(1000)
end
That will basically sit there forever waiting for the quest to be complete, so it means you need to be actually doing something to complete quest.
That's what I told him to add when I thought he was using the macro while the bot was running. Seeing as he isn't doing that he shouldn't have added it.

But I think DailyNotes is the right solution if all the bot does is turn in the quests.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 5:59 am
by Aron
Sorry I forgot to mention that, I am using DailyNotes too. Should I try doing this without the macro or? But then I will lose some speed in it.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 6:32 am
by rock5
DailyNotes is not going to do the quest for you. Use the macro to do the quest and Daily notes to turn in the quests.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 6:35 am
by Aron
Thats what I am using right now, but it still doesnt work. The DailyNotes are handing in and accepting the quest while the macro is doing the quest.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 12:03 pm
by rock5
LoL.

I guess that means you would have to disable DN while using the macro. That adds a bit more complexity but it's still easy. Just make a macro with

Code: Select all

/dn
in it and place it on your actionbar or use the addonmanager button if you are using addonmanager. Then click it, un-tick your quest and go use your macro. When you are ready to turn in the quest click the button again, tick the quest then click-click-click-click-click-click-click-click-click-click-click-click-click-click the npc.

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Tue Jul 16, 2013 6:22 pm
by lolita
while server was online today, i looked at this Quest, ad here is what i found

Code: Select all

quest giver npc id: 119856
id of mob's spawned by npc: 106474,106475,106476
quest ID: 425124
so quest work like this:
1.accept quest
2. talk with npc to spawn one of 3 mob's from above
3. mob spawn for only 3-4 seconds
4. mob have only 4k or 5k Hp, if you kill it quest is complete, else you must talk with npc to spawn another one

so i guest he useing diyce (do it yourself combat engine addon) cose it take to long for bot to target mob and kill it, mob disapire before that. Diyce target mob and kill it really fast
player profile should be set to use only instant skills, or use diyce addon like he intended
unfortunately i cant test it now, cose server is offline :(
ill post my version when i test it

Re: Anthony Taz Daily Quest in Rorazan: Demonstration Battle

Posted: Sat Jul 20, 2013 2:51 pm
by lolita
you can download my version of file here
report any bugs