how connect Phyton->Quest

01/26/2015 01:36 RafaVK#1
I need connect execute a quest from phyton.

I am using:

import event
event.QuestButtonClick(1)

But I have a problem that is.. I don't have index of the quest I have a name.
test.quest
the content of the quest is:

quest test begin
state start begin
when login begin
set_state(open )
end
end
state open begin
when button begin
chat("I am here!!")
end
end
end

when I used the index of the quest (1 because is in first row of locale_list) everything work fine. But... I think all the time index of the quest will not be 1. If for some reason the change of position on the list would not work. I tried to find the index of the quest with the name of it but I could not.

I tried using this:

import event
import quest
event.QuestButtonClick(quest.GetQuestIndex("test.q uest"))
but does not work and get this error....

SYSERR: Jan 25 23:53:02 :: OnInfo: QUEST no quest by (quest 2147483647)


any ideas or help?
01/26/2015 02:52 DEMONKING.#2
first of all, this is the wrong section
u have to put ur thread here :
[Only registered and activated users can see links. Click Here To Register...]

second :
take a look at this , it might help you : [Only registered and activated users can see links. Click Here To Register...]

>>>>>>>>
event.QuestButtonClick(quest.GetQuestIndex("test.q uest"))
mmmmm....
y don't u just do that :

questindex = 20
event.QuestButtonClick(questindex)

so no need for the name of quest or anything like this :)
01/26/2015 10:48 Crvena#3
try this
01/26/2015 12:35 #dynastie#4
Look here: [Only registered and activated users can see links. Click Here To Register...]
01/27/2015 20:47 .aNNdii##5
#moved