mIRC Home    About    Download    Register    News    Help

Print Thread
#146369 03/04/06 08:59 PM
Joined: Oct 2005
Posts: 51
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 51
hi all its been awhile but need little help
i got code its 2 parts and wasnt working properly if it was in 1 part
now i would like 2 convert this code so it will work in
eggdrop bot heres code
Code:
 on *:TEXT:*!vhost*:#vhost:{ /msg Hostserv set $nick $$2 } { /msg #vhost $nick 0Your Vhost has been set to Activate vhost type "/msg hostserv 9on" } 


heres part2

Code:
 on *:TEXT:!Remove:#vhost:{ /msg hostserv DEL $nick } { /msg #vhost $nick 4your vhost has been removed, 8Thank you for stoping by #vhost have a good day }
on *:TEXT:!Help:#vhost:{ 
  /msg #vhost !Remove - will remove your vhost
  /msg #vhost !vhost hostname - will give you the vhost specified
  /msg #vhost For example: !vhost I.got.my.own.vhost
  /msg #vhost would set your vhost to: I.got.my.own.vhost
  /msg #vhost The choosen vhost is permanent, only when your nick is registered, and will be enabled on identification with nickserv
}
 

any help would be greatfull in converting 2 eggdrop

#146370 04/04/06 09:36 AM
Joined: Apr 2006
Posts: 14
O
Pikka bird
Offline
Pikka bird
O
Joined: Apr 2006
Posts: 14
Hi, I don't really write tcl scripts but this should work fine.
Code:
bind pub - !remove pub:remove
bind pub - !help pub:help

proc pub:remove {nick chan} {
  if { $chan == "#vhost" } {
    putquick "PRIVMSG hostserv :DEL $nick"
    putquick "PRIVMSG $chan :$nick 4your vhost has been removed, 8Thank you for stoping by #vhost have a good day"
    return
  }
}
proc pub:help{nick chan} {
  if { $chan == "#vhost" } {
    putquick "PRIVMSG $chan :!Remove - will remove your vhost"
    putquick "PRIVMSG $chan :!vhost hostname - will give you the vhost specified"
    putquick "PRIVMSG $chan :would set your vhost to: I.got.my.own.vhost"
    putquick "PRIVMSG $chan :The choosen vhost is permanent, only when your nick is registered, and will be enabled on identification with nickserv"
    return
  }
}
putlog "Loaded vhost script"


Link Copied to Clipboard