mIRC Home    About    Download    Register    News    Help

Print Thread
Writing a aliase script #26094 26/05/03 12:29 PM
Joined: May 2003
Posts: 12
L
laser Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: May 2003
Posts: 12
Let's say i am writing a aliases with directions on how to unlock and open car door.

/test /say Here are the steps on how to unlock and open car door>>step 1.get the key for the door lock>>step 2 insert key into door lock.>>>step 3.rotate key clockwise untill it will not rotate.>>>step 4 pull door handle up untill door opens.

Okay here is question: How do i write this so the steps will display like below .
Here are the steps on how to unlock and open car door
>>step 1.get the key for the door lock
>>step 2 insert key into door lock.
>>step 3.rotate key clockwise untill it will not rotate.
>>step 4 pull door handle up untill door opens.
as you can see I am wanting each step on a seperate line in the chat.
Instead of being displayed as below.

Here are the steps on how to unlock and open car door>>step 1.get the key for the door lock>>step 2 insert key into door lock.>>>step3.rotate key clockwise untill it will not rotate.>>>step 4pull door handle up untill door opens.

Re: Writing a aliase script #26095 26/05/03 12:31 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
/test {
  say Here are the steps on how to unlock and open car door
  say >>step 1.get the key for the door lock
  say >>step 2 insert key into door lock.
  say >>step 3.rotate key clockwise untill it will not rotate.
  say >>step 4 pull door handle up untill door opens.
}

Re: Writing a aliase script #26096 26/05/03 12:34 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It's simple. Break it into several /say commands:
Code:
test {
  say Here are the steps on how to unlock and open car door
  say step 1: get the key for the door lock
  say step 2: insert key into door lock
  say step 3: rotate key clockwise untill it will not rotate
  say step 4: pull door handle up untill door opens.
}


If you wanted, you can write the alias in one line, separating the commands with a pipe - |. However, it costs in readability.
Code:
test say step 1... | say step 2... | say step 3...

Re: Writing a aliase script #26097 26/05/03 01:25 PM
Joined: May 2003
Posts: 12
L
laser Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: May 2003
Posts: 12
Thanks for quick reply it is working for me. 1 more question if I may is there a way to change the font color in the aliases

Re: Writing a aliase script #26098 26/05/03 01:28 PM
Joined: Dec 2002
Posts: 54
L
laz Offline
Babel fish
Offline
Babel fish
L
Joined: Dec 2002
Posts: 54
In the mIRC alias editor, hit control+k

Re: Writing a aliase script #26099 26/05/03 01:38 PM
Joined: May 2003
Posts: 12
L
laser Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: May 2003
Posts: 12
Thanks again you are the best
is there a chat for help with this

Last edited by laser; 26/05/03 01:39 PM.
Re: Writing a aliase script #26100 26/05/03 05:24 PM
Joined: Dec 2002
Posts: 21
L
listner Offline
Ameglian cow
Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 21
(Just an additional thought on this subject)
Both collective and online gave a very good basic way to
do this. If you have a lot of instances where you would
like to display different subjects, then here is another way
to the same thing.

Create a plain text file (let's say... help.txt). One good
location for this would be in the same folder as mirc.exe.
It would have the following contents:

[UnlockCarDoor]
Here are the steps on how to unlock and open car door
step 1. get the key for the door lock
step 2. insert key into door lock.
step 3. rotate key clockwise untill it will not rotate.
step 4. pull door handle up untill door opens.

[NextTopic]
the next topic information would go here, same as above.

In my channel popups I would then have this:

.UnlockCarDoor: .play -tUnlockCarDoor help.txt 3000

I can easily edit the help.txt file to make any additions /
changes / deletions without having to edit aliases or popups
very much.

It seems to work well, for using a lot of mIRC help topics.

Hope that this helps,

Listner


Morals: When the p0rn shop gives you too much change, and you don't keep it.
Re: Writing a aliase script #26101 26/05/03 10:54 PM
Joined: Feb 2003
Posts: 2,711
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,711
There are many mIRC Help chat channels on a number of IRC networks. Most all of them will answer scripting questions and help lead you in the right direction... but all will also expect you spend a lot of time reading the help file, /help <topic>.

My personal favorite is #mIRC on EFNet, <a href="irc://EFNet/mIRC" target="_blank">irc://EFNet/mIRC</a>

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Writing a aliase script #26102 27/05/03 12:50 PM
Joined: May 2003
Posts: 12
L
laser Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: May 2003
Posts: 12
Is there a way for this to display in chat without the time and nick before each line cool

Re: Writing a aliase script #26103 27/05/03 06:18 PM
Joined: Dec 2002
Posts: 339
F
FunChatter Offline
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
You can de-active displaying your own nick in your chat client.. This would just replace

<FunChatter> blabla

with

> blabla

To do this... goto to options window... ALT+O and goto IRC menu... uncheck the Prefix own messages box...

For the time... You need to de-active the timestamps thingy... Go to options window againn... ALT+O and goto IRC menu and under IRC menu find Messages submenu... in there, uncheck the Timesptap events box at the top of the window smile