Page 1 of 3

Textpad syntax file

Posted: Wed Oct 02, 2002 9:29 am
by Fippy
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

Posted: Wed Oct 02, 2002 11:55 am
by rizwank
is this updated to 1001 IRC?

Bless you fippy

Posted: Wed Oct 02, 2002 12:28 pm
by Fippy
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

Posted: Wed Oct 02, 2002 1:35 pm
by Draekz
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

Posted: Wed Oct 02, 2002 4:00 pm
by Fippy
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

Posted: Wed Oct 02, 2002 4:25 pm
by rizwank
wow this works nicely.

thanks fippy!

Posted: Wed Oct 02, 2002 4:33 pm
by Draekz
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

Posted: Wed Oct 02, 2002 4:48 pm
by Fippy
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

Posted: Wed Oct 02, 2002 6:31 pm
by Draekz
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

Posted: Sat Oct 19, 2002 6:30 am
by Fippy
few small changes with alerts in IRC20021016 added.

Fippy

Posted: Fri Oct 25, 2002 10:03 am
by Fippy
Updated to IRC20021024

Fippy

Posted: Tue Oct 29, 2002 12:11 pm
by Stank Funkyfanger
I've just been using Quicktime to view my mac files. Doesn't work though. Grrr, this stuff is HARD!!

(I'm kidding!) :wink:

Posted: Tue Oct 29, 2002 12:19 pm
by Fippy
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

Posted: Sun Nov 03, 2002 5:19 pm
by Damien_lord_of_newbs
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........

Posted: Sun Nov 03, 2002 6:05 pm
by Born again
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}