requesting an example

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

requesting an example

Post by Madman » Sat Nov 02, 2002 6:04 pm

I would like to see an example of a moving feature. something that will take me from point a to b, then b to c, then c to d and last d back to point a. Almost like you were just running in a square but id like to provide specific quardenets to each point. I know it is possible but have never seen it actually done.

Also I know you can do a /who npc lvl. Is there a way to do a lvl range such as /who npc 22-25 or would that be to be made as a macro that i would need to run instead I know of ways to do it in a macro. I am just trying to stay away from macros when possible.

eqaddict
a lesser mummy
a lesser mummy
Posts: 74
Joined: Sun Sep 15, 2002 10:05 pm

run in square

Post by eqaddict » Sat Nov 02, 2002 6:40 pm

Off the top of my head and not tested. If it does not work for you I will debug )

Code: Select all

#include routines

Sub Main
   /call gotoloc 0,0
   /call gotoloc 100,0
   /call gotoloc 100,100
   /call gotoloc 0,0
/return
gotoloc is defined in routines.mac that comes in the macros directory

--EqAddict

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Sat Nov 02, 2002 7:07 pm

/who npc range 22 25

The answer to this is plainly in the readme file...
readme.html wrote:/who [pc|npc|corpse|any] [range <min> <max>] [radius <radius>] [guild] [lfg] [name] [alert #] [noalert #]
Returns level, class, race, distance, direction and pet information of any found mobs.

pc, npc, corpse, any limits matching to specific type of spawn (default pc)
range <min> <max> limits matching to level range
radius <radius> limits matching to a radius around yourself
guild limits matching to members of your guild
lfg limits matching to people looking for a group
name limits matching to spawn/pcs that contain "name"
alert # limits matching to spawn/pcs that are on alert list #
noalert # limits matching to spawn/pcs that are not on alert list #

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

Post by Madman » Sat Nov 02, 2002 8:08 pm

im sorry i missread the first line with range
error in my way i apologize

i was only seeing this
pc, npc, corpse, any limits matching to specific type of spawn (default pc)

If I understand what you are stating space can be used to supply multipe arguments.

does this mean i can supply multiple arguments at 1 time such as /who corpse 6 for all lvl 6 corpses?

Dont get me wrong i do use the readme(alot) but not everything is always obvious for non developers..


also thank you greatly for the example on moving it is a great help that was exactly what i was looking for.


Madman

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Sun Nov 03, 2002 5:43 am

Madman

by way of an explaination arguments enclosed in square brackets are optional ones. If there are multiple options for that argument they are seperated with a | .

Fippy

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

Post by Madman » Sun Nov 03, 2002 1:30 pm

upon reading the demo macro in the readme file you have there is a

Code: Select all

/mqlog Starting Money is approximately $StartingPlatpp 
no where in it can i find where you specify what $StartingPlatpp is.

i do see the
/varcalc StartingPlat $char(plat)+$char(gold)/10
but do not understand the missing $ that was added to the log file

The reason i am looking for this is because i want to create a hotbutton within eq where i can run to a point hit the hotbutton and it display my loc within a log file. Thus allowing me to make specifiy waypoints. grant it I could write them all down but im trying to get serious in my MQ coding.
The only way i can see feasibly and i know this proborably wont work but its a thought

Code: Select all

#event locvar "you are at"
/loc
/mqlog locvar
can anyone make sense of what I am trying to do and possbly point me in the right direction.

help is much apprecieated
Madman

Lurker_005
a lesser mummy
a lesser mummy
Posts: 51
Joined: Thu Oct 17, 2002 12:08 pm

Post by Lurker_005 » Sun Nov 03, 2002 2:11 pm

Is this what your after?

Code: Select all

/mqlog Loc: $char(x), $char(y)
is there a $char(z) also? not at home to check

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

Post by Madman » Sun Nov 03, 2002 2:51 pm

According to the readme you can only have it log txt or clear itself. Can you issue it variables like that.

if that will work as you show that would be awsome as i can not check either I am also at work.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Sun Nov 03, 2002 3:24 pm

Yes you can.

Code: Select all

/mqlog starting with $v40 mobs in zone

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

Post by Madman » Sun Nov 03, 2002 3:30 pm

finnaly this is all starting to make since thank you so much now that i realise i can issue variables in random spots within the commands it makes it much simpler.

Consilium
Contributing Member
Contributing Member
Posts: 100
Joined: Wed Oct 02, 2002 10:42 pm

Post by Consilium » Sun Sep 07, 2003 7:05 am

Lurker_005 wrote:Is this what your after?

Code: Select all

/mqlog Loc: $char(x), $char(y)
is there a $char(z) also? not at home to check

Tried this and all it seems to do is give me the same loc in the log no matter where I am.... anyone have any suggestions? Is this function broke?
-SH
+Student
digitalsavior.com