Auto Attack

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
Asphyxium
Apprentice Scribe
Posts: 12
Joined: Mon Oct 15, 2012 10:05 pm

Auto Attack

Post by Asphyxium »

Can someone please point me in the direction of an auto attack script that includes support for savages? I'm tired of all the double clicking (especially when it doesn't work, as any UO person is familiar with).
User avatar
Darwin
Expert Scribe
Posts: 34
Joined: Sat May 30, 2009 10:32 pm

Re: Auto Attack

Post by Darwin »

the best way i found a suto attack was a macro i tought up for razor.

make a macro called attack and press record
then go under hot keys and under targets
click target closest non-friendly then click execute selected
then click attack last target and click execute selected
and last click cancel current target and click execute selected.
then go back the the macro and click stop

then there you have it a auto attack macro. you can add it to a hot key like the mouse wheel. under hot keys,macro and set it to the wheel.

does that answer you question?
Asphyxium
Apprentice Scribe
Posts: 12
Joined: Mon Oct 15, 2012 10:05 pm

Re: Auto Attack

Post by Asphyxium »

Thanks!
User avatar
Melkor
Legendary Scribe
Posts: 1042
Joined: Sun Feb 14, 2010 1:30 pm

Re: Auto Attack

Post by Melkor »

I was too slow, Anarchy explained the same thing in another thread and i dug it up. Same thing but explained slightly different, so I'll post it anyways.

anarchy wrote:
create a hot key for attack next non friendly
to do so you have to make 2 hot keys one for target closet non friendly
and 1 key for attack last target. record yourself clicking 1 key then the other. bam you have attack closest non friendly :)
Image
TDC Guild
User avatar
Xavian
Legendary Scribe
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: Auto Attack

Post by Xavian »

Or download an attack script and add in the mob IDs that you want it to target. Scripting is not hard, take some time and learn. The majority of mob IDs are on the EasyUO wiki.
Asphyxium
Apprentice Scribe
Posts: 12
Joined: Mon Oct 15, 2012 10:05 pm

Re: Auto Attack

Post by Asphyxium »

I tried this but there is no ID for savages. :(

It's ok though. This method works fine. My only complaint is that I cannot get the human enemy function to recognize tokuno warriors, which forces me to turn it off when rotating spawns due to gamans.

Oh well, though. I can take that much clicking. It's the main bulk of it that was ridiculous.
User avatar
Xavian
Legendary Scribe
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: Auto Attack

Post by Xavian »

There are scripts out there that tell you item type, which is what you need. Savages and Tokuno Warriors are both humans. Humans have two types, one male and one female. I could be mistaken, I don't think I am, but the types are IS for male and HS for female.
Semzz
Expert Scribe
Posts: 31
Joined: Sat Jan 21, 2012 10:35 am

Re: Auto Attack

Post by Semzz »

what i do is loop a macro like darwin described on 1 hotkey, same macro except reds, might be called murderer in razor i would have to look, and 1 hotkey for cancel all macros on a third hotkey, use which i need for which i need, only need to double click oranges ;) , im sure i read that somewhere here on the forums so ty whoever taught me ;)
Asphyxium
Apprentice Scribe
Posts: 12
Joined: Mon Oct 15, 2012 10:05 pm

Re: Auto Attack

Post by Asphyxium »

OK I've successfully gotten Raziel's Attack Script to work. It requires Burnhazel's ID Tool to identify custom monster types (savages).

Xavian was correct about the male and female human ID types, which might I add won't cause your script to attempt an attack on player characters. I do not believe the male/female type works on Savages, as they are a unique ID, but it was a good guess.

Both scripts are available on the EasyUO public script library and for all non-custom ID types, there is a listing under documentation (creature types).

Thank you all for your help.

Edit: If anyone is interested in these things, I highly recommend the EasyUO approach, as Razor's has a problem. It attacks the nearest enemy, which means the active target can change, which can get you into trouble. It also spams notification text in the status area and above the player's head.
Locked