Quest rufen in python

08/26/2014 12:07 Andariel666#1
Hallo,

Ich möchte es fragen, ob es möglich ist, dass ein Quest im Spiel per python bot rufen?
Es gib ein NPC und 2 quest bei ihm. Ich möchte das erste quest nutzen mit dem Bot.
Gibt es einen Befehl, womit ich das Quest rufen kann? Ich werde neben dem NPC stehen.
(Vielleicht net.SendOnClickPacket() :confused: ?)
Vielen Dank im Voraus!
08/26/2014 16:21 [uLow]Beni#2
U are right SendOnClickPacket and event.. Im not sure event.XX?
08/26/2014 18:20 Andariel666#3
Quote:
Originally Posted by [uLow]Beni View Post
U are right SendOnClickPacket and event.. Im not sure event.XX?
Thank you. Finally I have found a command, which seems to be good:
event.QuestButtonClick

Right, it's really in the event module. I will try to write a code with them.
08/26/2014 20:00 terron#4
Quote:
Originally Posted by Andariel666 View Post
Thank you. Finally I have found a command, which seems to be good:
event.QuestButtonClick

Right, it's really in the event module. I will try to write a code with them.
You're right, you can find how to use manual here: [Only registered and activated users can see links. Click Here To Register...]
08/27/2014 13:10 Andariel666#5
I still don't know, how to use:
Code:
event.QuestButtonClick()
The net.SendOnClickPacket(VID) works perfectly, it can opens the NPC from far away, when it is designated. Then it opens the quest list. There is two option and a close button. I would like to click on the first with the event.QuestButtonClick(quest_index).

But how can I found out what is the quest index? Is there any command to get the index of a quest?
08/27/2014 16:15 terron#6
Use a q.getcurrentquestindex() function in your quest or catch up your quests to the top of your quest_list.

08/27/2014 19:17 Andariel666#7
Thank you, but I can't see the quest list, because this isn't my server.
I am programming a hack and I need that for a hack function. So I have no idea how to find it out. :(



Any idea?
09/02/2014 21:23 Andariel666#8
Is there any solution to click on the target option in a quest window?
09/02/2014 21:43 noahrmal#9
event.SelectAnswer(1, x)

x = 0 -> first quest
x = 1 -> second quest
[...]
09/06/2014 12:04 Andariel666#10
Quote:
Originally Posted by 123klo View Post
event.SelectAnswer(1, x)

x = 0 -> first quest
x = 1 -> second quest
[...]
Thank you very much, it works well.! :)

I have one more problem. I can't anyway close the quest window.
I tried to select the last option (close), or event.Destroy and some others.
But without succes.... Where is the problem?
Thank you.
09/06/2014 19:30 Eigenartig#11
Quote:
Originally Posted by Andariel666 View Post
Thank you very much, it works well.! :)

I have one more problem. I can't anyway close the quest window.
I tried to select the last option (close), or event.Destroy and some others.
But without succes.... Where is the problem?
Thank you.
You should hook quest windows

f.e
Code:
http://pastebin.com/uEsqfFut