Top

.view


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  1.6
Scores Submitted  5
Date Added  Feb 21, 2006
Last Updated  Feb 22, 2006
Tags  bot  file  read  text 
  Bookmark and Share

Introduction

type in channel / query to bot:

.view file

to view a text file



Grab the Code

Comments

  (11)  RSS
xDaeMoN
Comments: 696
 
mIRC Snippet:  .view
Posted on Feb 21, 2006 2:49 pm
Use /play ;)
bearruler
Comments: 24
 
mIRC Snippet:  .view
Posted on Feb 21, 2006 2:54 pm
Please test snippets before posting them
Aliases do not have a $nick identifier

You could have used /play too

on *:text:.view *:*: play $2 $nick

I believe that does it too

This snippet is very dangerous though
If you have auto-identify preform commands, people could just view your mirc.ini file and get your password


Bear
bearruler
Comments: 24
 
mIRC Snippet:  .view
Posted on Feb 21, 2006 2:59 pm
Sorry,
Its play $nick $2


Bear
therannmann2000
Comments: 8
 
mIRC Snippet:  .view
Posted on Feb 21, 2006 4:23 pm
On major servers (or any with flood protection), using play you might want to add a delay. (ex: /play $2 3) A 3 second delay is usually fine. Just a heads up :D
F*U*R*B*Y*
Comments: 551
 
mIRC Snippet:  .view
Posted on Feb 21, 2006 7:07 pm
wat does it actaully do?
MewLaue
Comments: 3
 
mIRC Snippet:  .view
Posted on Feb 22, 2006 4:50 am
I know its dangerus, but you can easy change the userlevel:

before:
on *:text:.view*:*:{ view $2 }

after:
on 20:text:.view*:*:{ view $2 }

and.. there is an floodprotection in the script

I\'ve used a timer that add +2 seconds per line
see this:
...
%viewtimer = 1
:nextzeile
inc %viewtimer 2
...
if %i < %lines { goto nextzeile }
...

thats the same :)

@bearruler you can use an $nick identifier in an alias
test it ;)
MewLaue
Comments: 3
 
mIRC Snippet:  .view
Posted on Feb 22, 2006 4:56 am
(i\'ve test the script and it works)
F*U*R*B*Y*
Comments: 551
 
mIRC Snippet:  .view
Posted on Feb 22, 2006 5:02 am
u didn\'t answer my question anyways
MewLaue
Comments: 3
 
mIRC Snippet:  .view
Posted on Feb 22, 2006 6:40 am
excuse me please

after you load this script by your bot type in chan (where the bot is) or query the bot
.view FILE

than the bot query you and send you every line of the FILE, that you want to view
anthalus
Comments: 70
 
mIRC Snippet:  .view
Posted on Feb 22, 2006 11:26 am
This is quite a dangerous script without protections built in. A level system could be overcome fairly easily. I would add a check system that only allows certain areas of a specific folder for increased safety.
KuTsuM
Comments: 137
 
mIRC Snippet:  .view
Posted on Feb 23, 2006 11:41 pm
While loops are rather helpfull ;p

Also,
%viewtimer = 1
%lines = $lines(%file)
Are those globally pre-set variables? I suppose your using them just for this exact purpose, which makes them rather useless, and a waste of space. Look into the /var command: /help /var

Please Register or Login to start posting comments.
Bottom