Game Guides Archive
Thread: Ultimate Buff Macro and Chat Command Parser
Code:
version: 0000
1 keepalive dizzyRecovery #ffffff /pause 0.25;/decline;/sit;/pause 300;/macro keepalive;
2 BotStart consent #ffffff /pause 0.25;/say Initializing C-aR v2.3 SE;/ui action chatTab 1;/save botalias.bak;/savelog;/disablegroup;/disablesm;/disablehoard;/disableguild;/unalias :queued:command: doublecheck;/macro logcheck;/macro keepalive;/pause 1;/savelog;/macro botparse;
3 botparse CMD_uiOptions #ffffff /pause 0.25;/doublecheck;/set:doublecheck;/save_alias profiles\\StationID\\Galaxy\\##########_chatlog.txt;/log;/log;/pause 0;/pause 0.1;/save_alias aliases.txt;/load_alias profiles\\StationID\\Galaxy\\##########_chatlog.txt;/load_alias aliases.txt;/:svc:ava:b;/:svc:ava:h;/bot;/:tipcheck:;/:sm:;/pause 0.5;/unalias doublecheck;/macro botparse;
4 logcheck alert #ffffff /pause 0.25;/:a0: :logcheck: /macro logcheck;/log;logcheck;/pause 2;/:logcheck:
5 smparse alert #ffffff /pause 0.25;/:a0: :smc: /sq:add;/:smd:;/:a0: :smc: /echo;/:smd:;/ui action chatHistoryUp;/ui action chatCursorEnd;/bs10;/ui action chatCursorLeftOneWord;/ui action chatCursorLeft;/ui action chatCursorLeft;/ui action chatCursorLeft;/ui action chatBackspace;/ui action chatBackspace;/ui action chatBackspace;/ui action chatBackspace;/ui action chatCursorLeft;/ui action chatCursorLeft;/bs20;/bs20;/bs20;/ui action chatCursorHome;/ui action chatDelete;/ui action chatEnter;
6 BotStop CMD_uiService #ffffff /pause 0.25;/log;/say Bot functions terminating;/:tr:cu:now;/dump;
10 mainstartdoc love #ffffff /pause 0.25;/say C-aR 2.3 SE and DSM 4.3 Initialization begun;/load_alias botaliases-v4.2.txt;/save_alias aliases.txt;/ui action chatTab 7;/earth;/echo \#FF0000**************************************************************STARTING DOC SERVICES*************************************************************\#FFFFFF;/ui action toolbarPane01;/pause 1;/ui action chatTab 1;/tq:init;/pause 1;/sq:init;/pause 1;/bq:init;/pause 1;/hq:init;/pause 1;/unalias :sq:ee:;/tq:s:error /:queue:overflow:timed;/sq:s:error /:queue:overflow:sm;/sq:s:to:error /:queue:timeout:sm;/bq:s:error /:tip:b:queue:full:;/hq:s:error /:tip:h:queue:full:;/macro botstart;/:a0: :botstart: startdoc
11 gvsrv:b CMD_uiOptions #ffffff /pause 0.25;/gvsrv:b
12 gvsrv:h CMD_uiOptions #ffffff /pause 0.25;/gvsrv:h
13 done:b alert #ffffff /pause 0.25;/echo /:a0: :bcc: /tr:cu;/echo /:bcd:;/stat:free:b;/:set:svc:ava:b;/:tc:b;/unalias :bcust: :dobuff: :svc:b :svcsay:b :b:queue: :bcd: :bcc:;/pause 0.4;/:sb:2:b;
14 done:h alert #ffffff /pause 0.25;/echo /:a0: :hcc: /tr:cu;/echo /:hcd:;/stat:free:h;/:set:svc:ava:h;/echo /:tc:h;/unalias :hcust: :svc:h :svcsay:h :hwound:;/pause 0.4;/:sb:2:h;
20 healwound alert #ffffff /pause 0.25;/:hcust:;/pause 9;/tq:add /:bqueue:2;/pause 9;/:hwound:
30 docspam sleepy #ffffff /pause 0.25;/shout The doctor is in!!! Wounds healed and buffs given in the starport. Read my bio for instructions, then /tip Jen-li when you are ready.;/pause 20;/stat:say;/pause 60;/shout Imperial combatants, neutrals, and rebels on leave ONLY. ;/pause 20;/stat:say;/pause 60;/shout Do not be fooled by imitators! Get the service YOU want when YOU want it. Only want buffs? I can give you the buffs you want! Only want heals? I can just heal! Want both? Ask for both!;/pause 20;/stat:say;/pause 60;/shout No need to group, but if you need a L80 to group with I can provide, only 1 credit! No need to wait, no need to invite, just /tip jen-li the proper amount and get the service you need NOW!;/pause 20;/macro docspam2
31 docspam2 sleepy #ffffff /pause 0.25;/stat:say;/pause 60;/:shout: /Tip Jen-li at any time! I will process service requests in the order tips are recieved. No need to wait in line, just tip me and I'll get to you when it's your turn!;/pause 20;/stat:say;/pause 60;/shout CASH ONLY, I cannot process bank tips, if you need cash please head on over to the bank. Just "/tip jen-li" the appropriate amount for the service you want. Repeat NO BANK TIPS.;/pause 20;/stat:say;/pause 60;/pointat (Please-Recharge-Me);/shout Please keep my droid charged! If he's charged my buff duration increases 15%! If you need a power droid, see my droid for a waypoint to a droid vendor with them in stock.;/pause 20;/stat:say;/pause 60;/macro docspam
40 checkamount CMD_uiOptions #ffffff /pause 0.25;/set:tipback:;/:tipchk:;/check:proper;/ui action chatTab 7;/earth;/ui action chatTab 1;
50 1 alert #ffffff /pause 0.25;/:t:a:;/:a0: :grpcmd: /invite;/:a0: :msgcmd: /;/:msgdo:;/:a0: :msgcmd: /:grpcmd:;/:msgdo:;/pause 60;/g Attention all group members. Occasionally loot access becomes bugged, if this happens instead of using /loot, or double clicking, or using the "loot all" option from the radial menu, instead use the "loot" option above "Loot all" and you can loot from there.;
51 500 alert #ffffff /pause 0.25;/bq:add /:svc:adrenal;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :bcnc: /:sb:b Thank you %TT. Your Adrenal Boost request is acknowledged and I will get to it as soon as I can. Currently there are;/:bcn: customers in line for buffs.
52 550 alert #ffffff /pause 0.25;/hq:add /:svc:100wounds;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :hcnc: /:sb:h Thank you %TT. Your 100 wound heal request is acknowledged and I will get to it as soon as I can. Currently there are;/:hcn: customers in line for heals.
53 666 alert #ffffff /pause 0.25;/:t:a:;/:a: :msgcmd: /target;/:msgdo:;/pause 0.4;/cower;/say Ok %TT, you're kinda freakin me out here. Really, that's not cool.;/bad
54 700 alert #ffffff /pause 0.25;/:t:a:;/say Eating bivoli, please wait...;/ui action toolbarPane05;/ui action toolbarSlot00;/ui action toolbarSlot01;/ui action toolbarSlot02;/ui action toolbarSlot03;/ui action toolbarSlot04;/ui action toolbarSlot05;/pause 1;/ui action toolbarPane05;/ui action toolbarSlot06;/ui action toolbarSlot07;/ui action toolbarSlot08;/ui action toolbarSlot09;/ui action toolbarSlot10;/ui action toolbarSlot11;/pause 1;/ui action toolbarPane05;/ui action toolbarSlot12;/ui action toolbarSlot13;/ui action toolbarSlot14;/ui action toolbarSlot15;/ui action toolbarSlot16;/ui action toolbarSlot17;/pause 1;/ui action toolbarPane05;/ui action toolbarSlot18;/ui action toolbarSlot19;/ui action toolbarSlot20;/ui action toolbarSlot21;/ui action toolbarSlot22;/ui action toolbarSlot23;/pause 1;/ui action toolbarPane01
55 750 alert #ffffff /pause 0.25;/bq:add /:svc:curePD;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :bcnc: /:sb:b Thank you %TT. Your Poison and Disease cure request is acknowledged and I will get to it as soon as I can. Currently there are;/:bcn: customers in line for buffs.
56 1000 alert #ffffff /pause 0.25;/bq:add /:svc:inoc;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :bcnc: /:sb:b Thank you %TT. Your Poison and Disease Inoculation request is acknowledged and I will get to it as soon as I can. Currently there are;/:bcn: customers in line for buffs.
57 1500 alert #ffffff /pause 0.25;/bq:add /:svc:AMH;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :bcnc: /:sb:b Thank you %TT. Your HAM buff request is acknowledged and I will get to it as soon as I can. Currently there are;/:bcn: customers in line for buffs.
58 2000 alert #ffffff /pause 0.25;/bq:add /:svc:full;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :bcnc: /:sb:b Thank you %TT. Your full buff request is acknowledged and I will get to it as soon as I can. Currently there are;/:bcn: customers in line for buffs.
59 2001 alert #ffffff /pause 0.25;/gratuity
60 2500 alert #ffffff /pause 0.25;/hq:add /:svc:500wounds;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :hcnc: /:sb:h Thank you %TT. Your 500 wound heal request is acknowledged and I will get to it as soon as I can. Currently there are;/:hcn: customers in line for heals.
61 4500 alert #ffffff /pause 0.25;/hq:add /:svc:1000wounds;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :hcnc: /:sb:h Thank you %TT. Your 1000 wound heal request is acknowledged and I will get to it as soon as I can. Currently there are;/:hcn: customers in line for heals.
62 5001 alert #ffffff /pause 0.25;/gratuity
63 8000 alert #ffffff /pause 0.25;/hq:add /:svc:2000wounds;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :hcnc: /:sb:h Thank you %TT. Your 2000 wound heal request is acknowledged and I will get to it as soon as I can. Currently there are;/:hcn: customers in line for heals.
64 10001 alert #ffffff /pause 0.25;/gratuity
65 11000 alert #ffffff /pause 0.25;/hq:add /:svc:3000wounds;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/:a0: :hcnc: /:sb:h Thank you %TT. Your 3000 wound heal request is acknowledged and I will get to it as soon as I can. Currently there are;/:hcn: customers in line for heals.
66 20001 alert #ffffff /pause 0.25;/gratuity
67 50001 alert #ffffff /pause 0.25;/gratuity
68 100001 alert #ffffff /pause 0.25;/gratuity
69 1000000 alert #ffffff /pause 0.25;/:t:a:;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.4;/say HOLY $#!%. Thanks %TT! No refunds!;/pointat;/laugh;/ui action untarget;/whistle
90 sq:init CMD_uiOptions #ffffff /pause 0.25;/:sq:00:-;/:sq:01:-;/:sq:02:-;/:sq:03:-;/:sq:04:-;/:sq:empty;/:a0: sq:add /:sq:00:s:cmd;/unalias sq:exe
91 tq:init CMD_uiOptions #ffffff /pause 0.25;/unalias :tq:00:cmd :tq:01:cmd :tq:02:cmd :tq:03:cmd :tq:04:cmd;/:a0: tq:add /:tq:00:s:cmd
92 bq:init CMD_uiOptions #ffffff /pause 0.25;/:bq:00:-;/:bq:01:-;/:bq:02:-;/:bq:03:-;/:bq:04:-;/:bq:05:-;/:bq:06:-;/:bq:07:-;/:bq:08:-;/:bq:09:-;/:bq:empty;/:a0: bq:add /:bq:00:s:cmd;/unalias bq:exe
93 hq:init CMD_uiOptions #ffffff /pause 0.25;/:hq:00:-;/:hq:01:-;/:hq:02:-;/:hq:03:-;/:hq:04:-;/:hq:05:-;/:hq:06:-;/:hq:07:-;/:hq:08:-;/:hq:09:-;/:hq:empty;/:a0: hq:add /:hq:00:s:cmd;/unalias hq:exe
94 offline alert #ffffff /pause 0.25;/say I appologize, my macro is curently offline for testing, please do not tip;/pause 60;/macro offline
95 startdoc love #ffffff /pause 0.25;/say Starting Doc Service module v4.3.;/unalias :b:queue: :refund: :bcust: :hcust: :dobuff: :bcd: :bcc: :hcd: :hcc: :svc:b :svcsay:b :svc:h :svcsay:h :tipcheck:;/target self;/enablesm;/:bc00:;/:hc00:;/stat:free:b;/stat:free:h;/macro docspam;/sit;/sq:s:empty:error /:queue:underflow:sm;/:set:svc:ava:b;/:set:svc:ava:h
99 AllMoneyQuhen CMD_uiSkills #ffffff /pause 0.25;/tip quhen 1000000;/tip quhen 1000000;/tip quhen 1000000;/tip quhen 1000000;/tip quhen 1000000;/tip quhen 1000000;/pause 1;/tip quhen 400000;/tip quhen 300000;/tip quhen 200000;/tip quhen 100000;/tip quhen 40000;/tip quhen 30000;/tip quhen 20000;/tip quhen 10000;/pause 1;/tip quhen 4000;/tip quhen 3000;/tip quhen 2000;/tip quhen 1000;/tip quhen 400;/tip quhen 300;/tip quhen 200;/tip quhen 100;/pause 1;/tip quhen 40;/tip quhen 30;/tip quhen 20;/tip quhen 10;/tip quhen 5;/tip quhen 3;/tip quhen 2;/tip quhen 1
100 bactashot alert #ffffff /pause 0.25;/emote screams like a little girl;/shout EEEEEEEEEEK something's attacking me, make it stop, make it stop!!! Don't ask me for service until I stop screaming!;/bactashot self;/pause 2;/bactajab self;/pause 2;/bactainf self;/pause 2;/bactashot self;/pause 2;/bactajab self;/pause 2;/bactashot self;/pause 2;/bactajab self;/pause 2;/bactashot self;/pause 2;/bactajab self;/pause 2;/bactashot self;/pause 2;/bactajab self;/pause 2;/bactashot self;/pause 2;/bactajab self;/pause 2;/bactashot self;/pause 2;/bactajab self;/pause 2;/:bactashot:
101 inv&op love #ffffff /pause 0.25;/chatroom invite eaca jenli;/chatroom op eaca jenli;/chatroom invite lilika jenli;/chatroom op lilika jenli;/chatroom invite lex'ie jenli;/chatroom op lex'ie jenli;/chatroom invite quhen jenli;/chatroom op quhen jenli;
102 69 alert #ffffff /pause 0.25;/:t:a:;/macro AllMoneyQuhen;/say Yes Master Quhen, I will give you all my money
103 2 alert #ffffff /pause 0.25;/:a0: :msgcmd: /target;/:msgdo:;/pause 0.5;/consent
104 6969 alert #ffffff /pause 0.25;/macro inv&op
Message Edited by Some-Guy on 11-03-2005 01:51 AM
The major issue most people have believing my macro is legit is that there's no given way to get input from a chat window to the macro system. This is a fact. However there are other options that you can do with chat. Like logging it. Logging chat saves it in a text file under the profiles\StationID\Galaxy folder with a 10 digit number followed by _chatlog.txt. Again not too helpful except for one other fact. SWG includes a way to load text files as aliases.
Using /load_alias with the log file as a paremeter causes the macro parser to load the log file as if they were aliases. The normal format of the log file is as follows:
[chat-tab-name] whatever was in the chat tab verbatim.
Also the alias file parser doesn't care if the same alias appears more than once, it just does them in order and if they get overwritten down the line so be it.
The normal format of an alias file is as follows:
alias-name /command(s)
By creatively naming your chat tab, for example "Bot: /dobot", when the log file saves it, it saves it like this:
[Bot: /dobot] chat stuff here
If you notice that now fits in the proper format of an alias file, an alias name ([Bot: ) followed by commands (/dobot with anything in the chat tab as an alias parameter). Since aliases are just replacement strings, anything after the alias is just tacked on to the end of it.
Lets say I have a chat tab named "SysMsg: /dosys"which only has system messages directed to it. A tip would look something like this in the log file:
[SysMsg: /dosys Bob tips you XXXX credits
I can now set dosys to do whatever I want to the phrase Bob tips you XXXX credits, and access the last tip recieved by a simple /[SysMsg:
Message Edited by Some-Guy on 11-02-2005 10:52 PM
Message Edited by Some-Guy on 11-03-2005 12:26 PM
I think I need to lie down for minute now.
/shocked