12
« on: December 27, 2012, 09:08:53 PM »
Okay I was looking for something that would heal me using chivalry and maybe my searching prowess is as poor as my scripting prowess but allow me to take you through my last 3 or so hrs.
Search for self healer - nothing that was simple or as easy as that I could understand.
Started looking for something just plain and simple to understand - find Cervezas bushido/ai script that was based on mana...
gosub setpixel-LightningStrike
gosub setpixel-ArmorIgnore
display ok Ready to Begin
repeat
if #mana > 30
gosub exec-ArmorIgnore
if #mana < 30
gosub exec-LightningStrike
wait 1
until #false
sub exec-LightningStrike
wait 5
cmppix 1 t ; Lightning Strike
return
event macro 15 149
wait 5
return
sub exec-ArmorIgnore
wait 5
cmppix 2 t ; Lightning Strike
return
event macro 35 0
wait 5
return
sub setpixel-LightningStrike
event macro 15 149
display ok Move the mouse to your Lightning Strike Icon.$You have 2 seconds
wait 2s
savePix #CURSORX #CURSORY 1
wait 5
return
sub setpixel-ArmorIgnore
event macro 35 0
display ok Move the mouse to your Armor Ignore Icon.$You have 2 seconds
wait 2s
savePix #CURSORX #CURSORY 2
wait 5
return
Now I'm thinking well if this can check against mana to then do something maybe I can change it to check hp to cast close wounds...
As a total and complete newb programmer/scripter I didn't even know where to start, so I started searching for help guides, tutorials heck anything I could think of that might aid me in changing it to what I desired, and JUST when I was about to give up I stumbled across the Easyuo wiki in the tool section of script uo!!
Once I found out what event macros were I started making some changes, saving them and opening/running them in easyuo. Step by step and save by save I got to here and while likely the most ridiculous thing some of you have ever seen I'm excited by it! Haha simple right?
repeat
if #hits < 114
gosub healme
until #false
sub healme
event macro 15 202
event macro 25 0
event macro 23 0
return
Now obviously this is so crude... but it's my first time and although I'm falling asleep writing this I can't wait to get back at it tomorrow after work. I plan on adding a check for poison and a sub to cast cleanse by fire and maybe a couple other little fun things!!!
I'm hooked! I'm up for any constructive criticism or otherwise.
Casa