Textpad 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
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Textpad syntax file

Post by Fippy » Wed Oct 02, 2002 9:29 am

EDIT No new commands in IRC20021005a relase so still current.
EDIT Commands are current as of IRC20021001a release.
EDIT Commands are current as of IRC20021016 release.
EDIT Commands are current as of IRC20021024 release.
EDIT Commands are current as of IRC20021116 release.
EDIT Commands are current as of IRC20021201 release.

Please Note: There may be a space after the c=1 line that you will have to delete before it works.


OK I use Texpad for all my text editing. There has been a syntax definition file posted before but its out of date now so I made a new one.
you can get Textpad at http://www.textpad.com it doesnt cost much so go buy it already.

Code: Select all

; MacroQuest syntax definitions Originally by ddh 
; webmaster@digitaldh.net 
; Created on August 31st, 2002 
; Cleaned up and added all commands up to IRC20021116 
; on December 1st, 2002 by Fippy 

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] 
: 
/alert 
/alias 
/beep 
/breakin 
/call 
/cleanup 
/click 
/commands 
/delay 
/doevents 
/doors 
/doortarget 
/echo 
/endmacro 
/face 
/filter 
/finditem 
/for 
/goto 
/identify 
/if 
/items 
/itemtarget 
/listmacros 
/macro 
/mem 
/merchant 
/mouseto 
/mqlog 
/mqpause 
/msgbox 
/next 
/perl 
/press 
/return 
/sendkey 
/seterror 
/seterror 
/skills 
/spewfile 
/telnet 
/unload 
/varadd 
/varcalc 
/varset 
/varsub 
/where 
/zapvars 
downto 
else 
Event_Chat 
Event_ 
Event_Timer 
main 
n 
sub 
to 

[Keywords 2] 
$a 
$abs 
$acos 
$alert 
$arg 
$asin 
$atan 
$calc 
$char 
$combat 
$cos 
$count 
$cursor 
$date 
$distance 
$door 
$find 
$freeinv 
$getlasterror 
$gm 
$ground 
$group 
$heading 
$id
$if 
$instr 
$int 
$invpanel 
$item 
$lastcommand 
$lasttell 
$lcase 
$left 
$merchant 
$mid 
$mouse 
$p 
$pack 
$pack 
$rand 
$return 
$right 
$running 
$sin 
$spawn 
$spell 
$strlen 
$t 
$tan 
$target 
$time 
$ucase 
$v 
$zone 

[Keywords 3] 
/anon 
/a 
/afk 
/assist 
/attack 
/auction 
/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 
/mousespeed 
/msg 
/note 
/ooc 
/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 

[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] 
aa
ability 
add 
alert 
all 
allbutgroup 
ALWAYS 
ammo 
arms 
as 
attack 
auto 
away 
back 
bank 
birth 
Blue 
book 
bound
buff
cash 
cdaudio 
chest 
class 
clean 
clear 
combine 
Consider 
copper 
corpse 
cur 
defaultheading 
defaultx 
defaulty 
defaultz 
delete 
desktop 
destroy 
distance 
done 
door 
down 
e 
ear1 
ear2 
eject 
empty 
enchanced 
encumber 
enviro 
equip 
exp 
face 
fast 
feet 
finger1 
finger2 
flush 
follow 
food 
gem 
gender 
get 
gm 
gold 
Green 
guard 
guild 
hands 
has 
head 
heading 
headingto 
health 
held
here 
hotkey 
hslider 
hp 
id 
increase 
ismoving
item 
left 
legs 
level 
light
list 
loc 
lore 
lost 
m 
macros 
magic 
mana 
master 
max 
me 
merchant 
money 
mycorpse 
myself 
name 
nearalert 
neck 
NEVER 
next 
noalert 
noarrays 
nodrop 
none 
nopredict 
norent 
Normal 
notaunt 
notid 
notimers 
notnearalert 
novars 
npc 
npctrade 
OFF 
ON 
open 
pack 
pause 
pct 
pet 
plat 
play 
prev 
primary 
race 
radius 
range 
ranged 
right 
Rconsider 
Rdistance 
Red 
report 
s 
secondary 
server 
shoulder 
silver 
similar 
sit 
size 
skill 
skills 
slot 
slots 
SOMETIMES 
space 
speed 
stack 
stamina 
stand
state
step 
stop 
surname 
target 
target 
taunt 
trader 
type 
up 
value 
waist 
weight 
were 
White 
wrist1 
wrist2 
x 
y 
Yellow 
you 

Fippy
Last edited by Fippy on Tue Dec 03, 2002 3:50 pm, edited 9 times in total.

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

Post by rizwank » Wed Oct 02, 2002 11:55 am

is this updated to 1001 IRC?

Bless you fippy
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

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

Post by Fippy » Wed Oct 02, 2002 12:28 pm

Just DL'd 1001a gonna add new entries then Ill edit my first post and put a line at the top with the MQ version its up to date with.

Fippy

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Wed Oct 02, 2002 1:35 pm

EDIT: Bleh nm i think i realized what its for :P But correct me if im wrong please. Is it basically just a reference file of all the commands? or does it actually integrate with macroquest after renaming it to something? Thanks for any info ;) a lot of commands here i never knew existed!

Draekz
--------------------

Hey quick question, where do i save that code to?

Just downloaded the program but not sure what to name that code file as?

Was looking around and couldnt find the syntax thing you were talking about.

I know this sounds newb..cuz it is..i havent used textpad before ;) But it seems like a kewl program so would like to get into it.

Thanks

Draekz

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

Post by Fippy » Wed Oct 02, 2002 4:00 pm

Its a file you drop into your installation of the excellent Text file editor called textpad. With a little configuration of the editor you can then open up .mac files and you get nice syntax highlights. i.e Commen lines are green, commands are blue, and so on.

It just makes it easier to read and debug your code.

Fippy

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

Post by rizwank » Wed Oct 02, 2002 4:25 pm

wow this works nicely.

thanks fippy!
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Wed Oct 02, 2002 4:33 pm

ahhh ok great thanks :) I presume it goes into samples folder? or just where all the rest of the .syn files are? hehe

Sorry againf or the questions :) But thanks for the response ahead of time

Draekz

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

Post by Fippy » Wed Oct 02, 2002 4:48 pm

Just drop it in the system folder and then in Textpad goto configure menu and select new document class. Run through the wizard associating with .mac files and select the file in the dropdown box.

Fippy

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Wed Oct 02, 2002 6:31 pm

EDIT: I personally made the Keywords a dark red color rather than Dark blue..it was hard to distinguish the color between the commands and keywords :) The darkred also goes well beside the syntax brackets.

Just my 2 cents ;)
--------------------------

Ahh Great thanks Fippy ;) Much appreciated..thats an amazingly well done config :)

Kinda reminds me of old VB colors and whatnot ;) hehe.

Thanks for the info!!! This actually makes it much easier to understand the coding of the macro scripts!

Job well done and Thanks again :)

Draekz

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

Post by Fippy » Sat Oct 19, 2002 6:30 am

few small changes with alerts in IRC20021016 added.

Fippy

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

Post by Fippy » Fri Oct 25, 2002 10:03 am

Updated to IRC20021024

Fippy

Stank Funkyfanger
decaying skeleton
decaying skeleton
Posts: 3
Joined: Thu Oct 24, 2002 11:49 am

Post by Stank Funkyfanger » Tue Oct 29, 2002 12:11 pm

I've just been using Quicktime to view my mac files. Doesn't work though. Grrr, this stuff is HARD!!

(I'm kidding!) :wink:

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

Post by Fippy » Tue Oct 29, 2002 12:19 pm

First time i tried to open a .mac it opened in Paint Shop Pro.

Looks pretty funkly but not quite what i had in mine for a graphical editor.

Fippy

User avatar
Damien_lord_of_newbs
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Nov 03, 2002 7:34 am

Post by Damien_lord_of_newbs » Sun Nov 03, 2002 5:19 pm

i keep getting an error once ive set this up to work, the error says "invalid data in line 7 of c:\program files\textpad 4\system\mac.syn" any clue why? i used your exact code........
<<I hAve c0ME F0r J00R K3wl $CripT5>> oh wait......im not a "kewl dood"

Born again
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun Nov 03, 2002 2:13 pm

Post by Born again » Sun Nov 03, 2002 6:05 pm

Delete the blank space directly at the end of the c=1 line.

ie c=1{blank space here}{carriage return}

should be:
c=1{carriage return}