Page 1 of 1
targeting Black/Daily Board in Obsidian
Posted: Sun Jun 10, 2012 7:51 am
by rambo66
Hi...
I want to write a TQ Script to get the TQ's for the second class..
i tried to find something in here... and also tried some stuff like
player:target_Object("Schwarzes Brett der Obsidianfeste"); sendMacro("ChoiceOption(2);")
but without any success,
can someone please tell me how to get the dialog of the daily Board ins the Obsidian (hmm whats the english name.. ? )
thx,
ram
Re: targeting Black/Daily Board in Obsidian
Posted: Sun Jun 10, 2012 8:47 am
by lisa
--=== Moved ===--
This is what I used to use in Logar, hope it helps
Code: Select all
player:target_NPC("Logar Bulletin Board");
sendMacro("OnClick_QuestListButton(1, 4)"); yrest(2000);
sendMacro("AcceptQuest()"); yrest(2000);
sendMacro("OnClick_QuestListButton(1, 4)")
the number 1 indicates quests available
the number 4 is for quest number 4 of the available quests, as indicated by the 1.
I am pretty sure Rock has implemented a function for doing this though.
Re: targeting Black/Daily Board in Obsidian
Posted: Sun Jun 10, 2012 9:56 am
by rock5
Yeah,
and
Code: Select all
CompleteQuestByName(_name, _rewardnumberorname)
are part of the bot now.
Also,
Code: Select all
AcceptAllQuests()
CompleteAllQuests()
CancelQuest(nameorid)
Re: targeting Black/Daily Board in Obsidian
Posted: Sun Jun 10, 2012 5:37 pm
by Ego95
rambo66 wrote:player:target_Object("Schwarzes Brett der Obsidianfeste"); sendMacro("ChoiceOption(2);")
Like lisa posted your mistake is the "target_Object", I think. I'm not sure, because I'm a beginner, too, but "target_Object" is only used if it's really an object and you get such a gear wheel (don't know how you call it) when you put your curser on it. "target_Player" if you get a speech bubble like when you talk to a NPC. With "target_Player" it should work

Re: targeting Black/Daily Board in Obsidian
Posted: Sun Jun 10, 2012 9:41 pm
by lisa
I think you mean "player:target_NPC" but yes that is what I meant to point out =)
Re: targeting Black/Daily Board in Obsidian
Posted: Sun Jun 10, 2012 9:58 pm
by rock5
They should thoeretically both work. They do basically the same thing, click something. "target_object" just has those options to deal with collecting multiple objects and collecting multiple times and checking for casting bar. Whereas "target_NPC" just clicks the target as it doesn't need all that stuff.
Re: targeting Black/Daily Board in Obsidian
Posted: Mon Jun 11, 2012 8:36 am
by rambo66
I made a small xml file...
but seems that I'm not able to "contact" the board, no dialog is opening...
Code: Select all
<!-- # 2 --> <waypoint x="-23154" z="4525" y="-260"> </waypoint>
player:target_NPC("Schwarzes Brett der Obsidianfeste");
sendMacro("OnClick_QuestListButton(1, 4)"); yrest(2000);
sendMacro("AcceptQuest()"); yrest(2000);
Is it important to have the board name in german language ? What is it called in english ? "Obsidian Stronghold Bulletin Board" ?
does this board have an id ? like i read this:
player:harvest(110584) <!--logar board ID -->
thx...
ram
Re: targeting Black/Daily Board in Obsidian
Posted: Mon Jun 11, 2012 9:12 am
by Andreas_B
rambo66 wrote:
does this board have an id ?
110806
Your code must be within the waypoint, not after it ...
Code: Select all
<!-- # 2 --> <waypoint x="-23154" z="4525" y="-260">
player:target_Object(110806, 500);
sendMacro("OnClick_QuestListButton(1, 4)"); yrest(2000);
sendMacro("AcceptQuest()"); yrest(2000);
</waypoint>
Re: targeting Black/Daily Board in Obsidian
Posted: Tue Jun 12, 2012 10:02 am
by rambo66
thx...
i think my main reason was to put all these stuff in the wayoint..
thx for you help
