ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Cerveza on April 06, 2011, 07:18:59 AM
-
The idea is to do AI's every 3 seconds and use Lightning Strike in between.
Here's what I have.... I *think* it'll work as is, but would like to hear some comments. I haven't tested these pixel subs, but on paper, they appear to be pretty cool.
display yesno Is Armor Ignore a Primary Weapon Ability?
if #dispRes = yes
{
gosub set_pixel 2 PrimaryWeapon 35 0
set %pixel 2
set %mana 30
set %timer #sCnt
set %delay 3
set %eventMacro1 35
set %eventMacro2 0
}
else
{
gosub set_pixel 3 SecondaryWeapon 36 0
set %pixel 3
set %mana 30
set %timer #sCnt
set %delay 3
set %eventMacro1 36
set %eventMacro2 0
}
gosub set_pixel 1 LightningStrike 15 149
repeat
if #mana >= %mana && %timer > #sCnt
gosub check_pixel %pixel f %eventMacro1 %eventMacro2 %timer %delay
gosub check_pixel %pixel f
if #result <> #true
gosub check_pixel 1 f 15 149
until #false
; ***** sub check_pixel *****
; %1 - pixel number
; %2 - t/f true or false
; %3 - event macro 1
; %4 - event macro 2
; %5 - timer name
; %6 - timer value
; gosub check_pixel 1 f 35 0 %timer_PrimaryWeapon 3 ; primary weapon ability
sub check_pixel
cmppix %1 %2
if %0 > 2
{
event macro %3 %4
if %0 < 5
return #true
wait 5
set %5 ( #sCnt + %6 )
return #true
}
return #false
; ***** sub set_pixel *****
; %1 - pixel number
; %2 - name
; %3 - event macro 1
; %4 - event macro 2
; gosub set_pixel 1 LightningStrike 15 149 ; lightning strike
sub set_pixel
for %i 1 3
event macro %2 %3
display ok Move mouse to your %4 Button.$You have 2 seconds
wait 2s
savePix #cursorX #cursorY %1
wait 5
display ok Do NOT move that %2 icon!
return
-
Scan your suit for lmc and plug it in. You only need about 4 or 5 of those. Mana required1/2/3/4/5. One for 5, 10, 15, 20 mana... not really sure, been a while since I've messed with it, but there's only so many mana configs you need and they work for everything, including spells/chiv/necro/whatever...
set %manaRequired %manaCost - ( ( %manaCost * %userLmc) / 100 )