ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => Endless Nights' Script Library => Topic started by: Endless Night on May 01, 2009, 06:14:56 PM

Title: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Endless Night on May 01, 2009, 06:14:56 PM
Code: [Select]
;==================================
; Script Name: AutoTarget
; Author: JosephAJ
; Version: V1.0
; Client Tested with: 5.0.5a
; EUO version tested with: 1.5 (TV95)
; Shard OSI / FS: OSI
; Revision Date: 11.1.06
; Public Release: 11/2/06
; Purpose:
; Auto Target MOB and open health bar.
; Retarget when MOB Dead/gone.
; Requirments:
; Targeting system On
;==================================
; (C) 2006 All Rights Reserved JosephAJ
;==================================

This little script will automatically find a target, popup its healthbar and set it as the current target. It will also optionally auotmatically attack if set. Once the target is dead/gone it will search for a new matching target.

It will find the MOB and pop its health bar even if it burried under corpses or hidden behind pets other mobs etc.

Default setting is for Swoops/No attack.

set %TargetTypes TC_ ; Swoops   edit these for more
Set %AutoAttack #False  ; set to #true or #false

MUST HAVE the new targetting system turned on .. or will not work.





Usage:
  You are free to use this script for not for profit personal UO gameplay.
You are *not* free to modify and repost or post on other places
or post as part of a script or work you yourself have created
or otherwise distribute without written permision from the author.
This license to use can be changed at any time for any reason.
If in doubt dont do it contact the author.

(C) 2007 All Rights Reserved JosephAJ
Commercial usage requires written permission from the author


NOTE: My scripts or any derivative of them are *not* for use in other players script/s!  
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: NObama on September 20, 2011, 04:13:17 PM
EN -

Would it be possible to use this as a called sub, in a script that basically does only this:

gosub [automobtarget]
gosub [CLAW autoloot]
When full -> Dump at bank
Rinse/Repeat

Or am I missing something more fundamental?
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Endless Night on September 20, 2011, 04:19:56 PM
EN -

Would it be possible to use this as a called sub, in a script that basically does only this:

gosub [automobtarget]
gosub [CLAW autoloot]
When full -> Dump at bank
Rinse/Repeat

Or am I missing something more fundamental?
wow 120 downloads on this little nothing script + more on Easy im sure... wow

NoBama Do what you wish with it ..called script, a sub , mutilate it and chop it up... just throw me a credit line in the end result.

:)
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: NObama on September 20, 2011, 04:22:21 PM
No no, I meant was it programmable.  I'm still trying to code up that Clean Up points farmer, but i can't make my plan work inside of this script.  I'm going to take a stab at the problem from a different angle.
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Grandewd on September 07, 2013, 08:52:55 PM

Hey EN,

My primary is a bard that should have had a script for pulling up a mobs healthbars long ago, but I'm finally getting around to it. So I found your AutoTarget W/Healthbar and am trying to modify it for my needs.

Your code is designed to pull up the first set target and do something until that target is gone.  What I need, is to pull up the first set target (and keep it up) and then look for more and pull theirs up too.  I need all the mob's healthbars up so I can decide which ones to provo on the other.

So I look'd at what your code did and teased out the part that will pull up the healthbar of the set target, but it continues finding anything in the area and pulling up it's healthbar over the previous one.
Here's my code:

Code: [Select]
set %TargetTypes GH
top:
Finditem %TargetTypes G_16
if #findcnt > 0
     {
      set #lobjectID #findid
      event macro 50 5
      wait 15
      contpos 0 0
      wait 10
     }
goto top

What (no doubt obvious) am I missing?

 :-[
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Endless Night on September 08, 2013, 01:43:56 PM
This script/above snippet uses the new target system...  one problem with pulling bars via that method is that thiers only one bar and thats the target bar. Every time you pull a  new one is closes the old one...  


Instead use try using this snippet to open multiple mod bars

Code: [Select]
finditem  blabla
for #findindex 1 #findcnt
   gosub HealthBarOpenNonHumaniod
halt

Sub HealthBarOpenNonHumaniod
  Repeat
    set #lObjectID #findid
    event Macro 17
    wait 5
  Until #Contname = target_status_gump
Return

I pulled this from my healthbar subs .. http://www.easyuo.com/forum/viewtopic.php?t=26234 (http://www.easyuo.com/forum/viewtopic.php?t=26234)
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Nuscheltier on October 25, 2014, 06:17:00 AM
hi there,

I tried the script, but actually it just jumps around pretty fast between the targets but doent leed to attacking...
How coul I solve this?
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Nouveau on December 30, 2014, 07:50:11 AM
Next time I go to the Swoop, I'm gonna try this.  Thank-you!  :)
Title: Re: ENs - AutoTarget W/Healthbar (Swoops Other)
Post by: Endless Night on February 09, 2015, 06:46:34 AM
hi there,

I tried the script, but actually it just jumps around pretty fast between the targets but doent leed to attacking...
How coul I solve this?

I havent played in a while... but its probably the target type code needs changing.  And the autoattack needs to be true.

Play around with these settings at top of script.


Code: [Select]
; AutoDisplay Critter/ HealthBars
set %TargetTypes TC_ ; Swoops   edit these for more
Set %AutoAttack #False  ; set to #true or #false
set %MobType 5 ; 5=mobile 1= hostile.