[EasyUO] Weapon Ability Rearmer 7.10

If you make a Client-side script you can publish it here for other players to use
User avatar
Yoda
Legendary Scribe
Posts: 813
Joined: Thu Feb 24, 2011 11:38 am
Location: Canada

Re: [EasyUO] Weapon Ability Rearm-er

Post by Yoda »

here's the thing with "all that chivalry nonsense"

many yes do have that in their auto targetters already
but commenting it out and only using discordance from your auto attacker speeds up target aquisition a whole tonne

it will pick up the targets faster

plus most implimentations of chiv I have seen in people's targetting scripts are rather "simple/dumb" as in consecrate weapon and devine fury cast over and over even when patently unneccesary

the way devlin has done it is rather slick and using this new combo.. re-armer to handle buffs and specials and an autotargetter to handle the target aquisition and discordance couldn't possibly be much smoother

its light fighting with lightning quick reflexes

thats just my observation and opinion tho
Guildmaster: JDI - Est 2011
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Devlin »

New version available.

Added a durability monitor, which scans all of your current gear. If you drop below a certain durability (set to 100 by default, you can edit it) it will send you a warning. AND JUST A WARNING. It will continue to tell you items are breaking until you do something about it.

Fixed the weapon toggle issue, so you should not have to switch weps back and forth to get your ability to work. NOTE: You still may need to toggle a wep on/off. I have not had this issue yet, but things happen. This is much cooler than the durability check imo =)

Completed the monster list so Momentum Strike should activate properly (MS scans for enemies nearby and only activates when there are 2 enemies in range. Some monsters weren't on the list, which meant it wouldn't go off always.) When you have MS toggled it will use your Primary ability (by default) until there are two enemies within range. It will switch to MS until there is only 1 enemy within range (1 tile away.) Much more efficient than using MS when it won't do anything.

Please let me know if you find any bugs.
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Devlin »

http://www.easyuo.com/psl.php?page=myps ... er=Rcioffe

Go vote 10, if you got an extra second =)
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Yoda
Legendary Scribe
Posts: 813
Joined: Thu Feb 24, 2011 11:38 am
Location: Canada

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Yoda »

I use this script 100% of the time out fighting and love it.. but the hotkeys are dodgy in my setup due to ingame macros
my personal copy has them de-activated and only uses the gui

this version has both nice script devlin

Code: Select all

; Script: Rearmer 6.25 GUI Remix
; Author: Devlin
; GUI Remix: Yoda!
; Current Version: 6.0
; Purpose: Rearms Abilities, Momentum Strike and Counter Attack.
; Read the instructions on the Forums first!
;
;                SET-UP:
; You MUST edit the first 5 hotkeys below!
; Read the comments on each line for help.

               ;        Hotkeys
set %Prim F1   ; Primary Ability hotkey
set %Sec F2    ; Secondary Ability hotkey
set %MS F3     ; MS Ability hotkey
set %Hold F11  ; Pause hotkey
set %Play F12  ; Play hotkey

set %mana 30   ; When you are low on mana the script
               ; will wait for you to get this much
               ; mana before attempting to rearm
               ; abilities. Ideal range is 25-40

               ;      Defaults
set %Sub Prim  ; "Prim" "Sec" or "MS" for Primary/Secondary/Momentum Strike
set %Sub2 CAOff ; CAOn/CAOff Determines if CA is cast upon startup. On=yes, Off=no

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; GUI Menu By Yoda           ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    menu clear                                                 ;
    set #menubutton none
    menu Window Title Re-Armer 6.25 GUI Remix
    menu window transparent 95
    menu window size 316 50
    menu Font Name Gautami
    menu Font Size 8
    menu Font Style b
      menu Font BGColor $0029bf
      menu Font Color White
    menu button hold 0 0 45 20 CA OFF
      menu Font BGColor $0029af
      menu Font Color White
    menu button play 45 0 45 20 CA ON
      menu Font BGColor $00299f
      menu Font Color White
    menu button Prim 90 0 58 20 Special 1
      menu Font BGColor $00297f
      menu Font Color White
    menu button Sec 148 0 58 20 Special 2
      menu Font BGColor $00295f
      menu Font Color White
    menu button MomStrike 206 0 110 20 Momentum Strike
    menu Image Create test 0 20 320 38
    menu Image File test 0 0 rearmer.jpg
    menu show
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;-----------------------------------------------------------
;-----------------------------------------------------------
;    Don't go beyond here without reading the wiki!
;-----------------------------------------------------------
;-----------------------------------------------------------
set #sysMsgCol 94
set %check 100
set %frequency 300
set %Sub3 DuraOn
set %D 0
set %min #minDmg
set %max #maxDmg
set %MS2 On
set %T_E3 11111111111
set %Monsters ZC_BH_DH_LH_AF_YD_TE_OJ_OD_OO_TO_QH_SE_PE_Q_O_HI_T_N_TI_DJ_VE_GO_CF_WE_II_NI_CC_KI_UE_AHB_CH_VI_PH_IJB_JE_AP_HE_CI_OE_BI_IE_HF_EJ_JGB_TC_LO_AI_VC_ND_X_AB_Z_DI_FH_Y_XC_WI_BE_BHB_FE_DE_AE_R_EB_WD_HH_KH_P_GF_GH_CBB_BBB_EBB_W_NE_BJ_HH_NC_UB_RB_TD_UD_YAB_RO_SD_PI_TI_WGD_MD_UC_RE_KD_SB_IB_QO_YH_DD_JJ_DH_UAB_QD_XAB_I_XH_ED_YB_PD_HD_YE_XE_CD_DF_TGB_FO_IH_FD_V_GD_KHB_NI_VGB_QGB_RI_MGB_QHB_DBB_ME_EH_TH_CBH_KE_BD_SI_S_HS_KJ_DW_VH_UF_WC_BG_CO_ZI_XG_YG_BB_RF_AG_ZE_NG_IG_MH_WC_CG_LD_HG_JI_TC_JG_KG_OH_JB_XF_JD_CB_ZF_RD_AH_XD_WF_TG_OF_SG_SF_MG_QE_MB_EG_KB_YF_TF_VF_NF_WG_WJ_WB_PF_M_PG_DG_GE_ZD_NN_WM_ZM_BN_LC_AC_UGB_OC_MC_PJ_ZJ_CK_AK_J_TJ_EC_K_J_PB_NB_SC_SH_EF_WH_FJ_UI_U_QE_QF_GB_GHB_HBB_MO_XI_PO_BF_CHB_WGB_NH_TAB_XO_ZO_NO_TM_SO_YO_WO_GJ_DN_JHB_ZAB_QJ_TCIJ_KF_DO_OI



;------------------------------------------
;                QuickStart
;       Remove text between START/END
;                 (START)
; -----------------------------------------
if *Save = 1
{
     display YesNo Do you want to use your previously saved settings?
     if #dispres = No
     gosub Setup
}
     else
     {
          gosub Setup
     }
;-----------------------------------------
;                  (END)
;-----------------------------------------




loop2:
event macro 15 148
wait 10
if you_must_have_a_weapon in #sysmsg
{
     display You must have a weapon equipped to begin.
     wait 5s
     goto loop2:
}

wait 5
savePix *CountX *CountY 4
gosub Settings

loop:
repeat
{
     if #charGhost = NO && #MAXMANA > 15
     {
          if ( Abs ( %min - #minDmg ) > 15 ) || ( ( %max <> #maxDmg ) > 15 )
          {
               wait 20
               gosub Settings
               set %min #minDmg
               set %max #maxDmg
               goto loop:
          }
          else
          {
          }
          
          ;5 control menu here
if #menubutton = hold
     {
     set %T_Hold #time
     set %Sub2 CAOff
     set #menubutton none
    }

if #menubutton = play
    {
     set %Sub2 CAOn
     event sysmessage Counter Attack has been resumed. Hit CA Off to Pause.
     set #menubutton none
    }

if #menubutton = Prim
   {
        set %Sub Prim
        event exmsg #charid 3 0 [Primary]
        event sysmessage Primary Ability activated
        set #menubutton none
    }
if #menubutton = Sec
   {
        set %Sub Sec
        event exmsg #charid 3 0 [Secondary]
        event sysmessage Secondary Ability Activated
        set #menubutton none
    }
if #menubutton = MomStrike
   {
        set %Sub MS
        set %T_MS #time
        set #menubutton none
    }


     }
     else
     {
     goto loop:
     }
;---------------------------------------
;               Functions
;---------------------------------------
gosub %Sub   ; Abilities (Prim/Sec/MS)
gosub %Sub2  ; Counter Attack
gosub %Sub3  ; Durability Check
;---------------------------------------
;
;---------------------------------------

if ( ( %timer + %frequency ) < #scnt )
{
set %Sub3 DuraOn
}
else
{
}
}
until ( #mana <=  %mana )
{
     event sysmessage You are out of Mana
     wait 2s
}

goto loop:


sub DuraOff
return

sub DuraOn
finditem * C_ , #charid
for #findindex 1 #findcnt
{
     event property #findid
     if durability in #property
     {
          set %D %D +1
          set %Item . %D #findid
     }
}

event exmsg #charid 2 33 Checking Durability
for %D2 1 %D
{
     event property %Item . %D2
     str pos #property durability
     set %D3 #strres + 10
     str del #property 1 %D3
     set %D1 #strres
     str pos %D1 /
     str del %D1 #strres 99
     set %D1 #strres
     if %D1 < %check
     {
          event sysmessage Item(s) Breaking. Go Repair!
          event exmsg #charid 3 0 Item(s) Breaking
          set %Sub3 DuraOff
          set %timer #scnt
     }
     else
     {
     set %Sub3 DuraOff
     set %timer #scnt
     }
}
return

sub Prim
cmppix 1 t
event macro 35 0
return

sub Sec
cmppix 2 t
event macro 36 0
return

sub MS
if ( ( #time - %T_MS ) < 1 )
{
     event sysmessage Momentum Strike will be rearmed when there are two or more targets.
     wait 1s
}
     else
{
}

Finditem %Monsters G_1
if #Findcnt > 1
{
     set %MS2 On
}
else
{
     set %MS2 Off
     cmppix 1 t
     event macro 35 0
     return
}

if %MS2 = On
{
     cmppix 3 t
     event macro 15 150
}
else
{
}
return

sub CAOn
if #mindmg > 10  && #targcurs = 0 && ( H notin #charstatus ) && #charGhost = NO && #mana > 5
{
     wait 2
     cmppix 4 f
     {
     event macro 15 148
     wait 5
     }
}
else
{
}
return

sub CAOff
set %T_Hold2 #time

if ( ( %T_Hold2 - %T_Hold ) <= 2 )
{
     event sysmessage Counter Attack is now Paused. Please hit %play to resume.
     wait 3s  ; Make longer if Pause message is spammed
}
else
{
}
return

sub Settings
savePix *PrimX *PrimY 1
savePix *SecX *SecY 2
savePix *MSX *MSY 3
set *Save 1
wait 5
return



sub Setup

     display Please Move your Mouse over the Primary Ability Icon. You have 3 seconds to do so.
     wait 3s
     set *PrimX #CURSORX
     set *PrimY #CURSORY

     display Please Move your Mouse over the Secondary Ability Icon. You have 3 seconds to do so.
     wait 3s
     set *SecX #CURSORX
     set *SecY #CURSORY

     display Please Move your Mouse over the Momentum Strike Ability Icon. You have 3 seconds to do so.
     wait 3s
     set *MSX #CURSORX
     set *MSY #CURSORY

     display Please Move your Mouse over the Counter Attack Ability Icon. You have 3 seconds to do so. If you aren't using Counter Attack... Just hit okay/wait. Doesn't really matter.
     wait 3s
     set *CountX #CURSORX
     set *CountY #CURSORY


display The script is now ready to run. To switch which ability is active, simply press your hotkey for that ability (You may need to hit it twice)
return
Just added the toolbar remote to it save and copy the image file below to the same directory that you save the script to complete the widget
Attachments
rearmer.jpg
rearmer.jpg (38.26 KiB) Viewed 9376 times
Guildmaster: JDI - Est 2011
User avatar
Yoda
Legendary Scribe
Posts: 813
Joined: Thu Feb 24, 2011 11:38 am
Location: Canada

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Yoda »

Bump for widgets
Guildmaster: JDI - Est 2011
User avatar
Xavian
Legendary Scribe
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Xavian »

Widget is a nice tool. I modified it and set it transparent over my ability icons so I just have to click "the icon" to change. It's nice because it doesn't take up any more space on my screen but still functions awesome.
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Devlin »

bump
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
evose
Apprentice Scribe
Posts: 11
Joined: Sat Oct 18, 2014 4:31 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by evose »

I would like to use this script but every time I run the script, an unexpected crash happen. I am using easyuo 1.5 build 282 (most up to date on easyuo.com), checked compatibility Windows xp sp2, and ran as administrator on Windows 7 x64. Sometimes, it will run for couple minutes but crashes when it checks for durability of equipments. Any help would be appreciated. Thanks
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Devlin »

i've been meaning to just take out the durability monitor, it hasn't worked as I'd intended... Runs fine on it's own, fails in the script though. Expect an updated script in the next week or so, but in the meantime, just take out this line:

Code: Select all

gosub %Sub3  ; Durability Check
that will remove the durability check and should help you... If it persists, I couldn't say, there's not much to the script aside from that, aside the mortal strike range check
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
jackpod
Expert Scribe
Posts: 37
Joined: Mon Dec 22, 2014 10:41 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by jackpod »

sub DuraOn
finditem * C_ , #charid
for #findindex 1 #findcnt
{
event property #findid
if durability in #property
{
set %D %D +1
set %Item . %D #findid
}
}
When i run this part of script, %D returns N/A. if you intended to increase %D as %D+1, you are missing space between plus and number. this can possibly affect subsequent durability strings loop to crash?

Another point; I haven't went through line by line so maybe i'm missing it (in that case please disregard this comment~) but i couldn't locate a place resets %D. Since you're incrementing %D eveyrtime searching paperdoll, this var can end up with a big number soon(10+ each time), maybe will end up looping durability string more than you want it to be.
evose
Apprentice Scribe
Posts: 11
Joined: Sat Oct 18, 2014 4:31 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by evose »

Thanks for the help, I will try that.
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 6.0

Post by Devlin »

aye jack, someone pointed that out to me the other day. certainly a small oversight hah. I hate strings :P Shinda got it working, but now its either too laggy, or crashes. So i might just light it on fire, be done with it, and make rearmer super simple again lol
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 7.03

Post by Devlin »

Version 7.03 is now available!

Major Changes Include:
-Menu system to customize all aspects of the script. No more editing code!
-Select if you're using a bow/melee wep with Momentum Strike.
-Select if you switch to your Primary/Secondary Ability when MS doesn't have enough targets in range, or always stay on MS.
-Added Gambit functions back to Rearmer. This includes Consecrate Wep/Divine Fury/Tithing Point Warning.
-Removed the Durability Check. It didn't work properly and didn't want people to lose gear as a result.

As always, if any bugs are found, please let me know.
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [EasyUO] Weapon Ability Rearmer 7.03

Post by Devlin »

Small update that fixed a bug that would disable rearmer if you remained hidden for a few hours and returned. Something to do with timers. Not really a big issue if you don't want to update, but the new menu system means you don't need to mod code if you do ;P
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
Locked