Alexandria Uptime: 83.67 Days
Total players online: 7



Take the Tour | Site Map

It is currently Wed Jun 26, 2019 5:49 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 93 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
PostPosted: Tue Aug 19, 2003 6:07 am 
Offline
Ancient Scripter
Ancient Scripter
User avatar

Joined: 07/01/2003 06:22
Posts: 3484






PvP, Fighting and Survival
PvP, Fighting and Survival


EasyUO.com's Sign Of Approval



Script Rating
0=worst, 10=best
Ease of use: 10
Usefulness: 10
Stability: 10
Support: 10
Rating: 10.0
Votes: 49
Login to rate

What the users say:
"kind of slow but usefull :)"
"Thanks for the hard work works great !!!"
"Simple, easy and functional!!! That's what it is!"
"Very useful script! Thanks for making it!"
"Could use a limitation to how far you chase monsters. Im sure it will be put in eventaully though"

You downloaded this script last:
Wed, Dec 31st, 1969


Raziel's Attack Script

Make your warrior's hunting life all that much easier!

    Directions: (set the following variables)
  • !_creature (set the TYPES of creatures you wish to auto attack here)
  • !_AutoMoveToTarget (set to #TRUE or #FALSE, determines if you will chase after the creature, if it runs away)
  • !_lowHits (overrides the AutoMoveToTarget, will not chase the creature if you hits go below this, allowing you to run in other direction)
  • !_maxRange (range in which to search for creatures in your list)


Code:
  1. ;=========================================
  2. ; Script Name: Raziel's Attack Script
  3. ; Author: Raziel, Tecmo
  4. ; Version: 1.20a
  5. ; Client Tested with: 5.0.1a
  6. ; EUO version tested with: 1.50.0060
  7. ; Shard OSI / FS: OSI and FS (Alexandria Tested Only)
  8. ; Revision Date: 2005-Nov-22
  9. ; Public Release: 2003-Aug-19
  10. ; Global Variables Used: None
  11. ; Purpose: Makes your warrior's hunting life all that much easier
  12. ; by Auto attacking preset creature when nearby.
  13. ;=========================================
  14.  
  15. ;USER VARIABLES
  16. ;Set !_creature to the type of creatures you wish to auto attack
  17.  
  18. SET !_creature ED_NG_IG_ZF_
  19. SET !_AutoMoveToTarget #TRUE ;#TRUE or #FALSE
  20. SET !_lowHits 55
  21. SET !_maxRange 10
  22. ; =====================================
  23.  
  24. enemyloop:
  25. FOR !_range 1 !_maxrange
  26. {
  27.    FINDITEM !_creature G_ , !_range
  28.    IF #FINDKIND <> -1
  29.    {
  30.      SET !_enemy #FINDID
  31.      GOSUB attack
  32.    }
  33.    WAIT 10
  34. }
  35. SET !_range 0
  36. goto enemyLoop
  37.  
  38. ; ================
  39. SUB attack
  40. attack_loop:
  41. FINDITEM !_enemy G_
  42. {
  43.    IF #HITS > !_lowHits && !_AutoMoveToTarget = #TRUE && #FINDDIST > 1
  44.       MOVE #FINDX #FINDY a
  45.    WAIT 20
  46.          GOTO attack_loop
  47. }
  48. ; ================

_________________
EUO Member since: April 8, 2002
Image
Image
TBM Scripts: sub Click Runebook Location | sub moveItem


Last edited by Tecmo on Tue Nov 22, 2005 11:13 am, edited 6 times in total.

Top
  ProfileShow poster's scripts in the public script library 
PostPosted: Tue Aug 19, 2003 8:00 am 
Offline
Ancient Scripter
Ancient Scripter
User avatar

Joined: 07/01/2003 06:22
Posts: 3484

Change Log
  • v1.20a
    November 22, 2005
    - After creature was set I was only searching 1 tile away, this caused the script to not see the creature and move to it. I removed the distance.
  • v1.20
    October 22, 2005
    - Added option to auto move to target
    - Added Low hits variable (keeps you from moving to target if your hits get below this level and if Auto Move to target is used)
    - Increased default range to 10
    - Restructured coding
  • v1.10
    September 7, 2003
    - added var %creature so creature type can easily be modified by user.
    - Changed distance check to 9 (this can be increased or lowered if needed.
  • v1.00
    - Initial release (by Raziel)


Last edited by Tecmo on Tue Nov 22, 2005 11:10 am, edited 3 times in total.

Top
  ProfileShow poster's scripts in the public script library 
Blackcross
PostPosted: Mon May 24, 2004 7:34 am 
I use this script more than any other considering I am a dexxer first and everything else second, it really comes in handy for keeping monsters beside me while training instead of them running away. :) Thanx


Top
   
Botak
PostPosted: Mon Sep 27, 2004 8:55 am 
Very useful script. Been looking to find auto next target like this script! The best!


Top
   
Sephi
PostPosted: Sun Nov 14, 2004 9:53 pm 
very useful indeed.
thx.


Top
   
patrickfamolare1983
PostPosted: Sat Nov 20, 2004 5:56 am 
Hey, what to i do if i want it to attack gargoyles/????


Top
   
 Post subject:
PostPosted: Sat Nov 20, 2004 9:38 am 
Offline
Ancient Scripter
Ancient Scripter
User avatar

Joined: 07/01/2003 06:22
Posts: 3484

Well normally you could go here... Creature ID Type and get the type, but since it isn't there, try using Find Type.

Put your Find Type answer in the following variable at the beginning of Raziel's Attack Script.
Only change the last two letters (ED).

set %creature ED

_________________
EUO Member since: April 8, 2002
Image
Image
TBM Scripts: sub Click Runebook Location | sub moveItem


Top
  ProfileShow poster's scripts in the public script library 
patrickfamolare1983
PostPosted: Sat Nov 20, 2004 5:14 pm 
Thx man found it :)


Top
   
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 93 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.