ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: silath44 on August 04, 2015, 11:54:53 PM

Title: Help with cancelling a quest.
Post by: silath44 on August 04, 2015, 11:54:53 PM
Hey, I am working on a personal script which may go public at some point down the road. I am looking for a way to cancel an active quest. Or all active quests i'm not picky. Thanks in advance.
Title: Re: Help with cancelling a quest.
Post by: The Ghost on August 05, 2015, 05:24:01 AM
The quest are no specific order,    if your quest to cancel is always  in the same location, u can you might be able to open the quest log and size gump and XY location of cancel. 
Title: Re: Help with cancelling a quest.
Post by: silath44 on August 05, 2015, 08:07:23 AM
Is that reliable? IE if I change my uo window size, or if I run the script on a different computer will it still cancel properly?
Title: Re: Help with cancelling a quest.
Post by: The Ghost on August 05, 2015, 08:24:19 AM
if you use gump name and size,  it will work across PC, that how most of the script are build.    ie, crafting.   Not sure if you can even pop the quest log
Title: Re: Help with cancelling a quest.
Post by: Endless Night on August 05, 2015, 10:06:29 AM
Two ways To open Quest log ...   

(1)  Open paper doll,  select Quests
(2)  event macro  8 19    (http://wiki.easyuo.com/index.php/Event_Macro)

Number 2 is far easier,
Title: Re: Help with cancelling a quest.
Post by: silath44 on August 05, 2015, 05:46:16 PM
Thank you for your help guys I think I can work it from here! If you think of anything I might run into that's tricky involving this ill keep checking for a few more days.
Title: Re: Help with cancelling a quest.
Post by: silath44 on August 05, 2015, 08:44:34 PM
Just in case anyone needs this for the future, this is working for me.

Code: [Select]
Sub QuestClear
event macro 8 19 ; Open Quest log
wait 20
contpos 0 0
wait 5
click 378 150
wait 5
click 195 485
wait 5
click 300 230
return
Title: Re: Help with cancelling a quest.
Post by: Endless Night on August 05, 2015, 09:47:45 PM
nice work.