Page 1 of 1

Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 1:17 am
by Thealphabetic
Hello all,

I've just started with micromacro and im trying to make a macro to do the daily quest in Ancient Kingdom. However, i've tried everything to just make a start by accepting the quest and then starting the battle, but it just wont work. Does sum1 know what im doing wrong?

Greetings, Thealphabetic

This is my code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-18351" z="-22687" y="469">	
		player:update();
		player:target_NPC("Anthony Taz");
		yrest(500);
		AcceptQuestByName("Demonstration Battle");
		yrest(2000);
		player:target_NPC("Anthony Taz");
		yrest(500);
		sendMacro("ChoiceOption(1);");
	</waypoint>
</waypoints>

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 6:20 am
by rock5
Firstly, please use

Code: Select all

 tags when pasting code. Just select the code and click the "Code" button at the top of the edit box.

It looks ok. What exactly happens? What doesn't work?

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 6:37 am
by Thealphabetic
Sometimes it fails to accept the quest, but i guess thats standard. But then i cant make Anthony Taz to start the fight. It is like the 2nd talk doesn't work.

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 6:50 am
by rock5
So it does work, it's just that sometimes it fails?

I'm surprised AcceptQuestByName fails as it is a very reliable code. You could make sure you have the quest, eg.

Code: Select all

repeat
    AcceptQuestByName("Demonstration Battle")
    yrest(2000)
until getQuestStatus("Demonstration Battle") ~= "not accepted"
But if there is any situation where it can't accept the quest then it will get stuck in that loop.

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 7:28 am
by Thealphabetic
I guess i said it wrong, sorry for that.

The problem isnt accepting the quest, but making the mob spawn (by talking to the guy). The mob never spawns, i've tried it many many times but it doesnt work and if i try it with a macro i make ingame, then it does work. Do you maybe know why this is?

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 10:13 am
by rock5

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 12:20 pm
by Thealphabetic
Yeah, i've tried that before even trying to make my own. But it wont trigger the mob. I dont know what it is.

Re: Not possible to accept quest and talk to NPC

Posted: Thu Aug 22, 2013 12:33 pm
by rock5
Does it target Taz after accepting the quest? Does a dialog appear? If so, does the dialog look different than when you do it manually?