Official ScriptUO EasyUO Scripts > Combat/Healing/Looting

ScriptUO Healing Commander

(1/7) > >>

TrailMyx:

--- Code: ---;=================================================================
; Script Name: ScriptUO Healing Commander
; Author: TrailMyx/Cerveza
; Version: 2.94
; Shard OSI / FS: OSI / FS OK
; Revision Date: 9/29/2007
; Purpose: Manages your healing needs by using journal scanning.
; Globals:
;   *TM_HEAL = #TRUE if healing targeting in progress.
; Namespaces:
;   TM_heal(local)
;   TM_AdvJS_*
;
; Special Thanks:
;   Cerveza for all his input and prompting me to get off my butt and finish this
;   This is a showcase for the new journal handling subs.
;=================================================================

--- End code ---

Probably a little explanation is in order for this script.  It will maintain your health using the following methods:

* Bandages
* Magery
* Chivalry
* Necromancy

(yes, no potions, sorry)

Other features of this allow you:
* Heal when low on health
* Cure when poisoned
* Aware of mortal strike attack and bleeding attacks
* Motion sensing to be sure you don't try and cast when you are on the run.
* Configurable thresholds for healing levels
* Stores setup for each character in persistent memory
* Integrates seamlessly with the CLAw autolooter
* Doesn't require OCR; everything is handled with the journal.

Cerveza:
There's a couple flaws with Necromancy healing.

1 - It tries twice and you get the "you must wait"

2 - It's not setting !TM_HEAL to true.

I'm running this little snip script to test times:


--- Code: ---TM:
repeat
namespace copy TM_HEAL from global TM_HEAL
event sysmessage #sCnt2

gosub Check_Status
if #RESULT = #TRUE
  event sysmessage *** TRUE TRUE TRUE TRUE ***

until #CharGhost = YES
while #CharGhost = YES
  wait 0
GoTo TM

sub Check_Status
if #targCurs = 1 || #lLiftedKind = 1 || !TM_HEAL = #TRUE
  return #TRUE
return
--- End code ---

It works for Chiv heals, but I never see *** TRUE when I use Necro heals.

*Actually, it must be something slowing down the recognition.... The bandage status is accurately displayed on both the Commander and the Bandage Status menus, but not making it to my script above.

TrailMyx:

--- Quote from: Cerveza on October 25, 2008, 07:39:18 PM ---There's a couple flaws with Necromancy healing.

1 - It tries twice and you get the "you must wait"

2 - It's not setting !TM_HEAL to true.

I'm running this little snip script to test times:

*snip*

It works for Chiv heals, but I never see *** TRUE when I use Necro heals.

--- End quote ---

Heh, well I think I never even tested it.  I'd fall over dead in shock if it worked actually... :)

Cerveza:
I see something....


--- Code: ---sub TM_GetHealStatus
  namespace push
  namespace global TM_healer
  set #RESULT !TM_HEAL
  namespace pop
return #RESULT

--- End code ---
But searching I didn't see a gosub for it?

OH and is it

namespace copy TM_HEAL from global TM_HEAL
or
namespace copy TM_HEAL from global TM_Healer

I use the first, but I noticed the Bushido trainer uses "TM_Healer". The Healing Commander says TM_HEAL in the header, but all the globals in the script are Healer?

Cerveza:
It's TM_Healer, working fine. Please to notify the author to correct his header in his script  :P

Navigation

[0] Message Index

[#] Next page

Go to full version