; ############################################### ; ## ## ; ## Toolkit v1.0 ## ; ## Designed and written by: Terror_nisse ## ; ## Email: terror-nisse@hotmail.com ## ; ## Made: 03.06.07 ## ; ## ## ; ## ---------------------------------------- ## ; ## ## ; ## Thanks to: ## ; ## Jaytea, Chessnut, Patje`, Kerst, Ishock ## ; ## For all there help making my 2nd dialog. ## ; ## ## ; ############################################### ; ################# ; ## Color alias ## ; ################# alias c1 { return $+($chr(3),%col1,$1-) } alias c2 { return $+($chr(3),%col2,$1-) } alias c3 { return $+($chr(3),1,$1-) } ; ########################## ; ## Alias that starts up ## ; ## the process, init ## ; ## section. ## ; ########################## alias doing { if (%privmsg == ON) && (%highlight == ON) && (%noticemsg == ON) { did -c toolkit 8 did -c toolkit 9 did -c toolkit 104 } elseif (%highlight == ON) && (%privmsg == ON) { did -c toolkit 9 did -c toolkit 8 } elseif (%highlight == ON) && (noticemsg == ON) { did -c toolkit 9 did -c toolkit 104 } elseif (%noticemsg == ON) && (privmsg == ON) { did -c toolkit 8 did -c toolkit 104 } elseif (%privmsg == ON) { did -c toolkit 8 } elseif (%highlight == ON) { did -c toolkit 9 } elseif (%noticemsg == ON) { did -c toolkit 104 } else { } } alias doing1 { if (%msgstyle.11 == ON) { did -c toolkit 26 } elseif (%msgstyle.22 == ON) { did -c toolkit 27 } elseif (%msgstyle.33 == ON) { did -c toolkit 28 } elseif (%msgstyle.44 == ON) { did -c toolkit 29 } elseif (%msgstyle.55 == ON) { did -c toolkit 30 } elseif (%msgstyle.66 == ON) { did -c toolkit 31 } elseif (%msgstyle.77 == ON) { did -c toolkit 100 } elseif (%msgstyle.88 == ON) { did -c toolkit 101 } elseif (%msgstyle.99 == ON) { did -c toolkit 102 } elseif (%msgstyle.111 == ON) { did -c toolkit 103 } else { did -c toolkit 26 set %msgstyle.11 ON } } alias doing2 { var %j = 1 while (%j <= $lines(notepad.txt)) { did -a toolkit 38 $read(notepad.txt,%j) inc %j } } alias doing3 { if (%col1 isnum 0-15) { did -a toolkit 33 %col1 } else { set %col1 4 did -a toolkit 33 %col1 } } alias doing4 { if (%col2 isnum 0-15) { did -a toolkit 34 %col2 } else { set %col2 14 did -a toolkit 34 %col2 } } alias doing6 { if (%bold == ON) && (%nocol == ON) { did -c toolkit 45 did -c toolkit 46 } elseif (%bold == ON) { did -c toolkit 45 } elseif (%nocol == ON) { did -c toolkit 46 } } alias doing7 { if (%msgtime == 12 hour) { did -ac toolkit 42 12 hour did -a toolkit 42 24 hour } elseif (%msgtime == 24 hour) { did -a toolkit 42 12 hour did -ac toolkit 42 24 hour } else { set %msgtime 12 hour did -ac toolkit 42 12 hour did -a toolkit 42 24 hour } } alias doing8 { var %x = 1 while (%x <= $lines(highlight.txt)) { did -a toolkit 11 $read(highlight.txt,%x) inc %x } } ; ########################## ; ## Help alias: ## ; ## - For the help file. ## ; ########################## alias help1 { did -a help 11 • What is to set away? If you are AFK (Away from Keyboard) it can be good to have away settings so people see you are away (You will also change your nickname). This is simply a system to let you do that in a fancy good way. • It has a highlight system, wich will allow you to 'add' your in real life nicknames to it, Runescape name or just your nickname. When you are away and people say one of thoose names they will be reported from you that you are away and do not want to be disturbed. You will save the log they talk to you. • Please check the configuration tab (main dialog) to set colors, message effects or just what you wanna reply to when people talk to you in chat, notice you OR private message you. it is all up to you. • Please check 'Commands'' further down on this help page to veiw quick commands to save some time :) } alias help2 { did -a help 11 • This is simple, when you are away and need to tell people you are back push the big button on the main dialog. You will send message to all channels and change nick back to the way it was. EASY :) • You use styles in this too, wich can be configured at the tab named ''Conf.'' at the main dialog. • Back setting also have easier commands (Scroll 'Commands' further down). } alias help3 { did -a help 11 • Amsg is simply a message that goes to all of your channels, in this case, to all channels in all current servers. (using /scon -at1 /amsg). So if you feel like informing everyone about something, USE THIS :) • The AME is a little diffrent, but you have heard of it or seen it! AME is simply /me TEXT going to all channels you are in. • Look in configuration and 'commands' further down to see the commands. } alias help4 { did -a help 11 • Feel like kicking somones ass? Here you can TB (Temp ban), Personal blacklist, or just simple KB. • A personal black list is a list of people you hate wich you will kickban in every channel you are in (If you have access). • Temp ban let's you kb a nickname for certain minutes if you feel like doing that. (it will then auto unban after X minutes). • See configuration and 'commands' further down for more info about styles and commands. } alias help5 { did -a help 11 • Configuration is a good thing, it is the last tab in the toolkit where you can change styles, clock settings, colors and who to message and not. • This is good because then you have more options and you will never get sick of my dialog :P } alias help6 { did -a help 11 • Here are the commands in alias. USAGE: To open the dialog /Toolkit - To set away /brb [AWAY.NICK] [AWAY.REASON] - To set as back /back - Quick one to this window /away.help - To temp ban somone /tb [NICK] [MINUTES] [REASON] - To personal blacklist /pb [NICK] [REASON] - To kickban /kb [NICK] [REASON] - To AMSG /amsg TEXT - To AME /ame TEXT } ; ############################## ; ## Alias to start up dialog ## ; ############################## alias toolkit { dialog -m toolkit toolkit } alias toolkit.help { dialog -m help help } alias toolkit.amsg { set %amsgMSG $1- amsgSTYLE } alias toolkit.ame { set %ameMSG $1- ameSTYLE } ; #################################### ; ## Activates during style change, ## ; ## Away setting and back. ## ; #################################### alias toolkit1 { if (%msgtime == 12 hour) { set %time $time(h:nnTT) } elseif (%msgtime == 24 hour) { set %time $time(hh:nn:ss) } else { set %time $time(h:nnTT) } } alias style1 { set %away.nick $me set %away.reason $did($dname,2) toolkit1 awaySTYLE dialog -x awaymsg awaymsg scon -at1 /away %away.reason scon -at1 /nick %away.awaynick } alias style2 { backSTYLE scon -at1 /nick %away.nick scon -at1 /away unset %high.* | unset %priv.* | unset %away* dialog -x toolkit toolkit dialog -m Awayback Awayback } alias style3 { set %amsgMSG $did(toolkit,57) amsgSTYLE } alias style4 { set %ameMSG $did(toolkit,62) } alias style5 { backSTYLE scon -at1 /nick %away.nick scon -at1 /away unset %high.* | unset %priv.* | unset %away* dialog -m Awayback Awayback } ; ################################# ; ## Dialog is also menu listed. ## ; ################################# menu * { - Toolkit by Terror_nisse .Main dialog:/inc %started | dialog -m toolkit toolkit .- .Set Away:/dialog -m Awaynick Awaynick .Set Back { style5 } } ; ################################### ; ## Message when load the script. ## ; ################################### on *:LOAD: { set %brbON OFF set %amsgON OFF echo -a 12>>> You just loaded $remove($script,$scriptdir) - Toolkit by Terror_nisse } ; ################################### ; ## Main toolkit dialog. This is ## ; ## the main window wich controls ## ; ## everything. ## ; ################################### dialog toolkit { title "Toolkit v1.0 by Terror_nisse" size -1 -1 220 170 option dbu tab "About", 1, 1 -1 277 145 box "Version", 2, 6 13 25 18, Tab 1 text "v 1,0", 3, 10 20 80 65, Tab 1 box "Made by", 20, 6 33 40 18, Tab 1 text "Terror_nisse", 21, 10 40 80 65, Tab 1 tab "Away-System", 4, 1 -2 277 171 button "Set Away", 5, 44 15 60 25, Tab 4 button "Set Back", 6, 111 15 60 25, Tab 4 box "Highlighted nicknames:", 10, 4 45 88 94, Tab 4 list 11, 8 55 80 80, tab 4 size vsbar box "Add highlight:", 12, 158 45 60 25, Tab 4 edit "Nickname here.", 13, 162 55 52 11, Tab 4 box "Delete highlight:", 14, 158 87 60 25, Tab 4 edit "Nickname here.", 15, 162 97 52 11, Tab 4 button "Add nick", 17, 170 72 37 12, Tab 4 button "Del nick", 18, 170 114 37 12, Tab 4 button "Message log", 23, 96 50 55 20, Tab 4 tab "Amsg/Ame-System", 22, 1 -1 277 171 edit "Message here.", 57, 14 33 190 25, Tab 22, multi box "Amsg", 58, 10 22 198 57, Tab 22 box "AMSG/AME", 59, 4 12 210 128, Tab 22 button "Send AMSG", 60, 63 63 37 12, Tab 22 button "Clear", 61, 102 63 37 12, Tab 22 edit "Message here.", 62, 14 90 190 25, Tab 22, multi box "Ame", 63, 10 81 198 57, Tab 22 button "Send AME", 39, 63 122 37 12, Tab 22 button "Clear", 40, 102 122 37 12, Tab 22 tab "Ban/kick-System", 24, 1 -1 277 171 edit "Nickname.", 48, 14 33 90 11, Tab 24 edit "Minutes.", 49, 114 33 50 11, Tab 24 box "Nickname", 50, 10 24 98 24, Tab 24 box "Minutes", 51, 110 24 58 24, Tab 24 box "Feel like temp banning?", 52, 4 16 170 64, Tab 24 edit "Add reason here.", 53, 14 58 90 11, Tab 24 box "Reason", 54, 10 49 98 24, Tab 24 button "Execute", 55, 111 50 58 23, Tab 24 tab "Config", 25, 1 -1 277 171 radio "(STYLE)", 26, 10 23 30 15, Tab 25 radio "[STYLE]", 27, 10 38 30 15, Tab 25 radio "{STYLE}", 28, 10 53 30 15, Tab 25 radio "((STYLE))", 29, 10 68 30 15, Tab 25 radio "([STYLE])", 30, 10 83 30 15, Tab 25 radio "({STYLE})", 31, 50 23 32 15, Tab 25 radio "«STYLE»", 100, 50 38 32 15, Tab 25 radio "(-STYLE-)", 101, 50 53 32 15, Tab 25 radio "[-STYLE-]", 102, 50 68 32 15, Tab 25 radio "{-STYLE-}", 103, 50 83 32 15, Tab 25 box "Choose a style", 32, 4 15 85 85, Tab 25 edit "", 33, 11 113 20 11, Tab 25 edit "", 34, 35 113 20 11, Tab 25 box "Set a color (0-15)", 35, 6 103 57 38, Tab 25 combo 42, 102 24 49 30, drop tab 25 box "Time format", 44, 98 15 57 24, Tab 25 check "Bold effect:", 45, 161 24 47 7, Tab 25, Left check "No color:", 46, 161 34 47 7, Tab 25, Left box "Message Effects", 47, 157 15 57 30, Tab 25 box "One time respond to:", 7, 98 45 60 45, Tab 25 check "Private message:", 8, 102 54 51 7, Tab 25, Left check "Highlight:", 9, 102 64 51 7, Tab 25, Left check "Notice message:", 104, 102 74 51 7, Tab 25, Left button "Save", 36, 15 126 37 12, Tab 25 button "Help", 65, 82 149 37 12 button "OK", 66, 43 149 37 12 button "Cancel", 67, 121 149 37 12 text "© Copyright Terror nisse 2007", 56, 143 161 80 65, disable } ; ###################################### ; ## Extra popup dialogs when buttons ## ; ## are pushed. ## ; ###################################### dialog Awaymsg { title "Set Away Message" size -1 -1 170 52 option dbu box "Set an away message", 1, 3 3 158 24 edit "Away message here.", 2, 7 11 150 11 button "OK", 3, 48 30 37 12 button "Cancel", 4, 87 30 37 12 } dialog Awayback { title "Back" size -1 -1 140 50 option dbu text "You are no longer marked as beeing away.", 1, 15 11 150 11 button "OK", 3, 48 30 37 12 } dialog Awaybackfalse { title "Back already" size -1 -1 140 50 option dbu text "You are already marked as beeing back.", 1, 20 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog Awaytrue { title "Away already" size -1 -1 140 50 option dbu text "You are already marked as beeing Away.", 1, 15 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog Awaynick { title "Set an away nick" size -1 -1 170 52 option dbu box "Away nick", 1, 3 3 158 24 edit "Away nick here.", 2, 7 11 150 11 button "OK", 3, 48 30 37 12 button "Cancel", 4, 87 30 37 12 } dialog added { title "Highlight list" size -1 -1 140 50 option dbu text "Nick was added to the highlight list.", 1, 24 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog deleted { title "Highlight list" size -1 -1 140 50 option dbu text "Nick was deleted from highlight list.", 1, 24 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog thelog { title "Highlight and Private message log" size -1 -1 280 170 option dbu box "Highlight and Private message log.", 1, 3 6 273 123 list 2, 7 15 265 110, hsbar button "Ok", 5, 72 150 37 12 button "Clear logs", 6, 113 150 37 12 button "Cancel", 7, 154 150 37 12 text "[PM] = Private message, [HL] = Highlight, [NM] = Notice", 8, 6 132 150 10 } dialog clearlog { title "Log cleared" size -1 -1 140 50 option dbu text "Your message log is cleared.", 1, 35 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog savedtxt { title "Notepad Saved" size -1 -1 140 50 option dbu text "Your Notepad text have been saved.", 1, 22 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog notepadclear { title "Notepad Cleared" size -1 -1 140 50 option dbu text "Your Notepad text have been cleared.", 1, 22 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog savedconf { title "Configuration/Notepad saved" size -1 -1 140 50 option dbu text "Your configuration/notepad settings has been saved.", 1, 7 11 150 11 button "Cancel", 3, 48 30 37 12 } dialog help { title "Help" size -1 -1 200 170 option dbu text "- Drag your mouse over the names to the left to get info.", 1, 7 15 150 15 text "- Need any more help? Please review to Terror_nisse.", 2, 7 22 150 15 box "Info", 3, 3 6 148 27 text "Set away", 4, 6 40 40 15 text "Set back", 5, 6 55 40 15 text "Amsg/Ame", 6, 6 70 40 15 text "Kick/ban", 7, 6 85 40 15 text "Configuration", 8, 6 100 40 15 text "Commands", 9, 6 115 40 15 edit "", 11, 56 45 130 100, vsbar, multi, read box "Help file", 12, 50 36 142 113 button "OK", 13, 74 150 37 12 } ; ################################### ; ## This symbolizes what every ## ; ## button do in all the dialogs. ## ; ################################### on *:DIALOG:help:sclick:13:{ dialog -x help help dialog -m toolkit toolkit } on *:DIALOG:help:mouse:4: { did -r help 11 help1 } on *:DIALOG:help:mouse:5: { did -r help 11 help2 } on *:DIALOG:help:mouse:6: { did -r help 11 help3 } on *:DIALOG:help:mouse:7: { did -r help 11 help4 } on *:DIALOG:help:mouse:8: { did -r help 11 help5 } on *:DIALOG:help:mouse:9: { did -r help 11 help6 } on *:DIALOG:toolkit:sclick:40: { did -r toolkit 62 } on *:DIALOG:toolkit:sclick:39: { style4 } on *:DIALOG:toolkit:sclick:67: { dialog -x toolkit toolkit } on *:DIALOG:toolkit:sclick:66: { dialog -x toolkit toolkit } on *:DIALOG:toolkit:sclick:65: { dialog -x toolkit toolkit dialog -m help help } on *:DIALOG:toolkit:sclick:61: { did -r toolkit 57 } ; ####################### ; ## Amsg Stles ## ; ## - bit messy ## ; ## - but it works :P ## ; ####################### on *:DIALOG:toolkit:sclick:60: { style3 } on *:DIALOG:toolkit:sclick:45: { set %bold $iif($did(45).state,on,off) } on *:DIALOG:toolkit:sclick:46: { set %nocol $iif($did(46).state,on,off) } on *:DIALOG:toolkit:sclick:42: { set %msgtime $did(toolkit,42).seltext } on *:DIALOG:savedconf:sclick:3: { dialog -x savedconf savedconf dialog -m toolkit toolkit } on *:DIALOG:notepadclear:sclick:3: { dialog -x notepadclear notepadclear dialog -m toolkit toolkit } on *:DIALOG:savedtxt:sclick:3: { dialog -x savedtxt savedtxt dialog -m toolkit toolkit } on *:DIALOG:toolkit:sclick:37: { dialog -x toolkit toolkit } on *:DIALOG:toolkit:sclick:26: { unset %msgstyle.* set %msgstyle.11 $iif($did(26).state,on,off) } on *:DIALOG:toolkit:sclick:27: { unset %msgstyle.* set %msgstyle.22 $iif($did(27).state,on,off) } on *:DIALOG:toolkit:sclick:28: { unset %msgstyle.* set %msgstyle.33 $iif($did(28).state,on,off) } on *:DIALOG:toolkit:sclick:29: { unset %msgstyle.* set %msgstyle.44 $iif($did(29).state,on,off) } on *:DIALOG:toolkit:sclick:30: { unset %msgstyle.* set %msgstyle.55 $iif($did(30).state,on,off) } on *:DIALOG:toolkit:sclick:31: { unset %msgstyle.* set %msgstyle.66 $iif($did(31).state,on,off) } on *:DIALOG:toolkit:sclick:36: { set %col1 $did($dname,33) set %col2 $did($dname,34) dialog -x toolkit toolkit dialog -m savedconf savedconf } on *:DIALOG:toolkit:sclick:100: { unset %msgstyle.* set %msgstyle.77 $iif($did(100).state,on,off) } on *:DIALOG:toolkit:sclick:101: { unset %msgstyle.* set %msgstyle.88 $iif($did(101).state,on,off) } on *:DIALOG:toolkit:sclick:102: { unset %msgstyle.* set %msgstyle.99 $iif($did(102).state,on,off) } on *:DIALOG:toolkit:sclick:103: { unset %msgstyle.* set %msgstyle.111 $iif($did(103).state,on,off) } on *:DIALOG:clearlog:sclick:3: { dialog -x clearlog clearlog dialog -m toolkit toolkit } on *:DIALOG:thelog:sclick:7: { dialog -x thelog thelog } on *:DIALOG:thelog:sclick:6: { write -c privmsg.txt write -c highlightMSG.txt dialog -x thelog thelog dialog -m clearlog clearlog } on *:DIALOG:thelog:sclick:5: { dialog -x thelog thelog dialog -m toolkit toolkit } on *:DIALOG:toolkit:sclick:23: { dialog -x toolkit toolkit dialog -m thelog thelog } on *:DIALOG:infoaway:sclick:3: { dialog -x infoaway infoaway dialog -m toolkit toolkit } on *:DIALOG:toolkit:sclick:11: { did -ra toolkit 13 $did(toolkit,11).seltext did -ra toolkit 15 $did(toolkit,11).seltext } on *:DIALOG:added:sclick:3: { dialog -x added added dialog -m toolkit toolkit } on *:DIALOG:deleted:sclick:3: { dialog -x deleted deleted dialog -m toolkit toolkit } on *:DIALOG:toolkit:sclick:5: { set %away.timeleft $time(hh:nn:ss) dialog -x toolkit toolkit dialog -m Awaynick Awaynick } on *:DIALOG:Awaynick:sclick:3: { set %away.awaynick $did($dname,2) dialog -x Awaynick Awaynick dialog -m Awaymsg Awaymsg } on *:DIALOG:Awaynick:sclick:4: { dialog -x Awaynick Awaynick } on *:DIALOG:Awaybackfalse:sclick:3: { dialog -x Awaybackfalse Awaybackfalse dialog -m toolkit toolkit } on *:DIALOG:Awaytrue:sclick:3: { dialog -x Awaytrue Awaytrue dialog -m toolkit toolkit } on *:DIALOG:Awayback:sclick:3: { dialog -x Awayback Awayback } on *:DIALOG:Awaymsg:sclick:4: { dialog -x Awaymsg Awaymsg } on *:DIALOG:toolkit:sclick:8: { set %privmsg $iif($did(8).state,on,off) } on *:DIALOG:toolkit:sclick:9: { set %highlight $iif($did(9).state,on,off) } on *:DIALOG:toolkit:sclick:104: { set %noticemsg $iif($did(104).state,on,off) } on *:DIALOG:toolkit:sclick:17: { /write highlight.txt $did($dname,13) dialog -x toolkit toolkit dialog -m added added } on *:DIALOG:toolkit:sclick:18: { /write -ds $+ $did($dname,15) highlight.txt dialog -x toolkit toolkit dialog -m deleted deleted } ; ######################### ; ## The ''away'' styles ## ; ## - bit messy ## ; ## - but it works :P ## ; ######################### on *:DIALOG:Awaymsg:sclick:3: { style1 } on *:DIALOG:toolkit:sclick:6: { style2 } ; ################################ ; ## This is what happends when ## ; ## dialogs are loaded. ## ; ## ''Init'' section. ## ; ################################ on *:DIALOG:thelog:init:*:{ var %z = 1 while (%z <= $lines(highlightMSG.txt)) { did -a thelog 2 $read(highlightMSG.txt,%z) inc %z } } on *:dialog:toolkit:init:*:{ /doing /doing1 /doing2 /doing3 /doing4 /doing6 /doing7 /doing8 } ; ########################################## ; ## On away status, this part will take ## ; ## care of all the highlight and ## ; ## private message logs, and make sure ## ; ## nick get's message when current nick ## ; ## using this dialog is GONE ;) ## ; ########################################## on *:TEXT:*:?: { if (%privmsg == OFF) || ($away == $false) { halt } elseif (%priv. [ $+ [ $nick ] ] == ON) && ($away == $true) { write highlightMSG.txt [PM] < $nick at $time > $1- } elseif (%privmsg == ON) && ($away == $true) { set %priv. [ $+ [ $nick ] ] ON write highlightMSG.txt [PM] < $nick at $time > $1- msg $nick I am currently away. Reason: %away.reason $+ . Left at: %away.timeleft $+ . Time gone: $duration($awaytime) $+ . One time respond to private message. } } on *:TEXT:*:#: { if (%highlight == OFF) { halt } elseif (%high. [ $+ [ $nick ] ] == ON) && ($away == $true) { //.fopen temphl highlight.txt | if (!$ferr) { while (!$feof) { if ($fread(temphl) isin $1-) { write highlightMSG.txt [HL] < $nick at $time > $1- break } } } .fclose temphl } elseif (%highlight == ON) && ($away == $true) { //.fopen temphl highlight.txt | if (!$ferr) { while (!$feof) { if ($fread(temphl) isin $1-) { set %high. [ $+ [ $nick ] ] ON write highlightMSG.txt [HL] < $nick at $time > $1- notice $nick I am currently away. Reason: %away.reason $+ . Left at: %away.timeleft $+ . Time gone: $duration($awaytime) $+ . One time respond to highlight. break } } } .fclose temphl } } on *:NOTICE:*:*:{ if (%noticemsg == OFF) || ($away == $false) { halt } elseif (%not. [ $+ [ $nick ] ] == ON) && ($away == $true) { write highlightMSG.txt [NM] < $nick at $time > $1- } elseif (%noticemsg == ON) && ($away == $true) { set %not. [ $+ [ $nick ] ] ON write highlightMSG.txt [NM] < $nick at $time > $1- notice $nick I am currently away. Reason: %away.reason $+ . Left at: %away.timeleft $+ . Time gone: $duration($awaytime) $+ . One time respond to notice message. } } ; ######################### ; ## Here are the styles ## ; ## wich is used in ## ; ## the dialog. ## ; ## - 'Bit' messy, but ## ; ## it works ok :) ## ; ######################### alias ameSTYLE { if (%bold == ON) { /scon -at1 /ame %ameMSG - (Ame) } elseif (%bold == OFF) { /scon -at1 /ame %ameMSG - (Ame) } } alias amsgSTYLE { if (%msgstyle.11 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ (Amsg) %amsgMSG } elseif (%msgstyle.22 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+  $chr(91) $+ Amsg $+ $chr(93)  %amsgMSG } elseif (%msgstyle.33 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ {Amsg} %amsgMSG } elseif (%msgstyle.44 == ON) && (%bold == ON) && (%nocol == ON) && (%amsgON == ON) { /scon -at1 /amsg $c3 $+ ((Amsg)) %amsgMSG } elseif (%msgstyle.55 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ( $+ $chr(91) $+ Amsg $+ $chr(93) $+ ) %amsgMSG } elseif (%msgstyle.66 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ({Amsg}) %amsgMSG } elseif (%msgstyle.77 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ «Amsg» %amsgMSG } elseif (%msgstyle.88 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ (-Amsg-) %amsgMSG } elseif (%msgstyle.99 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ [-Amsg-] %amsgMSG } elseif (%msgstyle.111 == ON) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ {-Amsg-} %amsgMSG } elseif (%msgstyle.11 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ( $+ $c2 $+ Amsg $+ $c1 $+ ) %amsgMSG ) } elseif (%msgstyle.22 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ $chr(91) $+ $c2 $+ Amsg $+ $c1 $+ $chr(93) %amsgMSG ) } elseif (%msgstyle.33 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ $chr(123) $+ $c2 $+ Amsg $+ $c1 $+ $chr(125) %amsgMSG ) } elseif (%msgstyle.44 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ (( $+ $c2 $+ Amsg $+ $c1 $+ )) %amsgMSG ) } elseif (%msgstyle.55 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ( $+ $chr(91) $+ $c2 $+ Amsg $+ $c1 $+ $chr(93) $+ ) %amsgMSG ) } elseif (%msgstyle.66 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ({ $+ $c2 $+ Amsg $+ $c1 $+ }) %amsgMSG ) } elseif (%msgstyle.77 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ « $+ $c2 $+ Amsg $+ $c1 $+ » %amsgMSG ) } elseif (%msgstyle.88 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ (- $+ $c2 $+ Amsg $+ $c1 $+ -) %amsgMSG ) } elseif (%msgstyle.99 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ [- $+ $c2 $+ Amsg $+ $c1 $+ -] %amsgMSG ) } elseif (%msgstyle.111 == ON) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ {- $+ $c2 $+ Amsg $+ $c1 $+ -} %amsgMSG ) } elseif (%msgstyle.11 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ( $+ $c2 $+ Amsg $+ $c1 $+ ) $+ $c2 %amsgMSG } elseif (%msgstyle.22 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+  $+ $chr(91) $+  $+ $c2 $+ Amsg $+ $c1 $+  $+ $chr(93) $+  $+ $c2 %amsgMSG } elseif (%msgstyle.33 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ { $+ $c2 $+ Amsg $+ $c1 $+ } $+ $c2 %amsgMSG } elseif (%msgstyle.44 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ (( $+ $c2 $+ Amsg $+ $c1 $+ )) $+ $c2 %amsgMSG } elseif (%msgstyle.55 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ( $+ $chr(91) $+  $+ $c2 $+ Amsg $+ $c1 $+  $+ $chr(93) $+ ) $+ $c2 %amsgMSG } elseif (%msgstyle.66 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ({ $+ $c2 $+ Amsg $+ $c1 $+ }) $+ $c2 %amsgMSG } elseif (%msgstyle.77 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ « $+ $c2 $+ Amsg $+ $c1 $+ » $+ $c2 %amsgMSG } elseif (%msgstyle.88 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ (- $+ $c2 $+ Amsg $+ $c1 $+ -) $+ $c2 %amsgMSG } elseif (%msgstyle.99 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ [- $+ $c2 $+ Amsg $+ $c1 $+ -] $+ $c2 %amsgMSG } elseif (%msgstyle.111 == ON) && (%bold == ON) { /scon -at1 /amsg $c1 $+ {- $+ $c2 $+ Amsg $+ $c1 $+ -} $+ $c2 %amsgMSG } elseif (%msgstyle.11 == ON) { /scon -at1 /amsg $c1 $+ ( $+ $c2 $+ Amsg $+ $c1 $+ ) $+ $c2 %amsgMSG } elseif (%msgstyle.22 == ON) { /scon -at1 /amsg $c1 $+ $chr(91) $+ $c2 $+ Amsg $+ $c1 $+ $chr(93) $+ $c2 %amsgMSG } elseif (%msgstyle.33 == ON) { /scon -at1 /amsg $c1 $+ $chr(123) $+ $c2 $+ Amsg $+ $c1 $+ $chr(125) $+ $c2 %amsgMSG } elseif (%msgstyle.44 == ON) { /scon -at1 /amsg $c1 $+ (( $+ $c2 $+ Amsg $+ $c1 $+ )) $+ $c2 %amsgMSG } elseif (%msgstyle.55 == ON) { /scon -at1 /amsg $c1 $+ ( $+ $chr(91) $+ $c2 $+ Amsg $+ $c1 $+ $chr(93) $+ ) $+ $c2 %amsgMSG } elseif (%msgstyle.66 == ON) { /scon -at1 /amsg $c1 $+ ({ $+ $c2 $+ Amsg $+ $c1 $+ }) $+ $c2 %amsgMSG } elseif (%msgstyle.77 == ON) { /scon -at1 /amsg $c1 $+ « $+ $c2 $+ Amsg $+ $c1 $+ » $+ $c2 %amsgMSG } elseif (%msgstyle.88 == ON) { /scon -at1 /amsg $c1 $+ (- $+ $c2 $+ Amsg $+ $c1 $+ -) $+ $c2 %amsgMSG } elseif (%msgstyle.99 == ON) { /scon -at1 /amsg $c1 $+ [- $+ $c2 $+ Amsg $+ $c1 $+ -] $+ $c2 %amsgMSG } elseif (%msgstyle.111 == ON) { /scon -at1 /amsg $c1 $+ {- $+ $c2 $+ Amsg $+ $c1 $+ -} $+ $c2 %amsgMSG } } alias awaySTYLE { if (%msgstyle.11 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ (Away) Reason: %away.reason • Left at: %time } elseif (%msgstyle.22 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+  $chr(91) $+ Amsg $+ $chr(93)  Reason: %away.reason • Left at: %time } elseif (%msgstyle.33 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ {Away} Reason: %away.reason • Left at: %time } elseif (%msgstyle.44 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ((Away)) Reason: %away.reason • Left at: %time } elseif (%msgstyle.55 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ( $+ $chr(91) $+ Away $+ $chr(93) $+ ) Reason: %away.reason • Left at: %time } elseif (%msgstyle.66 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ({Away}) Reason: %away.reason • Left at: %time } elseif (%msgstyle.77 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ «Away» Reason: %away.reason • Left at: %time } elseif (%msgstyle.88 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ (-Away-) Reason: %away.reason • Left at: %time } elseif (%msgstyle.99 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ [-Away-] Reason: %away.reason • Left at: %time } elseif (%msgstyle.111 == ON) && ($away == $false) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ {-Away-} Reason: %away.reason • Left at: %time } elseif (%msgstyle.11 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ( $+ $c2 $+ Away $+ $c1 $+ ) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.22 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ $chr(91) $+ $c2 $+ Away $+ $c1 $+ $chr(93) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.33 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ $chr(123) $+ $c2 $+ Away $+ $c1 $+ $chr(125) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.44 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ (( $+ $c2 $+ Away $+ $c1 $+ )) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.55 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ( $+ $chr(91) $+ $c2 $+ Away $+ $c1 $+ $chr(93) $+ ) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.66 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ({ $+ $c2 $+ Away $+ $c1 $+ }) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.77 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ « $+ $c2 $+ Away $+ $c1 $+ » $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.88 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ (- $+ $c2 $+ Away $+ $c1 $+ -) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.99 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ [- $+ $c2 $+ Away $+ $c1 $+ -] $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.111 == ON) && ($away == $false) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ {- $+ $c2 $+ Away $+ $c1 $+ -} $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time ) } elseif (%msgstyle.11 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ( $+ $c2 $+ Away $+ $c1 $+ ) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.22 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+  $+ $chr(91) $+  $+ $c2 $+ Away $+ $c1 $+  $+ $chr(93) $+  $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.33 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ { $+ $c2 $+ Away $+ $c1 $+ } $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.44 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ (( $+ $c2 $+ Away $+ $c1 $+ )) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.55 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ( $+ $chr(91) $+  $+ $c2 $+ Away $+ $c1 $+  $+ $chr(93) $+ ) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.66 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ({ $+ $c2 $+ Away $+ $c1 $+ }) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.77 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ « $+ $c2 $+ Away $+ $c1 $+ » $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.88 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ (- $+ $c2 $+ Away $+ $c1 $+ -) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.99 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ [- $+ $c2 $+ Away $+ $c1 $+ -] $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.111 == ON) && ($away == $false) && (%bold == ON) { /scon -at1 /amsg $c1 $+ {- $+ $c2 $+ Away $+ $c1 $+ -} $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.11 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ ( $+ $c2 $+ Away $+ $c1 $+ ) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.22 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ $chr(91) $+ $c2 $+ Away $+ $c1 $+ $chr(93) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.33 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ $chr(123) $+ $c2 $+ Away $+ $c1 $+ $chr(125) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.44 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ (( $+ $c2 $+ Away $+ $c1 $+ )) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.55 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ ( $+ $chr(91) $+ $c2 $+ Away $+ $c1 $+ $chr(93) $+ ) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.66 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ ({ $+ $c2 $+ Away $+ $c1 $+ }) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.77 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ « $+ $c2 $+ Away $+ $c1 $+ » $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.88 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ (- $+ $c2 $+ Away $+ $c1 $+ -) $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.99 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ [- $+ $c2 $+ Away $+ $c1 $+ -] $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif (%msgstyle.111 == ON) && ($away == $false) { /scon -at1 /amsg $c1 $+ {- $+ $c2 $+ Away $+ $c1 $+ -} $+ $c2 Reason: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time } elseif ($away == $true) { dialog -x Awaymsg Awaymsg dialog -m Awaytrue Awaytrue } } alias backSTYLE { if (%msgstyle.11 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ (Back) From: %away.reason • Left at: %time Time away: $duration($awaytime) } elseif (%msgstyle.22 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+  $chr(91) $+ Back $+ $chr(93) From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.33 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ {Back} From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.44 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ((Back)) From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.55 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ( $+ $chr(91) $+ Back $+ $chr(93) $+ ) From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.66 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ ({Back}) From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.77 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ «Back» From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.88 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ (-Back-) From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.99 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ [-Back-] From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.111 == ON) && ($away == $true) && (%bold == ON) && (%nocol == ON) { /scon -at1 /amsg $c3 $+ {-Back-} From: %away.reason • Left at: %time • Time away: $duration($awaytime) } elseif (%msgstyle.11 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ( $+ $c2 $+ Back $+ $c1 $+ ) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.22 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ $chr(91) $+ $c2 $+ Back $+ $c1 $+ $chr(93) From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.33 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ $chr(123) $+ $c2 $+ Back $+ $c1 $+ $chr(125) From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.44 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ (( $+ $c2 $+ Back $+ $c1 $+ )) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.55 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ( $+ $chr(91) $+ $c2 $+ Back $+ $c1 $+ $chr(93) $+ ) From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.66 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ ({ $+ $c2 $+ Back $+ $c1 $+ }) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.77 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ « $+ $c2 $+ Back $+ $c1 $+ » $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.88 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ (- $+ $c2 $+ Back $+ $c1 $+ -) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.99 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ [- $+ $c2 $+ Back $+ $c1 $+ -] $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.111 == ON) && ($away == $true) && (%nocol == ON) { /scon -at1 /amsg $strip( $c1 $+ {- $+ $c2 $+ Back $+ $c1 $+ -} $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) ) } elseif (%msgstyle.11 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ( $+ $c2 $+ Back $+ $c1 $+ ) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.22 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+  $+ $chr(91) $+  $+ $c2 $+ Back $+ $c1 $+  $+ $chr(93) $+  $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.33 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ { $+ $c2 $+ Back $+ $c1 $+ } $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.44 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ (( $+ $c2 $+ Back $+ $c1 $+ )) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.55 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ( $+ $chr(91) $+  $+ $c2 $+ Back $+ $c1 $+  $+ $chr(93) $+ ) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.66 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ ({ $+ $c2 $+ Back $+ $c1 $+ }) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.77 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ « $+ $c2 $+ Back $+ $c1 $+ » $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.88 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ (- $+ $c2 $+ Back $+ $c1 $+ -) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.99 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ [- $+ $c2 $+ Back $+ $c1 $+ -] $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.111 == ON) && ($away == $true) && (%bold == ON) { /scon -at1 /amsg $c1 $+ {- $+ $c2 $+ Back $+ $c1 $+ -} $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.11 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ ( $+ $c2 $+ Back $+ $c1 $+ ) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.22 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ $chr(91) $+ $c2 $+ Back $+ $c1 $+ $chr(93) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.33 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ $chr(123) $+ $c2 $+ Back $+ $c1 $+ $chr(125) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.44 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ (( $+ $c2 $+ Back $+ $c1 $+ )) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.55 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ ( $+ $chr(91) $+ $c2 $+ Back $+ $c1 $+ $chr(93) $+ ) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.66 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ ({ $+ $c2 $+ Back $+ $c1 $+ }) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.77 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ « $+ $c2 $+ Back $+ $c1 $+ » $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.88 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ (- $+ $c2 $+ Back $+ $c1 $+ -) $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.99 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ [- $+ $c2 $+ Back $+ $c1 $+ -] $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif (%msgstyle.111 == ON) && ($away == $true) { /scon -at1 /amsg $c1 $+ {- $+ $c2 $+ Back $+ $c1 $+ -} $+ $c2 From: $+ $c1 %away.reason • $+ $c2 Left at: $+ $c1 %time • $+ $c2 Time away: $+ $c1 $duration($awaytime) } elseif ($away == $false) { dialog -x toolkit toolkit dialog -m Awaybackfalse Awaybackfalse } } ; ############################## ; ## /End of the script. ## ; ## Thanks you very much for ## ; ## using it. :) ## ; ##############################