mIRC Bot Greet Script

Moderator: GeekShed.Net Staff

mIRC Bot Greet Script

Postby GrimReaper » Sat Nov 28, 2009 5:24 pm

Code: Select all
on *:TEXT:!setgreet *:#: {
  set %personal.greet. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] on
  writeini greet. $+ $chan $+ . $+ $network $+ .txt $nick GREET $2-
  notice $nick $nick , Your Personal Greet For $chan Has Been Set To: $2- $+ .
}

on *:TEXT:!delgreet:#: {
  set %personal.greet. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ]
  remini greet. $+ $chan $+ . $+  $network $+ .txt $nick
  notice $nick $nick $+ , Your Greet For $chan Has Been Deleted!
}

on *:JOIN:#: {
  if (%greet.hide. [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] == off) {
    if (%personal.greet. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] == on) {
      if ($readini(greet. $+ $chan $+ . $+ $network $+ .txt,$nick,GREET)) {
        msg $Chan 4[12 $+ $nick $+ 4]12 $readini(greet. $+ $chan $+ . $+ $network $+ .txt,$nick,GREET)
      }
    }
  }
}

on *:TEXT:!hidegreets:#: {
  if ($nick isop $chan) {
    notice $nick Greets Will Now Be Hidden On $chan
    set %greet.hide. [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] on
  }
}

on *:TEXT:!showgreets:#: {
  if ($nick isop $chan) {
    notice $nick Greets Will Now Be Displayed On $chan
    set %greet.hide. [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] off
  }
}

on *:TEXT:!greet off:#: {
  set %personal.greet. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] off
  notice $nick [ $+ $nick $+ , Your Personal Greet Has Been Set Off]
}

on *:TEXT:!greet on:#: {
  set %personal.greet. [ $+ [ $nick ] $+ ] . [ $+ [ $chan ] $+ ] . [ $+ [ $network ] ] on
  notice $nick [ $+ $nick $+ , Your Personal Greet Has Been Set On]
}

on *:TEXT:!Greet Help:#: {
  notice $nick ~~~~~~~~~~~~~~~~~~~~~~~ Greet Help ~~~~~~~~~~~~~~~~~~~~~~~
  .timer 1 1 notice $nick !setgreet <message here> - This enters what you want to appear when you join the channel. (Ex: !setgreet Hello! My name is Chandler!)
  .timer 1 2 notice $nick !delgreet - This deletes your current greeting
  .timer 1 3 notice $nick !showgreets - This will enable display for the greetings in your channel (Default: Turned off, Must be op to set)
  .timer 1 4 notice $nick !hidegreets - This will disable display for the greetings in your channel (Default: Turned off, Must be op to set)
  .timer 1 5 notice $nick !greet on - This turns your personal greet message on.
  .timer 1 6 notice $nick !greet off - This turns your personal greet message off.
  .timer 1 7 notice $nick ALL Greet's Are Channel And Network Specific. So Please Be Aware Of That.
}


Syntax is:
!setgreet <message here> (Set's your desired greet message)
!delgreet (Delete's your greet for that channel)
!showgreets (Show's greets in the the channel the trigger was done in when people join who have a greet)
!hidegreets (Disables greets from showing in that channel.)
!greet on/off (Turns your personal greet on or off for that channel)

Just to people know. as it states in !greet help All greets are channel and network specific, If you set a greet in one channel on one network then go to the same channel name on another network it will not work.

Edit: I forgot to add the $network var to a part of the script.. It is now working correctly.
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.

Return to Script help

Who is online

Users browsing this forum: No registered users and 3 guests

cron