Newbie questions

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

tdb
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun Jul 11, 2004 7:44 am

Newbie questions

Post by tdb » Sun Jul 11, 2004 8:11 am

Hi,

I've just installed MQ2 and everything is working well. Since i don't know a thing about MQ Programming, i made my first macro just to see if i could do something :D
Sub Main
:Loop
/cast 7
/delay 6s
/goto :Loop
/endmacro
=> Oki it worked well but after that i thought, oki if i make it work like that everybody that passby will be able to see that i'm macroing (always casting the same spell with the same timing). So my first question is: is there a ways to make a sound when the bot got a "hail", a "/priv" or anything else that might be a GM or player check to see if you are running a bot.

*Second thing was, oki i'm a script kiddie ( :wink: ) i can make a short macro but how are some more complicated macros ? So i took a look at the "fish.mac" macro to see how it was done. There i found out that for more advanced macro, i would have to check items handled or in containers: /if "$equip(primary,name)"~~"Fishing Pole"
But I'm not using an English version of EQ. So the macro "fish.mac" couldn't work for me as "Fishing Pole" is "Canne à Pêche" (same for others items). The thing that is stopping me isn't the transation of the items but the fact that in French (and in German) some typing can't be reconized by MQ2 (for exemple: é, è,à, ê, ë, ...). To take the exemple of "Fishing Pole" i translated it into the script as it appears into EQ (Canne à pêche) but when i run the macro i've got this:
fish.mac@40 (CheckPole): /if "$equip(primary,name)"~~"Canne □ P□che" /return
So is there a way to make MQ2 use another keyboard format or to use some "joker" into a string (* for exemple: Canne * P*che).

Thanks.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sun Jul 11, 2004 12:44 pm

/if "$equip(primary,name)"~~"Canne □ P□che" <-- that's the old format (and the reason for your error).

The new format would be something like

/if (${FindItem[Canne].InvSlot[mainhand]})

readme.chm is very helpful. Learn it. Live it. Love it.