Archery.mac

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Archery.mac

Post by L124RD » Wed Jul 03, 2002 9:30 am

Salutations,
This is a macro for well... auto arching! Trys to keep you in range and press es the hotkey number 2 (where my hotkey is, pretty easily changed) I haven't tested it... but it should work...

Code: Select all

| -archery.mac-
| By L124RD

sub main 
  /varset v50 $equip(ranged,range)
  /varcalc v51 $v50*3/4
  :archloop
    /face
    /press 2
    /if n $target(distance)>=$v50 /sendkey down up
    /if n $target(distance)<=$v51 /sendkey up up
   /goto :archloop
/return

azwildfire
Contributing Member
Contributing Member
Posts: 72
Joined: Fri Jul 05, 2002 5:12 am
Location: Phoenix arizona
Contact:

idea

Post by azwildfire » Tue Jul 09, 2002 11:45 am

as a ranger, my biggest irritation is not only having to hit the arch key all the time, but hanving to equip my bow. how could you modify this script to use the bow name given in the macro command , check if it is equipt. if not, find it in the inventory, equip it, put item that was in range slot in bag?

like /macro archery.mac huntsmen
and it would grab the bow of the huntsment out of my bag equip it and fire away.

does this script take into account haste and such?

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Jul 09, 2002 1:32 pm

Salutations,
it just loops, doesn't matter the delay, it just trys to get range of some sort... ne way... heres the macro you where looking for:

Code: Select all

sub main
  /finditem $p0
  /if $find==false /return
  /click left equip ranged
  /varset v50 $equip(ranged,range)
  /varcalc v51 $v50*3/4
  :archloop
    /face
    /press 2
    /if n $target(distance)>=$v50 /sendkey down up
    /if n $target(distance)<=$v51 /sendkey up up
   /goto :archloop
/return

azwildfire
Contributing Member
Contributing Member
Posts: 72
Joined: Fri Jul 05, 2002 5:12 am
Location: Phoenix arizona
Contact:

Post by azwildfire » Wed Jul 10, 2002 2:08 pm

Code: Select all

sub main 
  :archloop 
    /press 1 
    /if "$target()"!="FALSE" /if "$target(type)"!="NPC" /goto :end 
    /if "$target()"=="FALSE" /goto :end    
   /goto :archloop 
 :end
  /endmacro
this is the way i setup the arch to work. that way when the thing dies, you stop trying to fire arrows and can make a hot key to run the macro.

the find item thing would error out if the bow was in a bag, and the distance stuff was making me run right on top of the mob. so i deleted that out.

not sure how how to make the dsistance thing work. tried using larger nubmers but always ran me right up to the mob *Shrug*
there is no need for the face command as when shooting yoru bow it will automatically face it.

hope this is useful
Cheers

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Wed Oct 09, 2002 10:32 pm

Salutations,
fires until you run out of ammo or the thing dies...

Code: Select all

| -archery.mac-
| By L124RD

#event outofammo "You have run out of ammo!!"

sub main
  /varset v0 0
  /varset v50 $equip(ranged,range)
  /varcalc v51 $v50*3/4
  :archloop
    /face
    /press 2
    /if "$target()"!="FALSE" /if "$target(type)"!="NPC" /goto :end
    /if "$target()"=="FALSE" /goto :end   
    /if n $v0==1 /goto :end
    /if n $target(distance)>=$v50 /sendkey down up
    /if n $target(distance)<=$v51 /sendkey up up
   /goto :archloop
 :end
|   /sit
|   /camp
   /endmacro
/return

sub event_outofammo
 /varset v0 1
/return

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Thu Oct 10, 2002 4:08 am

Hey could i use this with a good bow and some arrows using a nexus scion as my target to raise my archery skill ???

Fippy

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Thu Oct 10, 2002 9:13 am

good call fippy..never thought of that before..

are the scions permarooted to their spot? never really had the nerve to beat one up to check lol

Draekz

gingertips
a hill giant
a hill giant
Posts: 230
Joined: Wed Jun 26, 2002 3:47 am
Location: Tseu-Qorcam

Post by gingertips » Thu Oct 10, 2002 9:24 am

well i know ive had my ass wopped by one of em - forgot to remap the A key after a reinstall!!!

My only concern is their ability to cast, but i guess with a long range bow you might be ok???

]\[E()
a lesser mummy
a lesser mummy
Posts: 48
Joined: Mon Sep 30, 2002 10:13 pm
Location: Flint Michigan
Contact:

triedit

Post by ]\[E() » Fri Oct 11, 2002 4:33 pm

nope i tried it a while aho they nerfed it that and the soulbinders too

weapon
a ghoul
a ghoul
Posts: 101
Joined: Tue Oct 01, 2002 7:20 pm

Perma Rooted

Post by weapon » Mon Oct 14, 2002 3:59 pm

Grimling Prisioner in Grimling forrest. I have shot about 30 arrows at it without gaining any skill so I'm not sure about gaining any skills but it is perma rooted for sure. Has about 25k hit points so should take a while to kill.

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Mon Oct 14, 2002 5:31 pm

As long as it's a blue con mob or greater, you should still get skill ups, they nerfed the soulbinders soon after they were put in from high level to level 1 for a similar reason, people were just constantly attacking them for skill ups, as they wouldn't fight back.
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

rootmoth
orc pawn
orc pawn
Posts: 27
Joined: Fri Oct 04, 2002 9:27 pm

Post by rootmoth » Tue Oct 15, 2002 5:21 pm

The problem with this method is that its no better than using a gamepad to autofire your bow.

As soon as you try to chat, it looks like this.


22222222222222222h2222222222222222i2222222222222222g222222222222222u22222222222222222y22222222222222s

If I were going to use MQ to autofire my bow, I would want to use
#turbo
:LOOP
/mouseto hotkey 2
/click left
/delay 0
Goto :Loop

That way you can continue to use the chat interface.

eqjim
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue Aug 27, 2002 3:56 pm

Post by eqjim » Tue Oct 15, 2002 6:21 pm

heres what i do and it allows me to chat while fighting.

REMAP your keys to something that doesnt output to text. ie: f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,insert,home,pageup,pagedown,delete (not backspace),end,pagedown,any of the numpad keys,etc

lets use HOME for an example. your range attack hotbox is in slot 2. so normally you would press 2 to attack:

/press 2

change that to Home for the home key:

/press Home

now when you fight itll be spamming the Home key.. and when you chat, nothing gets sent to the bar because Home has no text output. the ONLY bad thing that can happen in the chat is when you press SHIFT, because shift + home brings you back to the start of the chat line. so just go without caps when your fighting and youll be OK to chat.

it also doesnt take up your mouse which i usually use to target/con/click other stuff like kick,disciplines,etc.

kazan
a lesser mummy
a lesser mummy
Posts: 36
Joined: Wed Sep 04, 2002 6:56 pm

Post by kazan » Wed Oct 16, 2002 3:06 am

/press 2 = bad

/doability archery = good.

eqjim
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue Aug 27, 2002 3:56 pm

Post by eqjim » Fri Oct 18, 2002 6:15 pm

can you /doability archery?

cause doesnt the bow go into the "Range" slot?

/doability range ??