Page 1 of 1

StaticPopup for accepting quests

Posted: Mon Jul 11, 2011 3:33 am
by stessiberti
Hi there again

atm i m wondering a bit about StaticPopup function .

my problem is that there are from time to time quests hidden in items , means

1) you need to loot the item == solved
2) use item in your bagback == solved
3) but when you use the item , ther appears a popupmenue , where you need to hit accept quest

and this is exactly the step where i am stuck atm == NOT solved


what i tried so far

1)

Code: Select all

sendMacro("StaticPopup_OnClick(StaticPopup1, 1);");
seems not to work as there is jetz a 0/1 choice , so yes and no , but now accept function


2)

Code: Select all

sendMacro("AcceptQuest()");
guess this is not working as its an popup





got no clue how to get over this maybe some got an idea

greets

Re: StaticPopup for accepting quests

Posted: Mon Jul 11, 2011 3:42 am
by lisa
did you use StaticPopup_Visible to get the name of the window?

The 1 or 2 option is purely to accept or cancel.

You will need to get the name of the window in order to accept it.

Just been testing this and to equip an item that will become bound this works for me.

Code: Select all

RoMScript("StaticPopup_OnClick(StaticPopup1, 1);")
or just try it in game

Code: Select all

/script StaticPopup_OnClick(StaticPopup1, 1)

Re: StaticPopup for accepting quests

Posted: Mon Jul 11, 2011 4:31 am
by stessiberti
hmm i tried you 2 command you posted me , ingame and in a rom script
both don t work !

but i think the problem is on my side as i don t really understand how
StaticPopup_Visible command works

maybe you can help me with that and give me one example plz

Re: StaticPopup for accepting quests

Posted: Mon Jul 11, 2011 4:54 am
by lisa
I didnt use the StaticPopup_Visible.

Purely used the code I posted, the only trouble is that it isn't checking the window is there before doing code, which may or may not be an issue.

Re: StaticPopup for accepting quests

Posted: Thu Jul 14, 2011 1:19 am
by stessiberti
HI there just wanted to say if anyone else needs it i found a way to accept this quest

works with

Code: Select all

RoMScript("AcceptBorderQuest();")
thx for help anyways