Im new *hence the name* can I get some help please?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Macrookie
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue Dec 23, 2003 5:50 am

Im new *hence the name* can I get some help please?

Post by Macrookie » Tue Dec 23, 2003 5:57 am

I don't really know what I am doing so I will tell you what I did. I saw the fletching macro thing on the macro page and I didn't really know what to do so I just opened c++ and went to New and then Macro. Then I just copied and pasted this in the window.

#turbo
#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSuceed "You have fashioned the items together to create something new!"

Sub Main
/declare v80 global
/declare p2 global
/declare v61 global
/declare v99 global
/declare p0 global
/declare return global
/declare slots global

/call FindCombiner Fletching
/varset v80 $return
/if n @v80==99 /return

/for slots 0 to 9
/press esc
/next slots

/press i
/click right inv @v80
/for slots 0 to 2
/click right inv @slots
/next slots

:MakeArrows
/varset v61 0
/sendkey down ctrl

/finditem "Several Parabolic Cut Fletchings"
/if $cursor()==NULL {
/sendkey up ctrl
/for slots 0 to 9
/press esc
/next slots
/endmacro
}
/click left pack @v80 0
/delay 5

/finditem "Small groove Nocks"
/click left pack @v80 1
/delay 5

/finditem "Bundled ceramic arrow Shafts"
/click left pack @v80 2
/delay 5

/finditem "Hooked Arrowheads"
/click left pack @v80 3
/delay 5

/sendkey up ctrl
/click left pack @v80 combine
/delay 5

/sendkey up ctrl
/doevents

/if n @v61==1 {
/echo Failed
} else {
/echo Succeeded
}
:DropArrows
/if $cursor()==TRUE {
/click left auto
/delay 5
}
/goto :MakeArrows
/return

Sub Event_CombineFail
/varset v61 1
/return

Sub Event_CombineSuceed
/varset v61 2
/return

Sub FindCombiner(p0)
/varset p2 99
/for v99 0 to 7
/if "$pack(@v99,combine)"=="@p0" /varset p2 @v99
/next v99
/return @p2

and then I hit Build, Compile macro1.dsm and it came up with an error as follows: Cannot compile the file 'C:\Documents and settings\Jason\Desktop\Macro.dsm'; no compile tool is associated with the file extension.

What am I doing wrong?
Please help me :)
Im new :)

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Tue Dec 23, 2003 6:08 am

macroquest macros are not compiled, they are scripts, fed into mq when its running, via calling "/mac docombine.mac" etc in game. you need to get macroquest running on its own, injecting into eq, and not crashing your client, before you can use macro script files to simplify/automate tasks. 'macros' in vc++ in that context are just part of the interface

now, atm, the currently available source in zipped form absolutely does not work with eqlive's client, it was for the 11-25-03 dated client. the current (12-19-03) client has undergone alot of changes. they need to be rediscovered and organized before mq works for eq again. this is the cycle we live with as eq mq users.

what i recommend is to look at this page (please note as is on the page: MQ1 is dead. MQ2 is what is actively supported and maintained.)
http://macroquest2.com/main.php?p=download
and read the documents on setting up/compiling mq. take the currently available source and make the project - if you can get a MQ2Main.dll, then you've learned what it takes to compile MQ itself. once mq is working again (the devs update their current status thread), you will be able to setup and use mq in eq, and run/test macros to learn the scripting lang.

Macrookie
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue Dec 23, 2003 5:50 am

Thanks

Post by Macrookie » Tue Dec 23, 2003 6:37 am

thanks for all the help, you are great. I will read that thoroughly.
Im new :)

boldor
a ghoul
a ghoul
Posts: 94
Joined: Tue Sep 10, 2002 11:46 am

Post by boldor » Tue Dec 23, 2003 1:44 pm

Macro = interpreted lines meaning each line is read and then acted upon from a file.

MQ2 = Compiled object from a proggie ie C++ .NET etc