Request: Help fix the macro from using ghetto turn off

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

Gellenole
orc pawn
orc pawn
Posts: 20
Joined: Wed Oct 29, 2003 10:28 pm

Request: Help fix the macro from using ghetto turn off

Post by Gellenole » Thu Oct 30, 2003 1:55 am

plz help a bit need to have this fixed a bit....

Code: Select all

|Archery Macro v. 1.0c
|Archery Assist Macro.
|
|HISTORY
|Version 1.0c
|	- Fixed the macro to end when the mob dies. (Ghetto stopping the arrow from firing... Turning off macro)
|Version 1.0b
|	- Fixed having the user to fire 1st arrow for macro to run
|	- Still need to fix how to turn it off once mob is dead
|Version 1.0a
|	- Need user intervention to Fire 1st arrow for the macro to work
|	- Need user intervention to turn off the macro even after mob is dead

#turbo infinite 

Sub Main
   /ECHO :: Yee' Ole'  Autofire Macro  ::
   /ECHO ::        Version 1.0c        ::
   /ECHO ::  Usage:   /macro Archery   ::
   /declare Fightswitch global 
   /declare CastTimer timer
   /varset Fightswitch 1 
   :Mainloop 
   /call  Fightswitch
   /if @Fightswitch=="0" /call Fightswitch 
   /doevents 
   /goto :mainloop 
/return 

| --> This subset is a switch to check for mob target
Sub Fightswitch 
   /if $target()=="TRUE" { 
      /if $combat=="FALSE" { 
         /varset Fightswitch 1
	 /call Arrow
      } 
   } 
   /if $target()=="FALSE" { 
      /varset Fightswitch 0 
      /if $combat=="FALSE" { 
	 /varset Fightswitch 0
         /attack off
	 /return 
      } 
      /return 
   } 
/varset Fightswitch 0 
/return 

| --> Loop for arrows
Sub Arrow 
   :arrowloop 
      /if $target()=="TRUE" { 
         /face fast nopredict 
         /delay 3 
         /press 2		|Change arrow button to your own
      	
	 /if $target()=="FALSE" {
            /varset Fightswitch 0
	    /sit
	    /goto :stopfiring
	}
      } 
      /goto :arrowloop 
:stopfiring
/endmacro
/return

Drunkensloth
a lesser mummy
a lesser mummy
Posts: 67
Joined: Sat Oct 18, 2003 2:54 am

Post by Drunkensloth » Thu Oct 30, 2003 4:03 am

i suggest posting this in the help section... but lemme take a quick look see if i may be able to help...

Code: Select all

  
|(from Diggler)   
 /if "$target(name,clean)"=="$char(name)" { 
         /echo Pausing!! To resume, type /target clear or target something else. 
         :HoldingPattern 
            /delay 2s 
            /if "$target(name,clean)"=="$char(name)" /goto :HoldingPattern 
      } 

now just mess around with your code so that after mob dies... it targets you and holds :)

i cant really tell what your code is doing with the fightswitch stuff... trying to understand its purpose really......

and you have a call to doevents... yet you havent declared any events... so um... yeah

i am bored and i feel like finsihing up your code and see what i can make with it... if you dont mind of course..





edit: hahahaha me am smrt

change /endmacro to /mqpause :P
And here I was clicking like a sucker!

Gellenole's ghost

Post by Gellenole's ghost » Sat Nov 01, 2003 3:58 pm

oh man you're so smart i'm going to try that right now... /mqpause

but I don't know what that does atm... and how will that work =D I'm not completely sure what /doevents does... but hey if it works it works... i'm going to try to mess around with it! right now i'm just getting the kinks out... but thnx... if I use /mqpause how will I know how to re unpause when I reassist?

Gellenole's Ghost

Post by Gellenole's Ghost » Sat Nov 01, 2003 5:46 pm

basically the fightswitch is there as a check... it loops back into the arrow once you target another mob... but the problem it I can't get the macro to recognize non mob characters and pause... because there's an auto face mob line it actually is useful up to a point.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sat Nov 01, 2003 5:49 pm

/if "$target(type)"!="NPC" /echo pause or something ?
- Plazmic