ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: baldielocks on June 12, 2010, 11:56:39 AM

Title: lol, graphic glitch making new script
Post 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.

Code: [Select]
;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
Title: Re: lol, graphic glitch making new script
Post by: manwinc on June 12, 2010, 03:35:03 PM
ii think the command

Click (x) (y) g

Will also have a similar effect.
Title: Re: lol, graphic glitch making new script
Post by: baldielocks on June 12, 2010, 07:30:32 PM
hehehe, it even acted like a door. Blocked my movement in tramm. Was pretty neat to see a door kill a dragon.
Title: Re: lol, graphic glitch making new script
Post by: jtw1984 on June 13, 2010, 05:24:34 AM
lol vid or it never happened! haha
Title: Re: lol, graphic glitch making new script
Post by: baldielocks on June 13, 2010, 06:22:47 AM


Title: Re: lol, graphic glitch making new script
Post by: jtw1984 on June 13, 2010, 06:30:09 AM
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.
Title: Re: lol, graphic glitch making new script
Post by: baldielocks on June 13, 2010, 06:50:39 AM
too late lol, just added it. forgive me, I was on a coffee low. (mainlines caffeine(
Title: Re: lol, graphic glitch making new script
Post by: Masscre on June 13, 2010, 07:06:49 AM
now you just need to find away to make the door invullenable and you will have an awesome script :)
Title: Re: lol, graphic glitch making new script
Post by: Scrripty on June 13, 2010, 12:28:26 PM
Could you exevent drag the id of the animal to get the gump?  Never tried that but who knows. :)
Title: Re: lol, graphic glitch making new script
Post by: baldielocks on June 13, 2010, 02:02:54 PM
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".