ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: baldielocks on June 12, 2010, 11:56:39 AM
-
This is a start of a pet healer I am making based on TM's petgump healer tool, with his permission. I was trying to find a more consistent way to grab and position the health gump, and learning new click commands. I wound up turning my mare into a wooden door! ???. It changes back upon recall. Localized graphic glitch, others see it as a mare. Just funny. Give a newb power, and what do you get?
After reading all I can on clicks, I cannot figure out how to HOLD a click. I noticed that if I hold a right click for 2 seconds on a target, it's health bar will pull up. I want to automate this for health gump positioning.
;pet gump healer ideal flow
;1. id pet(s)
;2. pull pet health bar
;3. set health bar position
;4. monitor health bar for health%, poison, mortal strike colors
;5. if health < set%, use bandage and GH. see if heal is more effective. Calculate FC/FCR.
;6. if status poison, use bandage and cast arch cure
;7. if mortal, wait until poison status or normal status, then resume
;----------------------
;initial set up
;set pet 1
all stay
set #targcurs 1
while #targcurs = 1
wait 1
set !pet1 #ltargetID
set !pet_xpos #LTARGETX
set !pet_ypos #LTARGETY
event drag !pet1
halt
-
ii think the command
Click (x) (y) g
Will also have a similar effect.
-
hehehe, it even acted like a door. Blocked my movement in tramm. Was pretty neat to see a door kill a dragon.
-
lol vid or it never happened! haha
-
-
If you are talking about walking you through writing the script you got the wrong guy! Sorry :\.
Don't feel bad though about wearing yourself out. I've been learning this LUA, and I've given myself several headaches.
-
too late lol, just added it. forgive me, I was on a coffee low. (mainlines caffeine(
-
now you just need to find away to make the door invullenable and you will have an awesome script :)
-
Could you exevent drag the id of the animal to get the gump? Never tried that but who knows. :)
-
that was actually my first thought. I use id with just about every click and exevent i could. Drag displays "you cannot pick that up".