A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.
Moderator: MacroQuest Developers
-
notetaker
- orc pawn

- Posts: 12
- Joined: Tue Feb 03, 2004 11:50 am
- Location: colorado
Post
by notetaker » Sat Feb 14, 2004 1:10 am
made this simple macro, just makes warrior kick,slam,taunt, and assist another player
Code: Select all
|-warrior.mac-
| note: make a"/mqpause " hotkey (in eq)
| note: make an "/assist<name> " hotkey in spot #1 (in eq)
#turbo
Sub Main
:loop
/doability kick
/doability slam
/doability taunt
/doability begging
| note: this part hits the hotkey
/press 1
/goto :loop
/return
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !
-
Elric
- Cheese Whore

- Posts: 466
- Joined: Sun Nov 23, 2003 12:31 am
- Location: Tampa, Fl
-
Contact:
Post
by Elric » Sat Feb 14, 2004 11:47 am
notetaker wrote:made this simple macro, just makes warrior kick,slam,taunt, and assist another player
Code: Select all
|-warrior.mac-
| note: make a"/mqpause " hotkey (in eq)
| note: make an "/assist<name> " hotkey in spot #1 (in eq)
#turbo
Sub Main
:loop
/doability kick
/doability slam
/doability taunt
/doability begging
| note: this part hits the hotkey
/press 1
/goto :loop
/return
Couple of things.
1) When you constant use Assist, you'll be assisting off of the mob for a full round of action, which renders your warrior pretty useless.
2) You can't beg while attacking without setting a particular offset, which we don't support or supply here.
3) The abilities are better encased in quotes, such as "Taunt" "Slam" "Kick" so on and so forth.
4) *sigh* Man, I don't want to flame, I really don't.. But I don't think this was meant for this forum. I know you're learning, but you should have posted this in the Help forum and asked for a little advice.
-
bob_the_builder
- a hill giant

- Posts: 275
- Joined: Tue Jul 22, 2003 1:22 pm
Post
by bob_the_builder » Sat Feb 14, 2004 5:13 pm
Here's Monks old STICK mac for warriors.
Could update this a little, add the enrage code and other fun stuff
Code: Select all
#turbo
|===========|
| stick.mac |
| by m0nk |
|___________|
#event EXP "experience!"
#event rageon "has become ENRAGED."
#event rageoff "is no longer enraged"
sub main
:setup
/declare Special1 global
/declare Special2 global
/declare SpecialTime1 global
/declare SpecialTime2 global
/declare TimerSpecial1 timer
/declare TimerSpecial2 timer
/declare MaxDistance global
/declare MinDistance global
/declare MobID global
:edit
/varset Special1 Kick
/varset SpecialTime1 60
/varset Special2 TAUNT
/varset SpecialTime2 60
:setup
/varset TimerSpecial1 @SpecialTime1
/varset TimerSpecial2 @SpecialTime2
/varset MaxDistance @Param1
/varset MinDistance @Param2
/if Param1==$right(6,"@Param1") {
/varset MaxDistance 16
}
/if Param2==$right(6,"@Param2") {
/varset MinDistance 14
}
:mainloop
/doevents
/if "$combat"=="TRUE" {
/varset MobID $target(id)
/delay 1
/call attack
}
/goto :mainloop
/endmacro
sub attack
:attackstart
/echo Attack $target(name,clean)
/if $target()!=TRUE /return
:attackfight
/if $target(type)!=NPC /goto :attackend
/if $char(casting)!=TRUE /face fast nolook
/if $target()==TRUE /if $char(casting)!=TRUE /if n $target(distance)>=@MaxDistance /sendkey down up
/if $target()==TRUE /if $char(casting)!=TRUE /if n $target(distance)<=@MinDistance /sendkey up up
/if $target()==TRUE /if $char(casting)!=TRUE /if n $target(distance)<5 /press down
/doevents
/if n $target(id)!=@MobID /goto :attackend
/if n $target(distance)>100 /goto :attackend
/if @Special1!=NULL /if n "@TimerSpecial1"=="0" /if $char(casting)!=TRUE /if n $target(distance)<=18 /goto :attackspecial1
/if @Special2!=NULL /if n "@TimerSpecial2"=="0" /if $char(casting)!=TRUE /if n $target(distance)<=18 /goto :attackspecial2
/goto :attackfight
:attackspecial1
/if @Special1==NULL /goto :attackfight
/doability "@Special1"
/varset TimerSpecial1 @SpecialTime1
/goto :attackfight
:attackspecial2
/if @Special2==NULL /goto :attackfight
/doability "@Special2"
/varset TimerSpecial2 @SpecialTime2
/goto :attackfight
:attackend
/attack off
/endmacro
/return
sub event_exp
/echo Attack OFF !!!
/if $target(type)!=CORPSE /target id @MobID
/attack off
/endmacro
/delay 1s
/return
sub event_rageon
/echo Rage On
/attack off
/return
sub event_rageoff
/echo Rage Off
/attack on
/return
Yeah, glad you tpyed some code, but that was kinda lacking, mate. Take only constructive critism, notetaker
.
Bob
-
bob_the_builder
- a hill giant

- Posts: 275
- Joined: Tue Jul 22, 2003 1:22 pm
Post
by bob_the_builder » Sun Feb 15, 2004 10:22 am
My new stick.mac is
BLAH !!! that's got Shadow Knight crap in it :)
Once a warrior always a warior.
Bob-the-warrior-at-heart
-
notetaker
- orc pawn

- Posts: 12
- Joined: Tue Feb 03, 2004 11:50 am
- Location: colorado
Post
by notetaker » Mon Feb 16, 2004 8:27 am

A long time ago, in a galaxy far away......you know guys , im vary thankfull for all thi friendly critz

Last edited by
notetaker on Tue Feb 17, 2004 11:06 am, edited 1 time in total.
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !
-
daerck
- a ghoul

- Posts: 134
- Joined: Mon Jan 12, 2004 8:44 pm
Post
by daerck » Mon Feb 16, 2004 10:30 am
Writing a macro is a form of programming.
People with some programming/coding experience will find it relatively easy to adapt to the commands used in MQ to accomplish what they want to do. The real difficulty in writing macros is not necessarily knowing the exact commands, but finding a solution to your problem that can be formed into an algorhytm that the programming language you wish to use can understand.
If you have no previous experience with programming and coding, some tutorials or a college text book may help you understand the basic language constructions, common algorythms and mathematical basics of programming. Once you have that knowledge it is rather easy to apply it to any given programming language and it will be much faster than just ripping other peoples code and trying to decipher it. Although learning and reproducing code snippets is certainly part of that lerning process.
So in other words, you may want to start looking at programming languages that are better documented and explained than the MQ language. Java is a great place to start, for example.
-
notetaker
- orc pawn

- Posts: 12
- Joined: Tue Feb 03, 2004 11:50 am
- Location: colorado
Post
by notetaker » Mon Feb 16, 2004 11:37 am
[PLEASE dont think im flamming. y'all injoy programing and scripting and that is great..... i play EQ for fun, ive played for almost 3 years (if i rember correctly ) and my highest toon is only 40ish, im in no hurry to become UBER but i run 3 accounts so macroing helps a lot .........so if i muddle through and ask a lot of stupid questions please bear with me and rember when i was in shool computer lab consisted of makeing your name print over and over and over on the screen.... and a 286 burned down the internet at less then 25 mhz

Last edited by
notetaker on Tue Feb 17, 2004 11:15 am, edited 1 time in total.
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !
-
BrainDozer
- a lesser mummy

- Posts: 45
- Joined: Sun Aug 03, 2003 2:10 pm
Post
by BrainDozer » Mon Feb 16, 2004 11:57 am
well just because some one can write a fancyer one does that make mine a bad script???
Not at all. It's bad for other reasons.
Don’t be so defensive. Nobody is ripping apart your livelihood here.
-
daerck
- a ghoul

- Posts: 134
- Joined: Mon Jan 12, 2004 8:44 pm
Post
by daerck » Mon Feb 16, 2004 5:54 pm
Dude... you are obviously here to learn scripting, and I gave you reason and advice where to start.
Nobody here flamed you for your bad macro. They pointed out the flaws of it and encouraged you.
-
LamahHerder
- a hill giant

- Posts: 299
- Joined: Sat Jun 29, 2002 2:37 am
Post
by LamahHerder » Mon Feb 16, 2004 11:19 pm
BLAH !!! that's got Shadow Knight crap in it
Once a warrior always a warior.
It only does SK stuff if you are a SK, if you use it as a warrior it wont do SK stuffs 8*)