Ultraedit syntax file

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Ultraedit syntax file

Post by grimjack » Fri Oct 03, 2003 1:40 am

Most keywords are in there and the new user defined variables should show up as their own color.

Code: Select all

/L10"MacroQuest" Nocase Line Comment = | Block Comment On = |** Block Comment Off = **| String Chars = "' File Extensions = MAC INC
/Delimiters = <>=~!@%^&()+{}[];"'     ,?
/C1"Pre-Processor"
#turbo
#define
#include
#event
#chat
/C2"MQ Commands"
// /alert /alias /beep
// /breakin /buyitem
// /call /cast /cleanup /click /commands
// /declare /delay /doability /doevents /doors /doortarget 
// /echo /end /endmacro
// /face /filter /finditem /for
// /goto
// /identify /if /items /itemtarget
// /lclicktarget /listmacros
// /macro /mapfilter /mem /memspell /merchant /mouseto /mqlog /mqpause /msgbox
// /next /perl /press
// /return /rclicktarget
// /sendkey /sellitem /seterror /seterror /skills /spewfile
// /telnet
// /unload
// /varadd /varcalc /varcat /varset /varsub
// /where
// /zapvars
sub
/C3"Macro Keywords"
aa ability add alert all ammo any arms array array2 auto
back bank birth book bound buff buy
castradius casttime charm chest class clear color combine concolor corpse count cur
debug defaultheading defaultx defaulty defaultz distance done door down duration
ear1 ear2 else encumber enhanced enviro
face fast feet finger1 finger2 food
gem gender give global gold gm ground guild 
h hands head heading headingto held hotkey hp hslider
id increased inv item 
left leggs level lfg light list loc local look lore
m macro magic main mana map master max merchant money mycasttime mycorpse myself
n name npc neck next noalert noarrays nodrop none nopcnear nopredict norent notid notimers novars npctrade nearalert notnearalert
off on open
pack pc pct pet plat position previous predict primary
race radius range ranged recasttime recoverytime remove right
s secondary sell shoulder silver size shield slot skills speed spell spellbook stack stamina state spawnradius
target timer to trigger type
up
value vector
waist weight wrist1 wrist2 
x
y
z zradius zrange
** Event_
/C4"Macro Vars"
$a $abs $acos $alert $arg $asin $atan 
$calc $char $combat $corpse $cos $count $cursor 
$date $defined $distance $door 
$envopen
$find $freeinv $freespace
$getlasterror $giveopen $gm $ground $group 
$heading 
$id $if $instr $int $invpanel $item 
$lastcommand $lasttell $lcase $left 
$merchant $mid $mouse 
$pack $pack 
$rand $return $right $running 
$searchspawn $selecteditem $selectedtarget $sin $spawn $spell $strlen
$t $tan $target $time 
$ucase 
$v 
$zone
/C5"User Vars"
** @
/C6"EQ Commands"
// /anon /a /afk /assist /attack /auction /autoinventory /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 /g /guildsay /gu /guildinvite /guildremove /guilddelete /guildstatus /guildleader /guildwar /guildpeace /guildmotd 
// /help /hidecorpses /hslider 
// /ignore /inspect /invite /invwinlabels 
// /language /lfg /log /location /loc /loot /lootnodrop 
// /mcicontrol /me /memspellset /mousespeed /msg 
// /note 
// /ooc /open
// /pet /petition /played 
// /quit 
// /random /reply /report /resetwindows /reverb /reversesound /roleplay /rol 
// /serverfilter /shout /shownames /showspelleffects /sit /split /stand /stopsong /surname
// /target /targetgroupbuff /tell /time /trackfilter /trackplayers /tracksort 
// /usercolor 
// /vrdelay 
// /who /whotarget
// /wincolor /yell
/C7"EQ Emotes"
// /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
/C8"Functions"
** : 
Thanks
GrimJack
Last edited by grimjack on Mon Oct 20, 2003 6:30 am, edited 6 times in total.
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.

Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.

My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Oct 03, 2003 9:12 am

Thanks Grim. I keep meaning to get a copy of UltraEdit :)
MQ2: Think of it as Evolution in action.

MQSEQ
Hypocrite fag
Posts: 181
Joined: Fri Sep 19, 2003 5:18 pm

Post by MQSEQ » Fri Oct 03, 2003 9:59 am

We need to add the /autoinventory command in the EQ command section. It appears that folks are going to start using that vs. /click left auto

http://www.ultraedit.com

UltraEdit is a great tool to have with it's own macro language you can create a base shell for MQ macro's then have smaller macro's to create different routines. Basically saves you alot of time on editing files.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Oct 03, 2003 10:19 am

Got it, now just gotta figure out how to use the syntax files :) I know the instructions are posted around here someplace :)
MQ2: Think of it as Evolution in action.

MQSEQ
Hypocrite fag
Posts: 181
Joined: Fri Sep 19, 2003 5:18 pm

Post by MQSEQ » Fri Oct 03, 2003 10:37 am

Follow this link http://macroquest2.com/phpBB2/viewtopic.php?t=1974

To use the color Syntax go to View then View File as Macroquest, That will cause it to colorize it.

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

was working on this

Post by Consilium » Thu Oct 09, 2003 2:06 am

Was just working on this lol... thanks for saving me some time!
-SH
+Student
digitalsavior.com

ztilleto
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Jan 21, 2004 10:33 am
Location: Denmark
Contact:

Post by ztilleto » Wed Jan 21, 2004 10:39 am

Thanks GrimJack.

Just some info for those who might not be using UE with the tab to space convertion.. This could result in your code not displaying prober highlighting when tabing.

When insterting the syntax into the wordfile of UE, just edit this current line.

Code: Select all

/Delimiters = <>=~!@%^&()+{}[];"'     ,? 
In between the ' and , remove the many spaces and insert a single space and a push on the TAB, this should help with the syntax on tabed lines.

But thanks for the work in making this, saves a hell of a time... :)
"[i]Heart of a Lion, and the Wings of a Bat.... Because it's midnite.[/i]" - Limozeen

DrMadd
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Jun 03, 2003 1:03 pm

Post by DrMadd » Sat Jan 31, 2004 1:10 pm

in the syntax file, I see wrist1 and wrist2


In the manual it says, rwrist and lwrist ( for right and left )


Which is correct and is there an up-to-date syntax file ?


DrMaDd

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Thu Nov 18, 2004 3:10 pm

Figured I'd take my own shot at updating this for MQ2 datatypes and simplifying things a bit.

Code: Select all

/L10"MacroQuest" Noquotes Line Comment = | Block Comment On = |** Block Comment Off = **| File Extensions = MAC INC 
/Delimiters = <>~^%\&|=!+-/*$(){}[]" 	',
/Indent Strings = "{"
/Unindent Strings = "}"
/C1"Pre-Processor" 
** #
/C2"Subroutines" 
Sub
// /return /end
/C3"MQ Commands"
** /
else
/C4"MQ2 Data"
$
{
}
/C5"Array Index/Operators"
+
-
// /
\
*
%
& &&
| ||
~
^ ^^
[
]
==
! !=
> >> >=
< << <=
/C6"Inventory Slots"
ammo arms
back
charm chest
face feet
hands head
leftear leftfinger leftwrist legs
mainhand
neck
offhand 
ranged rightear rightfinger rightwrist
shoulder
waist
** bank bazaar enviro inspect loot merchant pack sharedbank trade 
/C7"Spawn Filters"
alert any
bard beastlord ber berserker brd bst body
check checknext class cleric clr corpse
enc enchanter
dru druid
GUILD
gm group guild
id
knight
light lfg loc
mag magician mnk monk
named nearalert nec necromancer next noalert noguild nopcnear nopet notid notnearalert npc 
pal paladin pc pet prev
ranger rng rog rogue
shd shm shaman shadow
timer trader trap trigger
untargetable
radius range
war warrior wiz wizard
zradius
It just treats anything following a slash as a command, so auto-correction doesn't work. Didn't seem like a huge issue to me, but if you want this it's easy enough to copy the commands from the syntax file above.

I'm going to add in some TLOs, at least the character and spawn stuff, and maybe take a whack at getting it to expand ${} and [] as if they were functions or something. Any comments/advice appreciated.

edit: fixed the error mentioned below, thanks druid/sharp
Last edited by Cr4zyb4rd on Fri Nov 19, 2004 4:02 pm, edited 1 time in total.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Fri Nov 19, 2004 2:16 pm

Is it just me, or is Cr4zy's syntax file neglecting to unindent correctly? I added in the indent and unindent syntax to the file from the top post and it seems to unindent fine.

Weird stuff
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Sharp of Fairlight
VIP=Very Impressive Pimpin'
Posts: 108
Joined: Wed Oct 29, 2003 3:54 pm
Location: Sweden

Post by Sharp of Fairlight » Fri Nov 19, 2004 2:42 pm

Not realy weird if you look at the spelling...
/Indent Strings = "{"
/Unindent Strigns = "}"

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Fri Nov 19, 2004 3:24 pm

Hoho, slain by the english language
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Fri Nov 19, 2004 4:00 pm

Sorry, i was banging my head off of a bug much like that one for over an hour, and got so frustrated I didn't check the other parts as well as i otherwise might have :)