mIRC Homepage
Posted By: laser Writing a aliase script - 26/05/03 12:29 PM
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.
Posted By: Collective Re: Writing a aliase script - 26/05/03 12:31 PM
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.
}
Posted By: Online Re: Writing a aliase script - 26/05/03 12:34 PM
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...
Posted By: laser Re: Writing a aliase script - 26/05/03 01:25 PM
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
Posted By: laz Re: Writing a aliase script - 26/05/03 01:28 PM
In the mIRC alias editor, hit control+k
Posted By: laser Re: Writing a aliase script - 26/05/03 01:38 PM
Thanks again you are the best
is there a chat for help with this
Posted By: listner Re: Writing a aliase script - 26/05/03 05:24 PM
(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
Posted By: Raccoon Re: Writing a aliase script - 26/05/03 10:54 PM
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
Posted By: laser Re: Writing a aliase script - 27/05/03 12:50 PM
Is there a way for this to display in chat without the time and nick before each line cool
Posted By: FunChatter Re: Writing a aliase script - 27/05/03 06:18 PM
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
© mIRC Discussion Forums