mIRC HostServ

By DarkLordPazuzu on Sep 26, 2005

I downloaded UnrealIRCD and messed around with it a bit. Since I'm on 98, I had a hard time finding services. Thanks to the people here I was able to find Epona IRC Services. Well, I noticed Epona doesn't have a HostServ. So I made one! Its not the greatest but it does the job. =p

Stick it in its own remote and its good to go. I based it off of Anope's so it just waits for /msg's

Your Network must support /chghost and the bot must have IRCop access.

;mIRC HostServ written by DarkLordPazuzu
;Originally made on Unreal 3.2.3 
;The Bot Must Have IRCop Access and 
;Your Network Must Support /chghost inorder for this to work.

on *:TEXT:*:?:{
  if ($1 == set) && ($2 == $nick) && ($3) { 
    writeini -n vHosts.ini vHosts $nick $3 
    writeini -n oHosts.ini oHosts $nick $remove($address($nick,2),*!*@)
    echo -ts * $+ $nick $+ * $1-
    halt
  }
  if ($1 == set) && ($2 != $nick) { 
    msg $nick please sign onto that nickname before you set a vHost to it!
    echo -ts * $+ $nick $+ * $1-
    halt 
  }
  if ($1 == on) { 
    chghost $nick $readini(vHosts.ini, vHosts, $nick)
    echo -ts * $+ $nick $+ * $1-
    halt 
  }
  if ($1 == off) { 
    chghost $nick $readini(oHosts.ini, oHosts, $nick)
    echo -ts * $+ $nick $+ * $1-
    halt 
  }
  if ($1 == help) && (!$2) {
    notice $nick ON Activates your assigned vHost.
    notice $nick OFF Deactivates your assigned vHost.
    notice $nick SET assign vHost to your current nickname. example: /msg hostserv set HostServ I.Am.HostServ
  }
  if ($1 == help) && ($2 == on) {
    notice $nick Syntax: ON
    notice $nick Activates the vhost currently assigned to the nick in use.
    notice $nick When you use this command any user who performs a /whois
    notice $nick on you will see the vhost instead of your real IP address.
  }
  if ($1 == help) && ($2 == off) {
    notice $nick Syntax: OFF
    notice $nick Deactivates the vhost currently assigned to the nick in use.
    notice $nick When you use this command any user who performs a /whois
    notice $nick on you will see your real IP address.
  }
  if ($1 == help) && ($2 == set) {
    notice $nick Syntax: SET
    notice $nick Assigns a vhost of your choice to the nick in use.
    notice $nick When you use this command any user who performs a /whois
    notice $nick on you will see the vhost instead of your real IP address.
  }
}

on *:SNOTICE:*Client Connecting*:{
  if ($readini(vHosts.ini, vHosts, $nick)) {
    writeini -n oHosts.ini oHosts $nick $remove($address($nick,2),*!*@)
    chghost $nick $readini(vHosts.ini, vHosts, $nick)
    halt
  }
}

on *:open:?:{ .timer 1 3 closemsg $nick }

Comments

Sign in to comment.
just_neo   -  Nov 02, 2007

i found this script:

http://www.mircboard.de/viewtopic.php?t=4127

And it just works.

i am just 14 years living in holland, running linux ubuntu 7.04, running unreal 3.2.7 (trying) to develop my own services with c (first with mirc, so i can see how i want it* i run \'wine\' windows emulator) :))

Good Luck!

 Respond  
Le_Fou   -  Sep 29, 2005

KuTsuM it seems interesting what u saying.but could you just explain a bit more.i haven\'t understand.
Good job DarkLordPazuzu

 Respond  
KuTsuM   -  Sep 26, 2005

on logon you pass these commands to the server
PROTOCTL NICKv2 VHP UMODE2 NICKIP SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64
PASS :
SERVER services.server.com 1 :Services

 Respond  
DarkLordPazuzu   -  Sep 26, 2005

sorry I should have said that in the intro.

Paste it into a new remote file and save it.
to set a vhost you use /msg BotNickname set Nickname New.Host just like with Anope.
The same to turn it on and off.
/msg BotNickname on
/msg BotNickname off

I prefer to use HostServ as the nickname since I dont have an actual hostserv.

 Respond  
Vortex   -  Sep 26, 2005

How do you even use this?

 Respond  
DarkLordPazuzu   -  Sep 26, 2005

no clue how =o

 Respond  
KuTsuM   -  Sep 26, 2005

You should make it connect to the server\'s services by using the unreal32 protocol ;/

 Respond  
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.