ScriptUO

Ultima Online Fan Board => UO Professions - Non-traditional => Player vs. Player => Topic started by: drayghon on February 21, 2011, 03:29:50 PM

Title: Nametag puller script
Post by: drayghon on February 21, 2011, 03:29:50 PM
Hi all I was curious if there was a auto tag puller script out there vs reds I am having great difficulty snatching the tag as they usually run very fast and w/o the tags i'm like a fish outa water and if there isn't one may i suggest it be created :) thx
Title: Re: Nametag puller script
Post by: TrailMyx on February 21, 2011, 03:51:27 PM
EasyUO still has a problem pulling the player gumps.  I'm not sure if this was a feature that was added to OEUO, however.

It actually takes using the mouse and calculating the characters position on the screen, and clicking with the mouse.  So for scripts, this is basically impossible.

People have been asking for this feature forever.
Title: Re: Nametag puller script
Post by: drayghon on February 21, 2011, 03:59:02 PM
okay thank you very much at least now i can stop scanning all the scripts that might do it and don't lol
Title: Re: Nametag puller script
Post by: TrailMyx on February 21, 2011, 05:05:52 PM
I did one for my taming healer, but it was really hard to find the correct(and stable) click positions to perform the necessary pull.  I can't imagine trying that while on the run perusing a fleeing red (or fleeing yourself)
Title: Re: Nametag puller script
Post by: gimlet on February 21, 2011, 07:12:49 PM
Pretend I didn't say this but it is a feature of the enhanced client.
Title: Re: Nametag puller script
Post by: TrailMyx on February 21, 2011, 07:21:48 PM
Pretend I didn't say this but it is a feature of the enhanced client.

Lol, you're gonna have to do a whole lot better to get me to play that POS.  ;)
Title: Re: Nametag puller script
Post by: Scrripty on February 21, 2011, 08:17:03 PM
openEUO has a very nice feature that makes this extremely simple... :)
Title: Re: Nametag puller script
Post by: Alpha on February 21, 2011, 10:06:39 PM
Couldn't you have the script generate the players paperdoll & use an appropriate offset click to get the status bar?  Or perhaps exevent popup and select paperdoll fromt he context menu, but that's the whole clicking a moving target thing over again I think.
Title: Re: Nametag puller script
Post by: TrailMyx on February 21, 2011, 10:50:55 PM
It's certainly possible with EUO, but not that practical when you are trying to run for you life or peruse someone to their death.  But that suggestion is probably about the best way to do it.  You could almost CONTPOS the paperdoll off the screen and click appropriately so it would "seem" like you were able to drag the gump.  Dunno how that would work in practice.
Title: Re: Nametag puller script
Post by: manwinc on February 21, 2011, 11:36:28 PM
Open Paperdoll, Locate Position, Set a position to close it, Click the Open Status Bar button, move status bar to desired location, Click the close position for the paperdoll, Should only take 1s
Title: Re: Nametag puller script
Post by: TrailMyx on February 21, 2011, 11:45:27 PM
Here's one I quickly came up with:

Code: [Select]
set %paperdollx 1074
set %paperdolly 0
set %nextx 0
set %nexty 540
set #LPC 100
set %width 6
repeat
  finditem HS_IS_AV_XU_NCB G
  if #FINDCNT > 0 && #FINDID <> #CHARID
  {
    if #FINDID <> #CHARID
    {
      event property #FINDID
      if #FINDREP <> 7
      {
        set #LOBJECTID #FINDID
        set #NEXTCPOSX %paperdollx
        set #NEXTCPOSY %paperdolly
        event macro 17 0
        gosub GumpWait paperdoll_gump paperdoll_gump
        gosub OffsetClick 215 243
        gosub GumpWait status_gump status_gump
        contpos %nextx %nexty
        set %nextx %nextx + 156
        if %nextx >= %width * 156
        {
          set %nextx 0
          set %nexty %nexty + 62
        }
      }
    }
    ignoreitem #FINDID
  }
until #FALSE


;-------------------------------------------------------------------------------
sub OffsetClick
  set %tempx %1 + #CONTPOSX
  set %tempy %2 + #CONTPOSY
  click %tempx %tempy f
return
;-------------------------------------------------------------------------------
; %1 = Gumpname 1
; %2 = Gumpname 2
sub GumpWait
  wait 10
  set %timedelay #SCNT
  repeat
    if #CONTNAME = %1 || #CONTNAME = %2
      return
  until #SCNT > %timedelay + 7
return
Title: Re: Nametag puller script
Post by: Scrripty on February 22, 2011, 12:07:12 AM
EUO is very capable of doing this, extremely fast, AND on the run, and in only a few lines of code. :)  I just wish I could remember how...  Sorry, I forgot.
Title: Re: Nametag puller script
Post by: Endless Night on February 22, 2011, 10:02:06 AM
can always use the new targeting system
Title: Re: Nametag puller script
Post by: Scrripty on February 22, 2011, 10:09:22 AM
can always use the new targeting system

Oh yea, that could be it.  :)