ScriptUO

Ultima Online Fan Board => General UO Chat => Topic started by: The Ghost on October 29, 2013, 09:40:48 AM

Title: Toggle bewteen two icons
Post by: The Ghost on October 29, 2013, 09:40:48 AM
I'm trying to alternate between two icons.    I'm trying to use Primary and LS  one after another.    The icon are save as red and just keep swapping  even if the special wasn't use.   I'm doing this with a thrower.  Is there a way to scan to keep the Icon red on Primary if not use before it change to LS.   
Title: Re: Toggle bewteen two icons
Post by: 12TimesOver on October 29, 2013, 09:43:19 AM
http://www.scriptuo.com/index.php?topic=1508.0

Title: Re: Toggle bewteen two icons
Post by: Masscre on October 29, 2013, 10:09:30 AM
Now with the introduction to the vast oasis of scripting programs (EUO, OEUO, Stealth, UOSteam, and also Razor has some ability). We will need to have more information as to which script program you are using to be able to help you more effiecently. Thank you. In case you are using EUO you will have to pixel scanning or use EN script which does that for you and then gives you feed back on what has been toggled on/off.
Title: Re: Toggle bewteen two icons
Post by: The Ghost on October 29, 2013, 12:23:44 PM
it for Euox    The icon for Primary and secondary ability have no debuff,  so I need to use on screen icon.   Right now I can  use one Icon, I'm trying to do  do AI & LS and just repeat.  It to keep my using double mana for AI.
Title: Re: Toggle bewteen two icons
Post by: Crome969 on October 29, 2013, 12:47:41 PM
it for Euox    The icon for Primary and secondary ability have no debuff,  so I need to use on screen icon.   Right now I can  use one Icon, I'm trying to do  do AI & LS and just repeat.  It to keep my using double mana for AI.

In Stealth you could read wich ability is active. Primary or Secondary and Buffs like Lightning strikes are catchable through the buff\debuff event :)
Title: Re: Toggle bewteen two icons
Post by: manwinc on October 29, 2013, 01:07:23 PM
Yeah, using oeuo you could probably monitor the Individual Gumps.

EUOX you pretty much have to rely on Pixel Scanning Based on the Location then have a Variable to monitor which turn you are on.

set %Turn 1

if %Turn = 1
{
;Check Pix Primary
if #pixcol <> %Red
{
 Event Macro 15 () ; Toggle LS
set %Turn 2
wait 20
}
}
if %Turn = 2
{
; Check Pix LS
if #Pixcol <> %Red
{
Event Macro ; Primary
set %Turn 1
wait 20
}
}
Title: Re: Toggle bewteen two icons
Post by: The Ghost on October 29, 2013, 01:44:46 PM
I just did so more digging and found this post.   dxrom has  attempt what I want to do.  since like it not easy.

http://www.scriptuo.com/index.php?topic=9117.0;highlight=icon
Title: Re: Toggle bewteen two icons
Post by: dxrom on October 29, 2013, 02:41:40 PM
LS-AI-LS-AI-LS-AI? Why do this when it's completely possible to have sampires/archers/throwers infinitely spam AI nowadays? :X

Anyways, to do it you could just compare the pixel color and then loop WAIT while it's red. When it disables (no longer red) continue on to the next ability.