Author Topic: Auto Honor and Attack  (Read 67710 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Auto Honor and Attack
« on: November 20, 2008, 07:14:04 AM »
0
Code: [Select]
;=========================================;
; Script Name: Auto Honor & Attack        ;
; Author: Cerveza                         ;
; Version: 2.5                            ;
; Shard OSI/FS: OSI/FS                    ;
; Revision Date: 02/07/2010               ;
; Purpose: Honor and Attack               ;
;=========================================;
;    ____         _      _  __   _ ___    ;
;   / __/ ___ _ _(_)_ _ | |_\ \ /  /_ \   ;
;   \__ \/  _| `_| | ` \|  _/ / \ \/ \ \  ;
;   __/  \ (_| | | | |) | | \ \_/ /\_/ /  ;
;   \____/\__|_| |_|  _/\__\ \___/\___/   ;
;                  |_|                    ;
;=========================================;
; Setup:                                  ;
;  Add monster Types for auto honor       ;
;  http://www.easyuo.com/creaturetype.php ;
;=========================================;
; v1.0 - First SUO Release                ;
; v2.0 - Second SUO Release - rewrite     ;
; v2.0a - Fixed spelling error, timout lol;
; v2.5 - Added CLAW support               ;
;=========================================;

; Adjust these for your preference
set %monsters FD_HI_ ; demons and succubi
set %timeout 25 ; app. time in seconds between kills
set %mana_consecrate 15

This script has been made in a way to help negate the "creature corpse bug".

Please use it and post any feedback.

ToDo List:
- add CLAw and Healer awareness
- add hotkey honor

v2.0 - rewrite, no hotkey, no CLAw or Healer awareness

UPDATED 11/27/09

v2.0a - fixed spelling error causing kill timeout to constantly activate. timout LOL

UPDATED 02/07/10

v2.5 - added CLAw looting awareness. Will pause while looter is active
- modified Consecrate Weapon for auto recast and mana checks

Modified Version 01/DEC/11

v2.5a - Changed things around a bit. Setup will ask you to set your lightning strike icon, and then move to the position you want to farm from. Once there press ALT + F10 to begin the script.

Lightning Strike now built in, NOTHING ELSE. Chiv things would be easy to include but I have removed Chiv from my Sampire. Script will now always keep Lightning Strike active. You must keep your Lightning Strike icon uncovered, and do not move it at any time. LS uses pixel scanning to identify if the icon is "active". If the pixels are covered or moved it will see the wrong pixel color and continuously toggle LS on and off.

Also included a "It's running away - FOLLOW IT" routine. Script will wait 20 seconds for monster to approach and melee begin. Then it will constantly find the monster and check it's distance. If the monster begins to move away the script will pathfind to follow.

Once the monster is dead, the script will look for CLAw looting activity. If you are running CLAw then the script pauses to allow CLAw to evaluate and loot the corpse. After looting is complete, script will move the character back to starting position.

Version 2.5a is untested as of 1 Dec 2011.

There are 2 attachment(s) in this post. You must register and post an acceptable introduction to download
Cerv's HonorAndAttack v25a.txt
HonorAndAttack v25.txt
« Last Edit: December 01, 2011, 05:59:22 AM by Cerveza »
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Auto Honor and Attack
« Reply #1 on: July 16, 2009, 06:14:57 AM »
0
Updated 7/16/09

V2.0 released - complete rewrite from v1.0
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Ajax

  • Restricted
  • *
  • Posts: 1
  • Activity:
    0%
  • Reputation Power: 0
  • Ajax has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Auto Honor and Attack
« Reply #2 on: August 30, 2009, 10:45:16 AM »
0
Great

Offline Traegon

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 0
  • Traegon has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Auto Honor and Attack
« Reply #3 on: September 08, 2009, 10:13:57 PM »
0
Out of curiosity, I noticed this script's first revision was published almost immediately after the snippet I posted on EUO.  ( http://www.easyuo.com/forum/viewtopic.php?t=38194&highlight= ) The code structure is amazingly similar and even the name is oddly familiar.  Granted, you're doing more now than mine did then, but my newest version exceeds the snippet, too.  Auto-detects how to play based on highest skill, runs rails, chases down monsters, meanders to reduce afk obviousness.  Got me over 100 tokuno arties.  :)  I never published my updates because they didn't feel that my script was worth a mention, and when I saw yours over here not soon after, I didn't want to steal your thunder.

My question is: Was this based or taken from my snippet?  It's pretty cool to see so many similarities.


Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Auto Honor and Attack
« Reply #4 on: September 08, 2009, 10:23:19 PM »
0
Hmm, I guess I'm not seeing the similarities.  Even the main loop is different since Cerveza is absolutely allergic to the GOTO statement.  lol  That's got Cerveza written all over it!  heheh
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Auto Honor and Attack
« Reply #5 on: September 08, 2009, 11:53:56 PM »
0
Traegon, script was first published a couple years ago, was since updated. It wasn't based on your work.

You'll find that most scripting is going to be similar. There's only so many ways to get things done.

Check if monster is in range
use honor
target monster
attack monster

Your choices for accomplishing that is pretty limited, thus similarities in scripts. No, I didn't base this on your snippet, though good, it suffers from an icky goto. :)
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Traegon

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 0
  • Traegon has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Auto Honor and Attack
« Reply #6 on: September 14, 2009, 05:33:18 PM »
0
Whoa, time out, lol.  I think you must've interpreted my question as hostile - my bad, sorry.  I was rather hoping for a yes, because it'd have been nice to actually see SOMEBODY using something I wrote in some way.

I'd post my newer version, but I wouldn't want it to seem like a "mine's better than yours" contest or something, and I'd hate to cause you pain 'cuz I might've left in the goto.  Hey: it was late and nobody'd written anything for the Honor section.  I tried.

EPIC FAIL mind you, but I tried.

--Traegon

PS:  How do I make ScriptUO run a script??  Am I missing something?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Auto Honor and Attack
« Reply #7 on: September 14, 2009, 08:35:26 PM »
0
PS:  How do I make ScriptUO run a script??  Am I missing something?

Grab that genie lamp and rub REALLY hard!! 
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline smallrr

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 0
  • smallrr has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Auto Honor and Attack
« Reply #8 on: October 08, 2009, 07:34:17 AM »
0
Thank u Cerveza , it's will easy and fast in swoops  ;D
« Last Edit: October 08, 2009, 09:01:03 AM by smallrr »

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Auto Honor and Attack
« Reply #9 on: November 27, 2009, 05:37:00 PM »
0
Updated, found a spelling error that caused the timeout to constantly trigger... so it would always rescan.

%timout <> %timeout
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Coragin

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +57
  • Referrals: 1
    • View Profile
Re: Auto Honor and Attack
« Reply #10 on: November 28, 2009, 01:18:24 AM »
0
Just had to one up me huh?  lol

Not like I wrote the initial script anyways lol.  Claw support huh?  Im gonna have to check that out and how you did it.  :p
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Auto Honor and Attack
« Reply #11 on: February 07, 2010, 04:43:13 AM »
0
UPDATED 02/07/10

v2.5 - added CLAW looting awareness. Will pause while looter is active
- modified Consecrate Weapon for auto recast and mana checks
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline luv2luvlong

  • Sr. Member
  • *
  • Posts: 272
  • Activity:
    0%
  • Reputation Power: 4
  • luv2luvlong has no influence.
  • Gender: Male
  • Respect: +14
  • Referrals: 0
    • View Profile
Re: Auto Honor and Attack
« Reply #12 on: April 28, 2010, 05:48:02 AM »
0
Okay, been playin w/ this script for a couple of days raising my weapons skill works great. Nice, short, and to the point.

I only added one thing and changed the way claw works
 I added an EOO sub to the mele section
Code: [Select]
   GOSUB ENEMYOFONE
  IF !enemyofone = #false
  {
    REPEAT
      GOSUB ENEMYOFONE
    UNTIL !enemyofone = #TRUE
  }


SUB ENEMYOFONE
  Call ScanBuffBar  ; Presumes file is in same location as euo
  {
    If _EnemyOfOne_ in %BuffBarIconNames
      set !enemyofone #true
    else
      set !enemyofone #false
  }
  IF !enemyofone = #false
    GOSUB CAST_EOO
RETURN

SUB CAST_EOO
  EVENT MACRO 15 206
  WAIT 30
RETURN


and changed the claw to where this script told it when to loot a much better way in my opinion.( but you know what they say about opinions)

Code: [Select]
sub corpse
  GOsub TM_EnableAutoloot
   repeat
    WAIT 1
    namespace copy TM_loot_in_progress from global TM_loot
  until !TM_loot_in_progress <> #TRUE
  WAIT 5
  GOsub TM_DisableAutoloot
  WAIT
 RETURN
It is definately a nce little script to learn from, and not a goto in the whole thing.

thanks again for posting it.
"If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither the enemy nor yourself, you will succumb in every battle" - Sun Tzu in reference to his five points of victory.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Auto Honor and Attack
« Reply #13 on: April 28, 2010, 06:14:49 AM »
0
Thanks for posting up your changes. I like these little scripts to be generic enough that people can add in their own tools to customize them.

I've used this base script for a core of my dual client farming tool.

Char 1 honors and attacks (melee) then puts two vollems onto the target, Char 2 discords the target then puts his two vollems on target.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline luv2luvlong

  • Sr. Member
  • *
  • Posts: 272
  • Activity:
    0%
  • Reputation Power: 4
  • luv2luvlong has no influence.
  • Gender: Male
  • Respect: +14
  • Referrals: 0
    • View Profile
Re: Auto Honor and Attack
« Reply #14 on: April 28, 2010, 06:29:18 AM »
0
I probably should mention that the EOO does require Endless Night's buff bar scanner.
Was gonna post a link, but then decided people should practice using the SEARCH button.
Thanks for posting up your changes. I like these little scripts to be generic enough that people can add in their own tools to customize them.

and they make nice learning tools
"If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither the enemy nor yourself, you will succumb in every battle" - Sun Tzu in reference to his five points of victory.

Tags: Cerveza