Page 1 of 1

Problems with AcceptBorderQuest()

Posted: Wed Apr 24, 2013 9:26 pm
by Romplayer
Hi i'm doing a quest which requires me to

Code: Select all

inventory:useItem(241329)
	yrest(2000)
	RoMScript('AcceptBorderQuest()')
	yrest(2000)
	player:target_NPC("Kelod Kallol");
	CompleteQuestByName()	
	yrest(1000)
	repeat
	inventory:useItem(241329)
	RoMScript('AcceptBorderQuest()')
	player:target_NPC("Kelod Kallol");
	CompleteQuestByName()	
	yrest(1500)
	until RoMScript('TBGet()') == 0
	end
The problem is that the first time it kinda bugs. It will leave the dialogue box open which messes up the process of accepting the quest repeatly for the first time. Sometimes it will be fine but some times it leave the box open so only one quest can be completed but it will continue to "use item" but quest will not be accepted. I found a solution to the problem but I must manuallly close the dialoge box that stayed open and then it proceeds to work the rest of the time. Is there a code I can use to make sure all dialogue boxes have been closed the first round so it can continue to repeat?

Re: Problems with AcceptBorderQuest()

Posted: Thu Apr 25, 2013 12:37 am
by Romplayer
n/m i searched the forums and found a solution

you can delete this post.

Re: Problems with AcceptBorderQuest()

Posted: Thu Apr 25, 2013 11:19 am
by Jig
Can you share your solution, please?

Edit:

You can use

Code: Select all

		sendMacro("ChoiceOption(1or2or3or4);");
to close the window :)

Re: Problems with AcceptBorderQuest()

Posted: Thu Apr 25, 2013 5:22 pm
by Romplayer

Code: Select all

RoMScript("ScriptBorder:Hide()")
that will close the window for sure

Re: Problems with AcceptBorderQuest()

Posted: Fri Apr 26, 2013 7:05 am
by Jig
thank you very much - that is a better solution.