ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: KilroyIsDead on May 01, 2009, 11:31:53 AM

Title: serching for gumps
Post by: KilroyIsDead on May 01, 2009, 11:31:53 AM
Can you search for a container moreover a gump

Can I search or find stuff like bufficons_gump or spellicongump?

Thanks
Title: Re: serching for gumps
Post by: _C2_ on May 01, 2009, 11:34:57 AM
endless nights has a buff bar scanner that is posted at easy uo under josephaj.  it is a sample of how to read the different icons on the buff bar.
Title: Re: serching for gumps
Post by: TrailMyx on May 01, 2009, 11:39:55 AM
You're looking to see if there is a particular gump on the screen?  Unfortunately you can't hunt through gumps on the screen to find ones you might be looking for.  The gumps have to filter through the #CONTID/#CONTNAME variables, and are brought into these variables with by selecting it or it becoming the "top" gump.

If you monitor the #CONTID/#CONTNAME over time, you can see different types come and go.  Like you've described, spellicongumps fly by as you play.  But there's no real way to determine if your bufficon_gumps have moved on your screen.
Title: Re: serching for gumps
Post by: TrailMyx on May 01, 2009, 11:43:39 AM
Here's a quick snippet I wrote to sample/display these kinds of things (C2 was interested in this one)

Code: [Select]
set #LPC 100
gosub showEUOMenu1
set %containers
repeat
  set %sample_container #CONTNAME
  set %sample_id #CONTID
  set %sample_contsize #CONTSIZE
  if %sample_container , %sample_contsize notin %containers
  {
    set %containers %containers , _ , %sample_container , %sample_contsize
    menu list add EUOListBox1 %sample_container , _ , %sample_contsize , _ , %sample_id
  }
until #FALSE
;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title TMs CONTAINER/SIZE sampler
menu Window Color BtnFace
menu Window Size 322 271
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color WindowText
menu Font BGColor Window
menu List Create EUOListBox1 12 12 281 249
menu Show 421 270
return