Page 1 of 1

MacroQuest TextPad syntax definition file

Posted: Sat Aug 31, 2002 6:59 am
by ddh
Includes all the MQ commands, EQ commands, EQ emotes, etc. To get full use out of it, when you're creating your new document class be sure to set some colors for each of the keyword blocks. Copy/paste into a file of your own and name it something like mq.syn

edit: Problem with one of the commands.
[[L124RD's note - If the line 'c=1' has a space after it when you copy it into a file to save it, remove it before saving]]


; MacroQuest syntax definitions by ddh
; webmaster@digitaldh.net
; Created on August 31st, 2002

C=1

[Syntax]
Namespace1 = 5
IgnoreCase = Yes
KeyWordLength =
BracketChars = {[()]}
OperatorChars = -+*<>!~%^&|=
PreprocStart = #
SyntaxStart =
SyntaxEnd =
HexPrefix =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment = |
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = No
StringStart =
StringEnd =
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =

[Preprocessor keywords]
#turbo
#define
#include
#event
#chat

[Keywords 1]
:
Sub
/face
/finditem
/identify
/items
/itemtarget
/where
/doors
/doortarget
/alias
/alert
/mouseto
/cleanup
/sendkey
/press
/mqpause
/skills
/macro
/endmacro
/listmacros
/mqlog
/if
else
/for
/next
/goto
/zapvars
/seterror
/msgbox
/varset
/varadd
/varsub
/varcalc
/delay
/call
/return
/doevents
/unload
/breakin

[Keywords 2]
$pack
$cursor
$item
$equip
$count
$freeinv
$find
$mouse
$distance
$alert
$zone
$lasttell
$target
$char
$combat
$invpanel
$merchant
$return
$rand
$getlasterror
$gm
$arg
$calc
$abs
$int
$lastcommand
$sin
$cos
$tan
$asin
$acos
$atan
$running
$time
$date
$p
$a
$t
$v

[Keywords 3]
/pet guard
/pet follow
/pet attack
/pet back
/pet as you were
/pet get lost
/pet report
/pet health
/pet notaunt
/pet no taunt
/pet taunt
/pet stand
/pet sit
/anon
/a
/afk
/assist
/attack
/auction
/auc
/autojoin
/autosplit
/book
/bug
/camp
/cast
/channel
/chatfontsize
/consent
/corpse
/decline
/disband
/dismount
/doability
/duel
/d
/dynamiclights
/em
/exit
/facepick
/fastdrop
/feedback
/filter
/follow
/friend
/gems
/gsay
/help
/hidecorpses
/ignore
/inspect
/invite
/invwinlabels
/language
/lfg
/log
/location
/loc
/loot
/lootnodrop
/mcicontrol
/me
/mousespeed
/msg
/note
/ooc
/petition
/played
/quit
/q
/random
/rand
/reply
/report
/resetwindows
/reverb
/reversesound
/roleplay
/role
/serverfilter
/shout
/shownames
/showspelleffects
/sit
/split
/stopsong
/surname
/targetgroupbuff
/tell
/time
/trackfilter
/trackplayers
/tracksort
/usercolor
/vrdelay
/who
/who corpse
/whotarget
/wincolor
/yell
/guildsay
/gu
/guildinvite
/guildremove
/guilddelete
/guildstatus
/guildleader
/guildwar
/guildpeace
/guildmotd
/ooc

[Keywords 4]
/Agree
/Amaze
/Apologize
/Applaud
/Bite
/Bleed
/Blink
/Blush
/Boggle
/Bonk
/Bored
/Bow
/Brb
/Burp
/Bye
/Cackle
/Calm
/Cheer
/Clap
/Comfort
/Congratulate
/Cough
/Cringe
/Cry
/Curious
/Dance
/Drool
/Duck
/Eye
/Fidget
/Flex
/Gasp
/Giggle
/Glare
/Grin
/Groan
/Grovel
/Happy
/Hungry
/Introduce
/Jk
/Kneel
/Lost
/Massage
/Moan
/Mourn
/Nod
/Nudge
/Panic
/Pat
/Peer
/Plead
/Point
/Ponder
/Purr
/Puzzle
/Raise
/Ready
/Roar
/Rofl
/Salute
/Shiver
/Shrug
/Sigh
/Smack
/Smirk
/Snarl
/Snicker
/Stare
/Tap
/Tease
/Thank
/Thirsty
/Veto
/Wave
/Welcome
/Whine
/Whistle
/Yawn

[Keywords 5]
on
off
desktop
open
play
pause
stop
step
back
eject
cdaudio
up
down

Posted: Sun Sep 01, 2002 5:31 pm
by rizwank
very cool....
l124rd can show you how to post files, if youd like

might want to post alink for those of us that dont know google.
http://www.textpad.com/
http://www.textpad.com/download/index.html

Posted: Sun Sep 01, 2002 6:30 pm
by Fippy
Also noticed that a rouge space after the C=1 line caused and error in the .syn file, Once remove all is AOK.

Posted: Sun Sep 01, 2002 7:37 pm
by rizwank
can you make /goto : a keyword instead of /goto... i get pissed at myself everytime I goto x without making it goto :x ... thinking of the basic days i guess.
rk

Posted: Sun Sep 01, 2002 8:42 pm
by ddh
rizwank: /goto : wouldn't make much difference over /goto. TextPad doesn't actually do any checking over if you match a command or not, it just does colorization. And, unless you have a large font, the : is barely noticable as colored. I shoulda posted links. :) Posting files woulda been dandy, a lot nice than posting all of the syntax file.

Fippy: The space wasn't in my file. It was added when you copy/pasted from the board. But good of you to mention that.

Posted: Sun Sep 01, 2002 8:47 pm
by rizwank
its added in the board itself, a trailing space.

maybe code would work

Code: Select all

space test... is there a space after this? CRnext
space test... is there a space after this? endcodenext

Posted: Sun Sep 01, 2002 8:47 pm
by rizwank
if there is a CR return, a space is added. if there is not, there is not. not sure of how to fix beyond making a ton of code flags.

Posted: Sun Sep 01, 2002 8:59 pm
by ddh
Post a note saying "Remove the space after C=1" :)

Posted: Sun Sep 01, 2002 9:58 pm
by L124RD
Salutations,
on my comp, copying the definition file in to notepad and then saving it, i didn't find a problem with the leading space, but i'll mention it.

Posted: Wed Sep 04, 2002 8:39 am
by Fippy
Missing commands

Standard EQ
/target
/stand

MacroQuest
/echo
/click

Posted: Wed Sep 04, 2002 11:05 am
by rizwank
and will you update this when next version comes out?

Posted: Mon Sep 23, 2002 6:33 pm
by rizwank
anyone willing to update this?

Posted: Sun Sep 29, 2002 5:32 pm
by rizwank
Un stickying cause its behind and im not updating it right now

will restick if updated.