Top

script loader.

Please Register to submit score.
Average Score  7.0
Scores Submitted  1
Date Added  May 09, 2008
Last Updated  May 09, 2008
Tags  errorcheck  knoeki  loader  script  zomgwtfbbq 

Introduction

Code:
############### SCRIPTLOADER ###############
#                                          #
#    By Knoeki of the #zomgwtfbbq crew.    #
#                                          #
#               Visit us at                #
#                                          #
#         http://zomgwtfbbq.info           #
#                  -OR-                    #
#    irc.p2p-network.net / #zomgwtfbbq     #
#                                          #
############################################


Instructions:

!load <filename>
-- will load the specified file from scripts

How it works:

if you want to load something you type the trigger,
the script will check if a filename was specified. if not, it will halt with ?MISSING PARAMETER ERROR.

if a filename is specified, the script will check the scripts dir for the specified file. if the file is not found, the script also halts, but with ?FILE NOT FOUND ERROR.

if the file was found in the scripts dir, then it will load the specified script.



Could be useful for bots. mine runs on a seperate machine. I can edit the files over the network, and now I wanted a way to (re)load files from IRC itself. :_)


####### WARNING!! PLEASE READ!! #########

Please note that there is a VERY great chance that this script may NOT work for you.
First of all, it checks for a bot owner. since my bot is based on ybbot, I used the owner level of ybbot ( 1600 ). Read CatBox360's comment for how to add your own levels.

Also note that it will only search inside the 'scripts' folder of mIRC.

both these things may be modified as needed. please DO leave the copyright / info at the top of the script intact.

I hope this is useful to someone, but remember, I made this mostly for my personal needs.

Grab the Code

Comments

  (2)  RSS
CatBox360
Comments: 1
 
mIRC Snippet:  script loader.
Posted on May 9, 2008 8:06 am
You can simply change the user access level by changing the on 1600:TEXT: to: on USERLEVELHERE:TEXT:

you can add user levels in your user tab in the mIRC script editor:
USERLEVELHERE:NICKHERE HOSTHERE
For example
10:CatBox360!~CatBox360@my.host.here
<3 Knoeki
knoeki
Comments: 6
 
mIRC Snippet:  script loader.
Posted on May 9, 2008 8:16 am
Okay, thanks for the solution!

Please Register or Login to start posting comments.
Bottom