Truth or Dare

By Vegito on Nov 23, 2013

Type:
!truth [nick/empty] to read a truth/dare question.
!addtruth [truth/dare] to add a truth/dare question.
!opentruth [truth/dare] To open the truth/dare file.

on $*:TEXT:/^!(truth|dare)/Si:#: {
  if (%flood [ $+ [ $+($site,$network) ] ]) { notice $nick 12You must wait04 $duration($v1) 12before you can use that again. | halt }
  var %nick $nick(#,$rand(1,$nick(#,0))) | while (%nick = $nick) var %nick $nick(#,$rand(1,$nick(#,0)))
  if ($2 = $me) { msg # 12I'm afraid I can't do that.. | halt }
  if ($2 && $2 !ison #) { notice $nick 12Specified person has to be on the channel. | halt }
  set -z $+(%,flood,$site,$network) 15
  if (!$2) { msg # 4 $+ %nick 12 $+ $read($regml(1) $+ .txt) | halt }
  msg # 4 $2  $+ , 12 $+ $iif($regml(1) = truth,,I dare you to) $read($regml(1) $+ .txt)
}

on $*:TEXT:/^!add(truth|dare)/Si:#: {
  if ($nick == Vegito) { write $regml(1) $+ .txt $2- | msg $nick " $+ $2- $+ " has been added, $nick $+ ! }
}

on $*:TEXT:/^!open(truth|dare)/Si:#: {
  if ($nick != Vegito) halt
  if (!$lines($regml(1) $+ .txt)) { msg $nick The $regml(1) folder is empty. | halt }  
  run $regml(1) $+ .txt
}

Comments

Sign in to comment.
KryptonCnR   -  Nov 27, 2013

I like this script ! I have added some truth's to it.

A list can be found here > http://pastebin.com/gFQU2MPc < (just copy and paste into the truth.txt) file in your mIRC directory of your bot. (that's to anyone else who uses this also) :)

Vegito  -  Nov 28, 2013

Haha thanks, I liked those questions :D

xKarpfen  -  Feb 16, 2014

Hey, today is the first time i looked at mirc scripts and... im confused.
I only see "$regml(1)" in there. Where does the script actually know what the file is called?
Is it a parameter it gets so its just truth.txt and dare.txt?
If so... i created a txt file called "truth.txt" and its in the same folder as the script file. But for some reason when i type "truth [name]" it only gives me "[name], "
Help please

Edit: Nvm i had it in scripts folder. Now it works that it is in the folder above -> mIRC

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.