Page 4 of 5

Posted: Fri Jan 21, 2005 12:00 pm
by aChallenged1
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

Posted: Fri Jan 21, 2005 12:23 pm
by Naeeldar
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.

Posted: Fri Jan 21, 2005 12:49 pm
by Clueless_Coder
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.

Posted: Fri Jan 21, 2005 12:51 pm
by Clueless_Coder
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!!!!!

Posted: Fri Jan 21, 2005 12:51 pm
by Naeeldar
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.

Posted: Fri Jan 21, 2005 1:00 pm
by Clueless_Coder
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.

works great!

Posted: Sun Feb 20, 2005 7:52 pm
by shadowman33
New to mq2 so not experienced in it yet, but loaded this macro tonight and it works great. Thanks for the great work.

Posted: Wed May 04, 2005 6:46 pm
by irascible
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?

Posted: Wed May 04, 2005 9:54 pm
by fearless
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?

Posted: Thu May 05, 2005 11:08 pm
by irascible
You accuse someone of thread bumping a sticky topic... brilliant.

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

Posted: Wed Jan 11, 2006 9:46 am
by chazicus
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.

Posted: Fri Mar 10, 2006 2:24 pm
by TehWraith
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 

Posted: Thu Apr 13, 2006 7:54 pm
by matter68
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

Posted: Thu Apr 13, 2006 9:23 pm
by newgamez88
Have you also cut and copied spellcast.inc and put it under the same directory?

Posted: Thu Apr 13, 2006 10:19 pm
by matter68
no i put it in the common folder.. thanks will try it