Page 2 of 2

Posted: Thu Nov 04, 2004 5:03 pm
by A_Druid_00
..........................................................................................................

Posted: Thu Nov 04, 2004 6:34 pm
by Cr4zyb4rd
I don't know why this thread even has more than one post. It says in the subject line it's perfect.

Posted: Tue Dec 28, 2004 1:56 pm
by Neolesh
Healer wrote:After compling i had the following error's, and could not load..
im not sure if my problem is coming from compling or loading the plugin
any thoughts?


Output Window
Compiling...
MQ2XPtrack.cpp
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(1) : error C2143: syntax error : missing ';' before '|'
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(4) : error C2059: syntax error : 'bad suffix on number'
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(8) : error C2001: newline in constant
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(8) : error C2015: too many characters in constant
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(9) : error C2015: too many characters in constant
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(11) : fatal error C1021: invalid preprocessor command 'event'
Error executing cl.exe.



Results
MQ2XPtrack.dll - 6 error(s), 0 warning(s)
lol

Posted: Sun Jan 23, 2005 3:42 pm
by jhussey
Ok, I saved this as a .mac in the release/macros folder now how do i actually execute it in game.

I'm not real familiar with MQ2 but have a strong background in C++, just need a bit of help with syntax using this stuff.

If this isnt how I'm supposed to load up a macro then please correct me!

Posted: Sun Jan 23, 2005 4:01 pm
by n00bCoder
ok... it's pretty simple... for one, this is NOT a plugin and therefore does NOT need compiling.. Just save it to your MQ2\Release\Macros folder wherever you compiled MacroQuest to. Save it to a text document and be sure to change the extension to .mac, and not .txt, you'll prolly have to change the file extention thingie to all file types to do it tho.. And to run it, just type /macro and the macro's name (ex. /macro twist.mac) in the MQ2 field thing. some macros have extra things (i think there syntax commands, not sure tho) and there added on at the end, read the directions that come with the file, either in the file itself or written where it was posted in the forums. (they're like /macro twist.mac 1 2 3, and that would twist the first second and third songs/spells for example, if thats what the macro called for.) hope i could help, we've all got to start somewhere...

Posted: Sun Jan 23, 2005 6:39 pm
by jhussey
thanks yo, got it working, appreciate it!

modified it a bit

Posted: Mon Sep 05, 2005 10:42 am
by MareDK
Modified it quite a bit, removed the irc stuff

new stuff:
* show # of levels gained
* show # of AAs gained
* show # of minutes the macro has been running

Shows the exp info in popup and as echo, but only show the amount of AAs and Levels as echo.

enjoy it.

Code: Select all

|-- exptrack.mac
|-- by Raebis, with tweaks from Phoenix
|-- Version 0.6
|-- August 30th, 2004
|----------------------------------------------------
|-- Macro will track the immediate experience gained after each gain, as well as keep a running total over time.
|-- Blatantly stolen from AdvChant.mac specifically for the character being powerlevelled, since when you AE, you
|-- don't really want XP flashes at 20 per second when ALL the mobs die.  Does not differentiate between Group,
|-- Raid or Single XP, but really... it's far better this way... remove the (/popup)/(/i say) if you don't want them in there.
|-- Highly modified by Trigger

#event Exp "You gain#*#Experience#*#"
#event Level "You have gained a level!#*#"
#event Ping "You have gained an ability point#*#"

#turbo

Sub Main

/declare Exper float outer
/declare AAExp float outer
/declare Expstart float outer
/declare AAstart float outer
/declare Level int outer
/declare Ping int outer
   
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/varset Expstart ${Me.PctExp}
/varset AAstart ${Me.PctAAExp}
/varset Level 0
/varset Ping 0

/echo Trigger's Experience Tracker Starting...

:loop
/doevents
/goto :loop
/return

Sub Event_Exp
   /varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}]}
   /varset Exper ${Math.Calc[${Me.PctExp}-${Exper}]}

   /echo [EXP]: ${Exper} [AAXP]: ${AAExp} [${Math.Calc[${Me.PctExp}-${Expstart}]}% EXP] [${Math.Calc[${Me.PctAAExp}-${AAstart}]}% AA] in ${Math.Calc[${Macro.RunTime}/60]} minutes
   /echo [${Level} Levels] [${Ping} AAs]
   |/i say EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - ${Math.Calc[${Macro.RunTime}/60]} minutes
   /popup [EXP]: ${Exper} [AAXP]: ${AAExp} [${Math.Calc[${Me.PctExp}-${Expstart}]}% EXP] [${Math.Calc[${Me.PctAAExp}-${AAstart}]}% AA] in ${Math.Calc[${Macro.RunTime}/60]} minutes
   /varset Exper ${Me.PctExp}
   /varset AAExp ${Me.PctAAExp}
/return 

Sub Event_Level
/varset Level ${Math.Calc[${Level}+1]}
/varset Expstart 0.00

/return

Sub Event_Ping
/varset Ping ${Math.Calc[${Ping}+1]}
/varset AAstart 0.00

/return

Posted: Mon Sep 05, 2005 12:33 pm
by Night Hawk
/varcalc
Usage: /varcalc <varname> <formula>
Sets a variable directly to the numeric result of a calculation.
Example usage:
/varcalc MyInt 1+2*2+1
/varcalc MyInt 1+(2*2)+1
Woot for /varcalc!

Posted: Mon Sep 05, 2005 2:06 pm
by fearless

Code: Select all

   /varcalc AAExp ${Me.PctAAExp}-${AAExp}
   /varcalc Exper ${Me.PctExp}-${Exper}
   /varcalc Level ${Level}+1
   /varcalc Ping ${Ping}+1

Posted: Mon Sep 05, 2005 3:25 pm
by MareDK
ooh well just used what was already in the original macro hehe :)

will change it laters, have some other optimizations to do too on it.

Posted: Mon Sep 05, 2005 5:07 pm
by fearless
MareDK wrote:ooh well just used what was already in the original macro hehe :)

will change it laters, have some other optimizations to do too on it.
That is what I figured, but wasn't sure if you knew about varcalc or not so I threw you an example.

Posted: Tue Sep 06, 2005 8:43 am
by MareDK
aye and much appreciated too, will add it in, also changed something so it does AAs and Levels before it does EXP, else the first one shows negative exp

will post updated version later on today when I have tested some of the new functions, and I will most likely change it to just be a sub for other macros to include.

also adding it so it only popup with messages every 10 kills (nice on AE parties) and this can of course be modified to whatever ppl want it to be.


still learning hehe but I doing quite okay on some other macros I am fiddling with but that is for the VIP section.

Posted: Mon Feb 27, 2006 7:39 pm
by ataal
Is this still working for you all? EQ locks up as soon as I kill something. Just wondering if the patch might've broken it or I'm being a total n00b lol

::waits for hysterical, yet deserving flames:: :D

Posted: Thu Mar 23, 2006 10:06 pm
by goldinu
Works fine for me as of 9:10pm 23 Mar 2006

Posted: Sat May 06, 2006 1:45 am
by Kambic
Definitely time to rewrite this one.