Author Topic: Level menu  (Read 305 times)

Glow

  • Trial Moderator
  • Junior
  • ***
  • Posts: 69
  • Reputation +3/-4
  • Gimme -1! Newbie mIRC scripter
  • Location: Netherlands
    • View Profile
Level menu
« on: February 14, 2011, 03:21:37 pm »
First snippet for this forum. Thanks for King_Hual for fixing a little issue!

I know its useless but well yea.. I was bored^^.

Use !level to get it working. Each sentence at !level gets a random colour!

Code: [Select]
on *:text:!level:#:{ 
  if ($me == Amy) {
    if (%level == on) {   
      notice $nick The menu has already been shown. Level someone or say !slevel. 
    }
    else {   
      msg $chan 0,4You can set the following levels:
      msg $chan  $+ $r(1,14) $+ !levelv for +v(+)
      msg $chan  $+ $r(1,14) $+ !levelh for +h(%)
      msg $chan  $+ $r(1,14) $+ !levelo for +o(@) 
      msg $chan  $+ $r(1,14) $+ !levela for +a(&) 
      msg $chan  $+ $r(1,14) $+ !levelq for +q(~) 
      msg $chan  $+ $r(1,14) $+ !slevel to stop using this command. 
      set %user $nick 
      set %level on
    }
  }
}

on *:TEXT:!levelv*:#: {
  if ($me == Amy) {
    if (%level == on) && ($nick == %user) { 
      mode $chan +v $2   
      unset %user   
      set %level off
    }
  }
}

on *:TEXT:!levelh*:#: {
  if ($me == Amy) {
    if (%level == on) && ($nick == %user) { 
      mode $chan +h $2   
      unset %user   
      set %level off 
    }
  }
}

on *:TEXT:!levelo*:#: { 
  if ($me == Amy) {
    if (%level == on) && ($nick == %user) {   
      mode $chan +o $$2   
      unset %user   
      set %level off
    }
  }
}

on *:TEXT:!levela*:#: {
  if ($me == Amy) {
    if (%level == on) && ($nick == %user) {   
      mode $chan +a $2 
      unset %user 
      set %level off 
    }
  }
}

on *:TEXT:!levelq*:#: {
  if ($me == Amy) {
    if (%level == on) && ($nick == %user) { 
      mode $chan +q $2   
      unset %user 
      set %level off 
    }
  }
}

on *:TEXT:!slevel*:#: {
  if ($me == Amy) {
    if (%level == on) && ($nick == %user) {   
      notice %user Succesfully stopped leveling! 
      unset %user 
      set %level off
    }
  }
}

Share on Bluesky Share on Facebook


King_Hual

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 36
  • Reputation +3/-2
    • View Profile
Re: Level menu
« Reply #1 on: February 14, 2011, 07:03:05 pm »
Nice script, but next time try to remove the
Code: [Select]
  if ($me == Amy) { because it will confuse newbies and they will wonder why the script doesnt work :P To the newbies: You need to change the name "Amy" to your/your bot's name.

Also, you need to put the code
Code: [Select]
%level off in your "Variables" tab of mIRC script.

Glow

  • Trial Moderator
  • Junior
  • ***
  • Posts: 69
  • Reputation +3/-4
  • Gimme -1! Newbie mIRC scripter
  • Location: Netherlands
    • View Profile
Re: Level menu
« Reply #2 on: February 14, 2011, 07:14:43 pm »
Yes true I wil keep an eye on that if I post another snippet^^

Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Level menu
« Reply #3 on: February 15, 2011, 01:40:33 pm »
Nice Script, not bad at all :)