Page 1 of 1

quest / NPC issue

Posted: Thu Jun 14, 2012 5:04 am
by rambo66
Hi...

I have a small problem, trying to get the right code.. but till now not successfull..

Code: Select all

		<waypoint x="31845" z="4588">	
			player:target_NPC("xyz");
			sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
			sendMacro("CompleteQuest()"); yrest(2000);
The dialog opens, but then nothing is selected.
The dialog is 2x clicking the first/uppest button..

Can someone give me please a hint... ;)

thx

Re: quest / NPC issue

Posted: Thu Jun 14, 2012 5:15 am
by lisa
There is a function included in bot to do all the work for you.

Code: Select all

AcceptQuestByName(_name)
and

Code: Select all

CompleteQuestByName(_name, _rewardnumberorname)
are part of the bot now.

Also,

Code: Select all

AcceptAllQuests()
CompleteAllQuests()
CancelQuest(nameorid)

Code: Select all


      <waypoint x="31845" z="4588">   
         player:target_NPC("xyz");
CompleteAllQuests()
That will probably do the trick.

--=== Edit ===--
I copy, pasted it from a post Rock made just yesterday in another topic of yours, does it not work for you???

Re: quest / NPC issue

Posted: Thu Jun 14, 2012 9:18 am
by rambo66
hi Lisa,

thx,

ohha... sorry seems i was to fixed at adressing the board first.. thx

Re: quest / NPC issue

Posted: Thu Jun 14, 2012 3:55 pm
by Ego95
It's part of the bot now? So I don't need the userfunction_QuestByName anymore?

Re: quest / NPC issue

Posted: Thu Jun 14, 2012 6:57 pm
by lisa
AlterEgo95 wrote:It's part of the bot now? So I don't need the userfunction_QuestByName anymore?
Correct, the function that is part of the bot is also much more improved on the old userfunction.

Re: quest / NPC issue

Posted: Thu Jun 14, 2012 8:21 pm
by Ego95
lisa wrote:Correct, the function that is part of the bot is also much more improved on the old userfunction.
Ok, thanks. Then I can delete the old userfunction.
I'll take a look at the integrated new one :-)

Re: quest / NPC issue

Posted: Fri Jun 22, 2012 10:54 am
by Uniden65
rambo66 how did u fix the Emptu dialog window issue?

Re: quest / NPC issue

Posted: Fri Jun 22, 2012 11:05 am
by rambo66
hi..
I'm not sure what you are asking..
at the moment I'm "contacting" the npc standing next to the board

Re: quest / NPC issue

Posted: Fri Jun 22, 2012 1:29 pm
by Uniden65
every time i try to pick up a quest u get

http://imageshack.us/photo/my-images/99/bugio.jpg/

Image


i get this every time with NOthing in it ...have tryed many different ways of setting it up


it should open like this

Image

Re: quest / NPC issue

Posted: Fri Jun 22, 2012 2:49 pm
by rambo66
I#M doing it now like this:

Code: Select all

	<waypoint x="2" z="2" y="2">		
	  player:target_NPC("Tagesquest-Verwalter");            <!-- accept TQ's -->
	  AcceptAllQuests();
	</waypoint>
              .....
        <waypoint x="3" z="3" y="3">		
	player:target_NPC("Ab");					<!-- finish TQ's  -->
	CompleteAllQuests();
	</waypoint>
And works fine.. ;) thx Lisa & Rock