ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: xeres on October 21, 2013, 05:25:03 PM
-
so I'm in the process of renewing a personal use script but I've hit a wall here. Its a highly modified ML quester script with LOTs of options, but the issue I'm having is the free server I'm on is having both a paperdoll of the NPC and the ML quest gump open. of course the paperdoll open after the ML gump, so it has container focus and has to be dealt with...
I've tried just doing a quick check on #contname = paperdoll_gump and then right clicking it to clear the gump, but that is seemingly not going to work for some reason. it just gets stuck in my goto loop trying to right click it....which is utterly baffling as I've never had a click function not work like that....
is there a way to muck about between open gumps to find the right one?
code snippet....
getquestgump:
set #nextcposx 0
set #nextcposy 0
set #lObjectID %questnpcID
wait 30
event Macro 17
wait 30
gumpcheck:
if #contname = paperdoll_gump
{
click #contposx + 79 #contposy + 290 r
goto gumpcheck
}
wait 30
if #contname <> generic_gump && #CONTSIZE = 507_496
goto getquestgump
contpos 0 0
-
so i figured out why my click wasn't working....doesn't like changing the coords on the fly like that....changed it to click some vars and it works now....
but my question about gump focus still stands :)
this is more standard anyways...
set %clickx #contposx + 134
set %clicky #contposy + 35
click %clickx %clicky r
-
EUO doesnt support arithmetic on parameters passed as you have discovered. All math must be done on a "set" line.
As to gump focus .. thier is no way in EUO to switch to a specific gump. If you want that feature use OpenEUO or stealth.
But you can just reopen the gump that will bring it back into focus.. if its a paperdoll then that is very practical. If its something else before switching forcus you can record its position and then click on it when needed that will refocus it (presuming its still thier and is not covered)