Macro Ideas

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Macro Ideas

Post by SingleServing » Fri Dec 20, 2002 5:57 pm

I have decided that I want to learn how to write macro's that include Events better. As a result I am now taking requests for ideas to implement into an amost totally event driven macro.

something like

Sub Main

:doevent
/doevents
/goto :doevent

/return


I know many of these have been done before no flames please

My goal is to add features such as:

Automatically recast spells upon fizzles. (you will have to call what spell you want most likely)

Make sure your character is standing if he is being attacked. (I sometimes try to stand a second too late after something hits me causing me to sit back down again)

Automatically stay in meelee range and facing target when attack is on.

Turn off attack when a mob is enraged and YOU are being hit.

Allow you to Auto-follow anything using the follow command (or something similar) in addition to keeping closer to the person your following if possible to help with pathing problems. Maybe even give the PC your following an automatic tell if you fall too far behind.

Train skills such as ID, Sense Heading automatically and stop if the PC enters a trade or some other action that would prevent a skill, or the skill is =200.

Clear all current memmed spells (/forgetall)



Make several automatic spell lists to be memed ie. Buff Line, Soloing Line, Grouping Line.

Check buff duration and give update when a spell has exactly 3 minutes left. (give or take a few minutes to avoid spam from bards and short duration spells)

Provide HP and MANA status calls and warnings when below a set percentage


*****************************


If you have anything about the game bugging you, or just have an idea put in a request maybe I can implent a solution.

lifewolf
a ghoul
a ghoul
Posts: 143
Joined: Fri Oct 18, 2002 6:29 pm

Re: Macro Ideas

Post by lifewolf » Fri Dec 20, 2002 9:12 pm

SingleServing wrote:I have decided that I want to learn how to write macro's that include Events better. As a result I am now taking requests for ideas to implement into an amost totally event driven macro.

something like

Sub Main

:doevent
/doevents
/goto :doevent

/return


I know many of these have been done before no flames please

My goal is to add features such as:

Automatically recast spells upon fizzles. (you will have to call what spell you want most likely)

Make sure your character is standing if he is being attacked. (I sometimes try to stand a second too late after something hits me causing me to sit back down again)

Automatically stay in meelee range and facing target when attack is on.

Turn off attack when a mob is enraged and YOU are being hit.

Allow you to Auto-follow anything using the follow command (or something similar) in addition to keeping closer to the person your following if possible to help with pathing problems. Maybe even give the PC your following an automatic tell if you fall too far behind.

Train skills such as ID, Sense Heading automatically and stop if the PC enters a trade or some other action that would prevent a skill, or the skill is =200.

Clear all current memmed spells (/forgetall)



Make several automatic spell lists to be memed ie. Buff Line, Soloing Line, Grouping Line.

Check buff duration and give update when a spell has exactly 3 minutes left. (give or take a few minutes to avoid spam from bards and short duration spells)

Provide HP and MANA status calls and warnings when below a set percentage


*****************************


If you have anything about the game bugging you, or just have an idea put in a request maybe I can implent a solution.
If your that bored, write a script that uses events to capture all the data from a /who (either MQ improved, or normal anon/roleplay limited ones.)

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

Post by L124RD » Sat Dec 21, 2002 12:28 am

Salutations,
you guys are so lame, I already did this for logging GM's in the zone if $gm is true... (the capturing things from /who) write a macro that will um... oh... do some loc walking with only events, and you have to figure out how, I already think I know...

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Sat Dec 21, 2002 5:39 am

L124RD wrote:Salutations,
you guys are so lame, I already did this for logging GM's in the zone if $gm is true... (the capturing things from /who) write a macro that will um... oh... do some loc walking with only events, and you have to figure out how, I already think I know...
lame? I could do GM but never mentioned it =p

If you have something similar to what I am talking about send me a PM with the code I'll take a look at is.

As far as wolf, 1 please don't quote an entire post that long and say something like do something with /who and anon people :?: :?: . I might be off of what you actually were saying, but you weren't very descriptive/precise on your wording or what you wanted.

Lastly, no I'm not bored. This is how I'm getting my kicks and learning useful application at the same time, coding is more fun than playing EQ. Yes if you would like something to be done let me know, what were you thinking L124RD?

Thanks all (sweet program, what to do when old UI gets canned /sigh)

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

Post by L124RD » Sat Dec 21, 2002 12:39 pm

Salutations,
try and make a macro that will walk locs... using events, only thing that will go against the events is that (in the only way I can see it done) is having one more line of code before the /doevents... good luck... if you need any more hints I'll be willing to give them to you.

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Subject?

Post by SingleServing » Mon Dec 23, 2002 6:14 pm

L124RD wrote:Salutations,
try and make a macro that will walk locs... using events, only thing that will go against the events is that (in the only way I can see it done) is having one more line of code before the /doevents... good luck... if you need any more hints I'll be willing to give them to you.
I'll work on it just finished building a working exp macro, (5 hours and going strong :twisted: )

So i have some time on my hands while i erm play EQ =)

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Post by SingleServing » Thu Dec 26, 2002 5:23 am

L124RD wrote:Salutations,
try and make a macro that will walk locs... using events, only thing that will go against the events is that (in the only way I can see it done) is having one more line of code before the /doevents... good luck... if you need any more hints I'll be willing to give them to you.
Ok heres a few questions

How did you want to determine the locs to go to, pass, hard code, rand, etc?

How did you expect this to be triggered, or is that the problem? =)

Maybe in relation to your current location...

#event Loc "Your location is" (/loc txt?)

Sub Event_Loc

/mqlog Your current loc is $char(x),$char(y)
/varcalc v01 $char(x)+10
/varcalc v02 $char(y)+10

/gotoloc v01,v02

/return

One loc or multiple?

Lasly, any specific purpose?

Might be useful to make macro that runs your character around a maps edges then log it to a file to assist in creating a zone map, if your into that kind of stuff.

The reason I thought about making something like this is to enhance current gameplay, kinda like loading an idle macro. Maybe you can #include your favorite macros to allow you to call the functions as you play like /gototarg without having to run a brand new macro each time.
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

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

Post by L124RD » Thu Dec 26, 2002 2:27 pm

Salutations,
You were just saying you wanted to event triggered macro... here's how I'd do it (not tested)

Code: Select all

#event loc "Your location is"
#define loc_ a(
#define X_ 1,
#define Y_ 2,
#define MAXIUMUM_LOCATIONS 2

sub main
 /varset loc_X_0) 0
 /varset loc_Y_0) 0
 /varset loc_X_1) 300
 /varset loc_Y_1) 300
 /varset loc_X_2) 600
 /varset loc_Y_2) 600
 :loop
  /loc
  /doevents
 /goto :loop
/return

sub event_loc
 /for l0 0 to MAXIUMUM_LOCATIONS
  /if n $distance(loc_Y_$l0),loc_X_$l0))<=5 {
    /face loc loc_Y_$calc($l0+1)),loc_X_$calc($l0+1))
    /goto :end_event_loc
   }
  /next 
 :end_event_loc
/return

zedisdeadbaby
a ghoul
a ghoul
Posts: 83
Joined: Sun Nov 03, 2002 4:24 pm

Post by zedisdeadbaby » Fri Dec 27, 2002 11:37 pm

I use spellcast.mac in my macros, I think it does automatically re-casts spells when interrupted.

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

Post by L124RD » Sat Dec 28, 2002 12:20 am

Salujtations,
that relates to the topic?

Ariain
a ghoul
a ghoul
Posts: 88
Joined: Fri Oct 11, 2002 10:35 am

..

Post by Ariain » Sat Dec 28, 2002 2:12 am

Kinda
I know many of these have been done before no flames please

My goal is to add features such as:

Automatically recast spells upon fizzles. (you will have to call what spell you want most likely)
Was in topic but the guy already said he knew it was already done so it was kinda a pointless post.

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

Post by L124RD » Sat Dec 28, 2002 4:03 am

Salutations,
ah, thanks for pointing that out...