Top

/adid and /adialog


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  2.5 (of 4 scores)
Date Added  Sep 26, 2008
Last Updated  Sep 27, 2008
Tags  adid  alias  custom  dialog  dialogs  did  mirc  script  scripts 

Introduction

Had this idea by watching a few youtube vids with that typewriter style text on them (with moviemaker).
A few kudos go to Typo for helping me figure out why the text was being input backwards (really weird error lol).

In case you're wondering, /adid or /adialog stands for animated did or animated dialog.

Anyways, what this does is input text in an animated style way. In effect, it looks as if someone is manually typing it into what you specify. To be used with dialogs only.

Put this in your aliases section.

/adid:
Usage:
Code:
/adid dialogname dialogid text


Example:
Code:
/adid mp3 7 I am now listening to some funky music!


/adialog does the exact same thing but with dialog titles.

Usage:
Code:
/adialog dialogname text


Example:
Code:
/adialog mydialog I am viewing a dialog!


Grab the Code

adid {
  var %x = 1, %y = 50
  while (%x <= $len($3-)) {
    .timer -m 1 %y did -a $1 $2 $replace($right($left($3-,%x),%x),$chr(32),$chr(160))
    inc %x
    inc %y 50
  }
}
 
adialog {
  var %x = 1, %y = 50
  while (%x <= $len($2-)) {
    .timer -m 1 %y dialog -t $1 $replace($left($2-,%x),$chr(32),$chr(160))
    inc %x
    inc %y 50
  }
}

Comments

  (4)  RSS
Typo
Comments: 224
 
mIRC Snippet:  /adid and /adialog
Posted on Sep 26, 2008 11:26 am
Nice simple little codes. Not bad neptune. I'll go 7/10 even tho thats higher than every one of my scripts here except for one is rated at and they all kick the snot outta this one. lol :P

Keep it up.
^Neptune
Comments: 599
 
mIRC Snippet:  /adid and /adialog
Posted on Sep 26, 2008 1:56 pm
Aw, only one comment? And ty Typo.
Scakk
Comments: 297
 
mIRC Snippet:  /adid and /adialog
Posted on Sep 27, 2008 12:00 am
The /adid one does not work as when you use it on either normal text or text on a button all that is done is it does each letter and all that is left is the last letter of what you entered. If I chose "This is cool" for it all I would get when it is done is the "l" as it resets the field each time it gets to a new character to add.


Edit: Fixed issue. Solution below.

Use this $replace in place of the one you have for the /adid one and it will work correctly.

Code:
$replace($right($left($3-,%x),%x),$chr(32),$chr(160))
^Neptune
Comments: 599
 
mIRC Snippet:  /adid and /adialog
Posted on Sep 27, 2008 4:16 am
Thanks for pointing that out, although I've never had that problem.

Fixed anyways.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom