YAST - Yet Another Spell Trainer - none struck my fancy so..

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 21, 2005 12:00 pm

Did you ever bother searching the forums?

SEARCH =>> http://macroquest2.com/phpBB2/search.php

HOW TO COMPILE PLUGINS =>> http://macroquest2.com/phpBB2/viewtopic ... c&start=20 or read the manual (RTFM: Read the Fucking Manual is what you normally get.)

HELP FOR PLUGINS Go to where you specifically got the Plugin and ask in that thread of that forum

HELP FOR MACROS Go to where you specifially got the Macro and ask in that thread of that forum

General help for MQ including compiling using free online compiler http://macroquest2.com/phpBB2/viewforum.php?f=35

How to get flamed: Don't try search (look carefully before you use it, it has various settings that make a difference); post outside the place where you got the plugin or macro in question; ask for AFK macros and "active" hacks like the warp hack and godmode hack.

How to get the best response: Post in the appropriate places (see above); give detailed information about your trouble, if you have errors copy and paste them to the post using the code button above the edit window when posting, if necessary to put in a link that's fine use the URL tags to make the link active and try to stay on this site, people here don't fix the crap you get from other sources.

Need help with creating a macro from a post? http://macroquest2.com/phpBB2/viewtopic ... tepad+save
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Naeeldar
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Jan 20, 2005 11:08 pm

Post by Naeeldar » Fri Jan 21, 2005 12:23 pm

Actually read all of that but the one macro post that I needed. I'm registered for the online Visual Stuidio test which is how I was compiling that.

I had gone through the manual 10 times or so and the only coment on macros was the actualy scripting.

The compile plugins post was very detailed and actually what I was using to compile macro.

Stupid mistake but if they put a simple addendum in the manual about macros being scripted with notepad and saved in macro would save a lot of issues.

Like I said I read through a lot of it obviously enough if I'm compiling plugins without the knowledge needed to install a script properly. Simply put just got the wrong idea when reading the manual and the plugins post.

Clueless_Coder
a hill giant
a hill giant
Posts: 192
Joined: Wed Aug 25, 2004 3:18 pm

Post by Clueless_Coder » Fri Jan 21, 2005 12:49 pm

Naeeldar wrote:Actually read all of that but the one macro post that I needed. I'm registered for the online Visual Stuidio test which is how I was compiling that.

I had gone through the manual 10 times or so and the only coment on macros was the actualy scripting.

The compile plugins post was very detailed and actually what I was using to compile macro.

Stupid mistake but if they put a simple addendum in the manual about macros being scripted with notepad and saved in macro would save a lot of issues.

Like I said I read through a lot of it obviously enough if I'm compiling plugins without the knowledge needed to install a script properly. Simply put just got the wrong idea when reading the manual and the plugins post.
Fearless said it way back when...

You compile macros?

Sorry but that's been repeated over and over again throughout this thread

A Macro is not a Plugin. Stop trying to start your car with a sandwich and go find the key.

Clueless_Coder
a hill giant
a hill giant
Posts: 192
Joined: Wed Aug 25, 2004 3:18 pm

Post by Clueless_Coder » Fri Jan 21, 2005 12:51 pm

Naeeldar wrote:Can't tell if your being picky or serious. Corrent me if I'm wrong but you run the prompt creating a folder in mq then you open the file and edit it with the script (copy and paste) then save the file. You open up MacroQuest2.sln and build the files with the program.

Now if I'm doing this wrong then correct me but if your talking about compiling I say were being a bit picky.
Consider yourself corrected. You're doing it wrong.
Naeeldar wrote:apparently not even though I manged to eliminate every eroror but this and one error in the original.
There WERE no errors in the original if you created the MACRO correctly. Anything you supposedly "corrected" probably only served to break the thing even more.

Macro != to Plugin, The steps you described are to create a PLUGIN not a MACRO.

Macros do not go in their own indiividual folders. They go in C:\..\release\macros (DOH!) along with any other INC or INI files associated with or needed by said macro.

And there is no need to recompile anything when adding a macro. Macro's are not a part of the MQ2 solution so they have no place in your compiler.

Step by step:

Open My Computer.
Go to ../release/macros
Alt+F
New
MacroQuest Macro
Rename the file YAST.mac
Open YAST.mac with any text editor.
Paste the code found at the top of the thread into the new file, replacing whatever text is there. (There are no errors in that code. I tested it and it works perfectly right out of the box)
If you want the add in to destroy NORENT items go back and search the code for

Code: Select all

:checkCursor 
and make the appropriate edits.
Save.

Now stop to suck and go back and RTFM!!!!!

Naeeldar
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Jan 20, 2005 11:08 pm

Post by Naeeldar » Fri Jan 21, 2005 12:51 pm

Clueless_Coder wrote:
Naeeldar wrote:Actually read all of that but the one macro post that I needed. I'm registered for the online Visual Stuidio test which is how I was compiling that.

I had gone through the manual 10 times or so and the only coment on macros was the actualy scripting.

The compile plugins post was very detailed and actually what I was using to compile macro.

Stupid mistake but if they put a simple addendum in the manual about macros being scripted with notepad and saved in macro would save a lot of issues.

Like I said I read through a lot of it obviously enough if I'm compiling plugins without the knowledge needed to install a script properly. Simply put just got the wrong idea when reading the manual and the plugins post.
Fearless said it way back when...

You compile macros?

Sorry but that's been repeated over and over again throughout this thread

A Macro is not a Plugin. Stop trying to start your car with a sandwich and go find the key.
People tend to ignore smart ass comments. Honestly doesn't matter for me at this point this morning I startedl ooking into it and fortunatly somebody pointed out to me my mistake. But adding the addendium I suggested into the manual will help keep other people from askign somethign I've noticed is common.

Clueless_Coder
a hill giant
a hill giant
Posts: 192
Joined: Wed Aug 25, 2004 3:18 pm

Post by Clueless_Coder » Fri Jan 21, 2005 1:00 pm

Naeeldar wrote:People tend to ignore smart ass comments.
And users here tend to ignore persistantly insistant dumbass questions.

You were told way back that you dont compile macros.

That would have been my cue to get a clue, not keep insisting that you were doing what you were told to do and had even corrected the errors in the script...

I'll be the first to admit I'm a Class A n00b when it comes to all of this. But not even I need to be hit over the head with it to recognize a clue when I get one.

shadowman33
orc pawn
orc pawn
Posts: 18
Joined: Sun Feb 20, 2005 7:50 pm

works great!

Post by shadowman33 » Sun Feb 20, 2005 7:52 pm

New to mq2 so not experienced in it yet, but loaded this macro tonight and it works great. Thanks for the great work.

irascible
orc pawn
orc pawn
Posts: 12
Joined: Sun Mar 20, 2005 1:32 am

Post by irascible » Wed May 04, 2005 6:46 pm

Naeeldar wrote: People tend to ignore smart ass comments. Honestly doesn't matter for me at this point this morning I startedl ooking into it and fortunatly somebody pointed out to me my mistake. But adding the addendium I suggested into the manual will help keep other people from askign somethign I've noticed is common.

RTFM, STFU


There, no smartass comments... you get it now?

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed May 04, 2005 9:54 pm

2.5 month thread bump on a completely dead subject. You are more intelligent then any of the other moron's in this thread . . . how?
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

irascible
orc pawn
orc pawn
Posts: 12
Joined: Sun Mar 20, 2005 1:32 am

Post by irascible » Thu May 05, 2005 11:08 pm

You accuse someone of thread bumping a sticky topic... brilliant.

You and Naeeldar should hold hands and talk about your feelings.

chazicus
a lesser mummy
a lesser mummy
Posts: 45
Joined: Tue Jan 10, 2006 6:46 pm
Contact:

Post by chazicus » Wed Jan 11, 2006 9:46 am

It is my understanding that and .inc files need to go in the commons folder which is under the Macro folder. Make sure your .inc is there.

TehWraith
a lesser mummy
a lesser mummy
Posts: 51
Joined: Tue Feb 28, 2006 3:32 am

Post by TehWraith » Fri Mar 10, 2006 2:24 pm

Well I didn't do much at all, I made it sit between casting. I use the ViP spell_routines.inc and didn't test with SpellCast.inc. I changed the include to the SpellCast.inc so that a ton of questions don't come up about where to find the ViP one. This also includes the destroy no-rent lines of code in this post.

Code: Select all

#define MaxArcaneSkill 235
#chat tell
#event lang "tells you"

#include SpellCast.inc

Sub Main

    /declare currentSpell
    /declare maxSkill
    /declare skillName
    /declare spellName
   
    /varset currentSpell 1
    /varset maxSkill ${Math.Calc[${Me.Level}*5+5]}
    /echo maxSkill=${maxSkill}
    /if ( ${maxSkill} > 235 ) /varset maxSkill 235

    /target myself
   
    :nextSpell
        /echo currentspell=${currentSpell}
        /echo casting=${Me.Gem[${currentSpell}]}
       
        /if ( ${Bool[${Me.Gem[${currentSpell}]}]} ) {
            /varset skillName ${Me.Gem[${currentSpell}].Skill}
            :castSpell
                /doevents
                /if ( ${Me.PctMana}<20) {
                    /sit on
                    /call MedBreak
                }
                /echo ${skillName}=${Me.Skill[${skillName}]}
                /if ( ${Me.Skill[${skillName}]} >= ${maxSkill} ) {
                    /varset currentSpell ${Math.Calc[${currentSpell}+1]}
                    /goto :nextSpell
                }
                /call CheckGM
                /call cast "${Me.Gem[${currentSpell}]}"
               
                :checkCursor
                /if (${Cursor.ID}) {
                   |MQ2 is not logic, a No Rent item returns FALSE for Cursor.NoRent currently
                   /if (!${Cursor.NoRent}) {
                      /destroy
                   } else {
                       /autoinv
                    }
                    /goto :checkCursor
                }
                /if (${Me.Standing} && !${Me.Casting.ID}) {
                   /sit
                }
            /goto :castSpell
        }
   
    /sit
    /call MedBreak
    /camp
/return

Sub CheckGM
    :GMCheck
    /if (${Bool[${Spawn[gm].ID}]}) {
       /echo 'Cast Macro' A GM or Guide has been detected in the zone,  the macro will resume  when the zone is clear of GM/Guides
       /delay 600s
       /goto :GMCheck
    }
/return

Sub Event_Chat
  /echo Got a tell, pausing for 10 minutes
  /delay 600s
/return

Sub Event_Lang
  /echo Got a tell, pausing for 10 minutes
  /delay 600s
/return

Sub MedBreak
    /stand
    /sit
    :MedMore
        /delay 2s
        /if (${Me.CurrentMana}<${Me.MaxMana}) /goto :MedMore
/return 

matter68
a lesser mummy
a lesser mummy
Posts: 45
Joined: Tue Apr 04, 2006 6:37 pm

Post by matter68 » Thu Apr 13, 2006 7:54 pm

Sorry to add to what has been decribed as a dead subject, but quite fr4ankly Im stumped. Cut and pasted exactly, saved as a .mac but when i try to activate it in game... nothing, not even a hiccup. Any suggestions?

Thanks

newgamez88
orc pawn
orc pawn
Posts: 27
Joined: Thu Mar 09, 2006 12:01 pm

Post by newgamez88 » Thu Apr 13, 2006 9:23 pm

Have you also cut and copied spellcast.inc and put it under the same directory?

matter68
a lesser mummy
a lesser mummy
Posts: 45
Joined: Tue Apr 04, 2006 6:37 pm

Post by matter68 » Thu Apr 13, 2006 10:19 pm

no i put it in the common folder.. thanks will try it