Skip to content
MSN

MTS help..

A TG007 community discussion started by lyquid.

Discussion 25 posts
Page 1 of 2
Open
Topic #5002 · 25 published posts · 1,423 views

ok first off im not sure if this is the right place but im lost and confused..

 

anyway i got a mts theme that i want to modify a bit (for my personal use not for the public)

 

i was looking on mircscripts.org and saw a screenshot of a script err0r was making. in it he had something along the lines of [msg] - namehere: text here or as [part] - namehere: text here

 

how can i go about doing this? im still learning writing the themes and such.. i like this look alot so im asking.. for a screenshot.. http://mircscripts.org/viewImage.php?cid=1022&v=b

 

*note* just wanting the text format.. not colors etc..

 

thanks :)

 

EDIT>> heres another ss of a theme i like.. any help doing any of them would be nice..

http://www.chicagodecals.com/imagehost/upl...iptng/theme.PNG

 

Edited Oct 18, 2005 1:32 AM by lyquid

I didn't really do my theme with mts.

 

mine was basic on text type coding. mine is a bit more complicated but broken down it's similar to this

 

on *:text:*:#: { 
echo $color(own) -ti2 $chan $dtime 7[14Msg7] 14- 7 $+ $dstatus $+ 02 $+ $nick 14:2 
  halt
}

 

Well for one you're going to need to read up on MTS.. Then you'll have to edit the .mts file that came with the theme. You should see something like this somewhere in the file.

 

TextChan <c2>(<cmode><c1><nick><c2>) <text>

TextChanSelf <c2>(<cmode><c1><nick><c2>) <text>

ActionChan <c2>• <nick> <text>

ActionChanSelf <c2>• <me> <text>

NoticeChan <c2>-<c1><nick>:<target><c2>- <text>

Notice <c2>-<c1><nick> <c2>(<c1><address><c2>)- <text>

NoticeSelf <c2>-> -<c1><nick><c2>- <text>

NoticeSelfChan <c2>-> -<c1><target><c2>- <text>

TextQuery <c2>(<c1><nick><c2>) <text>

TextQuerySelf <c2>(<c1><nick><c2>) <text>

ActionQuery <c2>• <nick> <text>

ActionQuerySelf <c2>• <me> <text>

TextMsg <c2>*<c1><nick><c2>* <text>

TextMsgSelf <c2>-> *<c1><target><c2>* <text>

 

It's all a little confusing at first, but it get easy after a while. Btw, I take no credit for the above code-- It's from Luminosity

"If you don't risk anything you risk even more." - Erica Jong

ohhhhh ok i get it now. well im gonna play around with it some.. mts theming seems kind of wierd to me still but can you do your kind of format with mts?

i think i'm about the only person with MTS abilities around here :P

 

I learnt how to do MTS from this,

 

http://www.mircscripts.org/mts/MTS%201.3%2...suggestions.txt

 

Also having an example MTS code helps as well so you can work out what the format should be like.

Here's Luminosity by Zioxide. thought i'd do a shorter explanation than the one tgk posted

;first, a few details about your theme. they're usually used for mts loaders
[mts]
Name luminosity
Author zioxide
EMail [email protected]
Website http://linuxcommie.net/~zioxide/
Description Main scheme: Midnight; Other schemes: Beach, Lunar, Ice.
Version 1.2
MTSVersion 1.1
Script luminosity.mrc

;next... this should be self-explanatory
Timestamp ON
TimestampFormat <c1>,<c4>  h:nnt   

;this is a list of the different colour schemes to choose from. there's no limit on them
Scheme1 Beach
Scheme2 Lunar
Scheme3 Ice

;ok, colours. these are the default colours to be used in your theme.
;the base colours are the mirc numbers you're going to use in the theme, called (in this case) by %::c1 %::c2 etc
;the colors i cant explain well but they're in the same form as the mirc.ini file
;the rgb colors are what replace the default mirc colors. 
BaseColors 01,11,12,13
Colors 06,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,06,01,06,01,01
RGBColors 255,255,255 225,225,225 133,152,167 0,147,0 255,0,0 127,0,0 15,43,62 252,127,0 255,255,0 0,252,0 9,107,255 119,153,176 103,132,152 12,35,52 54,64,71 141,155,169

;load and unload messages
Load <pre><c1> luminosity theme by zioxide loaded
Unload <pre><c1> luminosity theme by zioxide unloaded

;this should be self-explanatory
FontDefault Tahoma,10
FontQuery Tahoma,10
FontChan Tahoma,10

;prefixes - done in the same form as the main coding, only with brackets to represent the colors. you should pick this up easily
Prefix     <c2>• <c3>•  <c1>
ParenText <c2>(<c1><text><c2>)

;again, like above, you should pick this up easily
TextChan <c2>(<cmode><c1><nick><c2>)<c1> <text>
TextChanSelf <c2>(<cmode><c1><me><c2>)<c1> <text>
ActionChan <c2>• <c1><nick> <text>
ActionChanSelf <c2>• <c1><me> <text>
NoticeChan <c2>-<c1><nick>:<target><c2>-<c1> <text>
Notice <c2>-<c1><nick> <c2>(<c1><address><c2>)-<c1> <text>
NoticeSelf <c2>-> -<c1><nick><c2>-<c1> <text>
NoticeSelfChan <c2>-> -<c1><target><c2>-<c1> <text>
TextQuery <c2>(<c1><nick><c2>)<c1> <text>
TextQuerySelf <c2>(<c1><me><c2>)<c1> <text>
ActionQuery <c2>• <c1><nick> <text>
ActionQuerySelf <c2>• <c1><me> <text>
TextMsg <c2>*<c1><nick><c2>*<c1> <text>
TextMsgSelf <c2>-> *<c1><me><c2>*<c1> <text>

;the main coding - now it just looks tricky, but isnt. play around, see what you get. if you get stuck, just ask
Mode <pre><c1> mode: <nick> <c3>(<c2><address><c3>) <c1>set: <modes>
ModeUser <pre><c1> usermode: <modes>
Join <pre><c1> join: <nick> <c3>(<c2><address><c3>)
JoinSelf <pre><c1> joined <chan>
Part !Script %:echo $+(%::pre,,%::c1) part: %::nick $+(,%::c3,$chr(40),,%::c2,%::address,,%::c3,$chr(41)) $iif(%::text,$+(,%::c3,$chr(40),,%::c2,%::text,,%::c3,$chr(41)))
Kick <pre><c1> kick: <nick> <c3>(<c2><address><c3>)<c1> kicked <knick> <c3>(<c2><text><c3>)
KickSelf <pre><c1> You were kicked from <chan> by <nick> <c3>(<c2><text><c3>)
Quit !Script %:echo $+(%::pre,,%::c1) quit: %::nick $+(,%::c3,$chr(40),,%::c2,%::address,,%::c3,$chr(41)) $iif(%::text,$+(,%::c3,$chr(40),,%::c2,%::text,,%::c3,$chr(41)))
Topic <pre><c1> <nick> sets topic: <c3>(<c2><text><c3>)
Nick <pre><c1> nick: <nick> <c3>(<c2><address><c3>)<c1> is now <newnick>
NickSelf <pre><c1> nick: <newnick>
Invite <pre><c1> invite: <nick> <c3>(<c2><address><c3>)<c1> invites you to join <chan>
ServerError <pre><c1> error: <text>
Rejoin <pre><c1> Rejoining <chan>
Ctcp <c2>[<c1><nick> <ctcp><c2>] <c1><text>
CtcpChan <c2>[<c1><nick>:<chan> <ctcp><c2>] <c1><text>
CtcpSelf <c2>-> [<c1><target> <ctcp><c2>] <c1><text>
CtcpChanSelf <c2>-> [<c1><target> <ctcp><c2>] <c1><text>
CtcpReply <c2>[<c1><nick> <ctcp> reply<c2>] <c1><text>
CtcpReplySelf <c2>-> [<c1><target> <ctcp> reply<c2>] <c1><text>
Notify <pre><c1> notify: <nick> <c3>(<c2><address><c3>) is on irc
UNotify <pre><c1> notify: <nick> <c3>(<c2><address><c3>) is off irc
Wallop <c2>!<c1><nick><c2>!<c1> <text>
NoticeServer <c2>-<c1><server><c2>-<c1> <text>

;this is done in the same way, only for server messages
DNS !Script %:echo %::pre $+(,%::c1) dns: resolving %::address
DNSError !Script %:echo %::pre $+(,%::c1) dns: unable to resolve %::address
DNSResolve !Script %:echo $str($chr(160) ,14) $+(,%::c1) resolved: %::raddress
Echo <c1><text>
EchoTarget <c1><text>
Error <pre><c1>error: <text>

this is calling an external mirc file, which has the same name as the mts file (eg: luminosity.mts is calling luminosity.mrc). the aliases called are the third words.
Whois !Script luminosity.Whois
Whowas !Script luminosity.Whowas

;again, pretty smple to pick up on
RAW.Other <c1><text>
RAW.001 <c1>Welcome <text>
RAW.002 <c1>Your Host Is <server>, running <value>
RAW.003 <c1>This server was created on <value>
RAW.005 <text>
RAW.221 <pre><c1> usermode: <modes>
RAW.250 <pre><c1><value> total connections
RAW.251 <pre><c1>There are <users> users online, <text> invisible, on <value> servers
RAW.252 !Script %:echo $+(%::pre,,%::c1,%::value) $iif(%::value == 1,operator,operators) online
RAW.253 <pre><c1><value> unknown connections
RAW.254 !Script %:echo $+(%::pre,,%::c1,%::value) $iif(%::value == 1,channel,channels) formed
RAW.255 <pre><c1>I have <users> clients and <value> servers
RAW.265 <pre><c1>Current local users: <users> max: <value>
RAW.266 <pre><c1>Current global users: <users> max: <value>
RAW.302 <pre><c1> userhost <nick>: <address>
RAW.324 <pre><c1> modes: <c3>(<c2><modes><c3>)<c1>
RAW.332 <pre><c1> topic: <c3>(<c2><text><c3>)<c1>
RAW.333 !Script %:echo $+(%::pre,,%::c1) set by: $+(,%::c3,$chr(40),,%::c2,%::nick,,%::c3,$chr(41),,%::c1) on $+(,%::c3,$chr(40),,%::c2,$asctime($ctime(%::text),ddd mmm dd $+ $chr(44) yyyy h:nn tt),,%::c3,$chr(41),,%::c1)
RAW.341 <pre><c1><nick> invited to <chan>
RAW.353 <pre><c1>names <c3>(<c2><chan><c3>):<c1> <text>
RAW.366 <pre><c1>end of /names <chan>
RAW.372 <c1><text>
RAW.375 <pre><c1>MOTD - <server>
RAW.376 <pre><c1>end of MOTD
RAW.391 <pre><c1>server time: <text>
RAW.329 !Script %:echo $+(%::pre,,%::c1) channel created: $+(,%::c3,$chr(40),,%::c2,$asctime(%::text,ddd mmm dd $+ $chr(44) yyyy h:nn tt),,%::c3,$chr(41))

;there's a gap, then you continue
RAW.401 <pre><c1>error: <nick> no such nickname
RAW.403 <pre><c1>error: <chan> no such channel
RAW.404 <pre><c1>error: <chan> unable to send message
RAW.421 <pre><c1>error: <value> invalid command
RAW.432 <pre><c1>error: <nick> invalid nickname
RAW.433 <pre><c1>error: <nick> is in use
RAW.471 <pre><c1>error: <chan> is full
RAW.473 <pre><c1>error: <chan> invite only
RAW.474 <pre><c1>error: <chan> banned from channel
RAW.475 <pre><c1>error: <chan> key required
RAW.482 <pre><c1>error: <chan> you aren't an op
Raw.408 <pre><c1>error: <chan> you cannot use colors on this channel

;finally, you get to define the colors for your other color schemes, just like the default.
[Scheme1]
BaseColors 01,11,12,13
Colors 06,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,06,01,06,01,01
RGBColors 255,255,255 100,100,100 133,152,167 0,147,0 255,0,0 127,0,0 242,238,231 252,127,0 255,255,0 0,252,0 9,107,255 140,162,174 124,149,163 221,227,232 54,64,71 141,155,169

[Scheme2]
BaseColors 01,11,12,13
Colors 06,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,06,01,06,01,01
RGBColors 255,255,255 75,75,75 133,152,167 0,147,0 255,0,0 127,0,0 215,221,224 252,127,0 255,255,0 0,252,0 9,107,255 39,86,117 23,57,80 201,206,209 54,64,71 141,155,169

[Scheme3]
BaseColors 01,11,12,13
Colors 06,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,06,01,06,01,01
RGBColors 255,255,255 100,100,100 133,152,167 0,147,0 255,0,0 127,0,0 253,253,253 252,127,0 255,255,0 0,252,0 9,107,255 118,138,148 105,126,138 221,227,232 54,64,71 141,155,169

hope this helps ^_^

Edited Oct 18, 2005 7:20 AM by Angelia

People are like slinkies; they're generally boring until you push them down stairs

wow these posts helped alot thanks guys :D ill play around with it tonight and post tomorrow if i need some more help :)

Always wondered about the break down of this:

 

-ti2

Get the Tech outta here!

Angelia, yours is a good example code, but it is still good to take the time and go through the link i posted because it goes into depth as to what you can do, the example code is like a rush tutorial, and wont reveal everything you can do.

 

Vegeta, -ti2 refers to, -t = time stamp (if set to on), i2 refers to the amount of indent when the rap occurs.

Edited Oct 18, 2005 12:32 PM by The Gate Keeper

i think it's better for people to experiment with programming languages, rather than tell them all possibilities, much like mirc.hlp; from little things like being able to use $r instead of $rand to uses of dlls and picwins. 'course, it helps to have details too :lol:

People are like slinkies; they're generally boring until you push them down stairs

i do mine like error does lol... was thinking of doing a bunch of themes and posting them on here :unsure:

gaurd dog > the link u gave me redirects to the main page.. mircscripts.org

 

and as far as the other help... ive gotten some of it down. i cant figure out 2 things.

 

1) how to get regular text in the room this format..

[timestamp] [username] message.

 

ive got the timestamp and message like its supposed to be but i cant close in the username in the brackets..

 

2) i want to remove the @ in front of the names because i think its annoying. all i got to do is look at my nicklist for that.

 

here is the format i got so far..

 

TEXTCHAN  <c4> (08 <nick> <c4>)<c3> <text>

TEXTQUERY  <c4>(08 <nick> <c4>)<c3> <text>

TEXTCHANSELF  <c4>(<c3> <me> <c4>)11 <text>

 

im so lost on this part :P .. any more help would be great :)

 

 

seph> i would be very interested in those themes if u did release them :P

lol, nope TGK... I'm an mts person too... I don't like the themes I make though so I'm always using luminosity :P

"If you don't risk anything you risk even more." - Erica Jong

http://www.mircscripts.org/mts.php

 

then click MTS 1.3 Draft 8.4

ok... i dunno what im doing wrong..

 

heres everything i got maybe someone can do some editing and i can study it or someone could just tell me what im doing wrong because im extremely frusterrated.

 

the way i want it to look is:

 

[timestamp] bl [nick] : text

 

bl = a round bullet or whatever

 

nickname should be bold

 

*edit start*

i also want to get rid of the @ infront of the nicks... its red for owners and green for hosts... very irritating

*edit end*

 

screenshot of the current

 

http://www.freewebs.com/lyquiddim3nsi0n/sscrap.JPG

 

link to the theme as i currently have it.

 

http://www.freewebs.com/lyquiddim3nsi0n/blue.rar

 

also er0x_b0t is my scripts nickname...

 

where it does have (er0x_b0t) is for the trivia script

 

hope someone can help :)

Edited Oct 18, 2005 11:45 PM by lyquid

did you read the MTS draft from the link (you click the link above that i gave, and then click MTS 1.3 Draft 8.4 ...

 

... means there is more text after it, connected to the hyperlink. Trust me, if you read it, it is a lot easier to understand the basics of MTS.

ok, ive read the full thing.. understand it and all.

 

i have also downloaded a theme wich should look like this (@nick) but instead it just looks like @nick

 

any one have any idea why its cutting out the ( and ) ?

the code might be wrong, what is the code that you have there?

i downloaded the luminosity theme... shows in the preview its supposed to be like

 

timestamp (nickname) : text...

 

but mine still comes up as

 

timestamp @nickname : text

 

trying to get it to look like the preview has it :(

 

*note* the theme is unmodified so i just downloaded it and loaded it into mirc

Edited Oct 19, 2005 9:53 AM by lyquid

seems very weird, have you tried the !script version of it.

 

e.g.

 

TEXTCHAN  !script  $+ %::c4 $chr(40) $+ 09 %::nick  $+ %::c4 $+ $chr(41)  $+ %::c2 %::text