• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#4219 - 02/11/09 08:51 PM Topic Managment Script
Freelancer Offline
newbie

Registered: 12/20/08
Posts: 44
Loc: USA
This is my first WyldRyde mIRC v6.35 Remote Script.

Note: You need a separate mIRC Installation or computer running mIRC to set this up & be able to use with your default Chatting Program.

The topic displays as:

STATUS1 DIVIDER STATUS2 DIVIDER STATUS3 DIVIDER STATIC

You use "!status", "!status2", & "!status3" to change the consecutive topic sections. Use "!static" to change the ending, & "!remove XXX". "XXX" being the number combination you want to remove (Refer to Possible Commands You Can Use & Usage : Section 3 for further help). Input the data after the "!" command(Such as "!status2 blablabla").

Basic Setup Instructions:

1.Open mIRC.
2.Goto Tools > Scripts Editor.
3.Copy & Paste this script in the Remote tab at the end.
4.Remove "<CHANNEL>" & replace with your channel name.
5.Click OK
6.On the mIRC Installation you chat with, Set your divider (Refer to Possible Commands You Can Use & Usage : Section 1).
7.Set your three status message segments (Or only the ones you will use. Refer to Possible Commands You Can Use & Usage : Section 2)
8.If you like, You may remove which segments you didn't use or don't want (Look below for help : Section 3).
9.Finished!

Possible Commands You Can Use & Usage:

Section 1: !divider
"!divider <PREFERRED DIVIDER>" Replace "<PREFERRED DIVIDER>" with the divider you want.

Section 2: !status, !status2, !status3, & !static
"!status <STATUS>" Replace "<STATUS>" with the status message you like.
"!static <STATIC>" Replace "<STATIC>" with the static message you like.

Section 3: !remove
"!remove X", "!remove XX", or "!remove XXX" To remove the static portion: "!remove staticXX" (Can't remove all of the topic). Replace "X" "XX", or "XXX" with the combination of the matching size number(s) as the x('s) with "1", "2", "3", "12", "13", "21", "23", "31", "32", "123", "132", "213", "231", "312", or "321" To remove the provided Segment #'s (Each number combination such as "!remove 312" removes segment 1, 2, & 3).

If you need a custom version made for you contact me on WyldRyde. My nickname is "Freelancer".
The last thing is the script! smile Enjoy! (Current Version: 1.0.1):

-----------------------------------------------------------------

Code:
on 1:TEXT:*:<CHANNEL>: {
  if ($nick isop $chan || $nick ishop $chan) {
    if ($1 == !divider) {
      set %divider $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status) {
      set %status $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status2) {
      set %status2 $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status3) {
      set %status3 $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !static) {
      set %static $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !remove) {
      if (%remove != %blank) {
        if ($2- == clear) {
          unset %remove
          /msg $chan Remove variable cleared!
          topic $chan %status %divider %status2 %divider %status3 %divider %static
        }
        else {
          /msg $chan Type "!remove clear" (without quotes) to clear the variable preventing you to proceed.
        }
      }
      else {
        set %remove $2-
        if (%remove == 1) {
          topic $chan %status2 %divider %status3 %divider %static
        }
        if (%remove == 2) {
          topic $chan %status %divider %status3 %divider %static
        }
        if (%remove == 3) {
          topic $chan %status %divider %status2 %divider %static
        }
        if (%remove == 12 || %remove == 21) {
          topic $chan %status3 %divider %static
        }

        if (%remove == 13 || %remove == 31) {
          topic $chan %status2 %divider static
        }

        if (%remove == 23 || %remove == 32) {
          topic $chan %status %divider %static
        }
        if (%remove == all || %remove == 123 || %remove == 132 || %remove == 213 || %remove == 231 || %remove == 321 || %remove == 312) {
          topic $chan %static
        }
        if (%remove == static) {
          topic $chan %status %divider %status2 %divider %status3
        }
        if (%remove == static1) {
          topic $chan %status2 %divider %status3
        }
        if (%remove == static2) {
          topic $chan %status %divider %status3
        }
        if (%remove == static3) {
          topic $chan %status %divider %status2
        }
        if (%remove == static12 || %remove == static21) {
          topic $chan %status3
        }
        if (%remove == static13 || %remove == static31) {
          topic $chan %status2
        }
        if (%remove == static23 || %remove == static32) {
          topic $chan %status
        }
      }
    }
  }
  else {
    /msg $chan You cannot alter the topic.
  }
}


Edited by Freelancer (02/11/09 08:54 PM)

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#4221 - 02/12/09 05:24 PM Re: Topic Managment Script [Re: Freelancer]
Freelancer Offline
newbie

Registered: 12/20/08
Posts: 44
Loc: USA
NOTICE:

I noticed a fatal error!
When a voiced or lower user talks, it says "You may not alter the topic."
If you need any support join #tbch
Use this script instead:

-----------------------------------------------------------------

Code:
on 1:TEXT:*:#TBCH: {
  if ($nick isop $chan || $nick ishop $chan) {
    if ($1 == !divider) {
      set %divider $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status) {
      set %status $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status2) {
      set %status2 $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status3) {
      set %status3 $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !static) {
      set %static $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !remove) {
      if (%remove != %blank) {
        if ($2- == clear) {
          unset %remove
          /msg $chan Remove variable cleared!
          topic $chan %status %divider %status2 %divider %status3 %divider %static
        }
        else {
          /msg $chan Type "!remove clear" (without quotes) to clear the variable preventing you to proceed.
        }
      }
      else {
        set %remove $2-
        if (%remove == 1) {
          topic $chan %status2 %divider %status3 %divider %static
        }
        if (%remove == 2) {
          topic $chan %status %divider %status3 %divider %static
        }
        if (%remove == 3) {
          topic $chan %status %divider %status2 %divider %static
        }
        if (%remove == 12 || %remove == 21) {
          topic $chan %status3 %divider %static
        }

        if (%remove == 13 || %remove == 31) {
          topic $chan %status2 %divider static
        }

        if (%remove == 23 || %remove == 32) {
          topic $chan %status %divider %static
        }
        if (%remove == all || %remove == 123 || %remove == 132 || %remove == 213 || %remove == 231 || %remove == 321 || %remove == 312) {
          topic $chan %static
        }
        if (%remove == static) {

          topic $chan %status %divider %status2 %divider %status3
        }
        if (%remove == static1) {
          topic $chan %status2 %divider %status3
        }
        if (%remove == static2) {
          topic $chan %status %divider %status3
        }
        if (%remove == static3) {
          topic $chan %status %divider %status2
        }
        if (%remove == static12 || %remove == static21) {
          topic $chan %status3
        }
        if (%remove == static13 || %remove == static31) {
          topic $chan %status2
        }
        if (%remove == static23 || %remove == static32) {
          topic $chan %status
        }
      }
    }
  }
}



Edited by Freelancer (02/12/09 05:41 PM)

Top
#4280 - 02/18/09 11:40 PM Re: Topic Managment Script [Re: Freelancer]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
I suppose I'm lazy when it comes to topic management. I change them about once a year , haha.
I didn't test this script because it looks like it wipes out the original topic. I would add something like if (!%static) { set %static $chan(#).topic } Just a suggestion. This would put the current topic in the %static variable on first run, so it doesn't get lost.
Happy scripting Freelancer wink
_________________________
If you already know everything, You can never learn anything :P

Top
#4337 - 02/23/09 09:43 PM Re: Topic Managment Script [Re: Freelancer]
Freelancer Offline
newbie

Registered: 12/20/08
Posts: 44
Loc: USA
I found another error.
Use this script.

-------------------------------------------------------------------

Code:
on 1:TEXT:*:<CHANNEL>: {
  if ($nick isop $chan || $nick ishop $chan) {
    if ($1 == !divider) {
      set %divider $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status) {
      set %status $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status2) {
      set %status2 $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !status3) {
      set %status3 $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !static) {
      set %static $2-
      topic $chan %status %divider %status2 %divider %status3 %divider %static
    }
    if ($1 == !remove) {
      if (%remove != %blank) {
        if ($2- == clear) {
          unset %remove
          /msg $chan Remove variable cleared!
          topic $chan %status %divider %status2 %divider %status3 %divider %static
        }
        else {
          /msg $chan Type "!remove clear" (without quotes) to clear the variable preventing you to proceed.
        }
      }
      else {
        set %remove $2-
        if (%remove == 1) {
          topic $chan %status2 %divider %status3 %divider %static
        }
        if (%remove == 2) {
          topic $chan %status %divider %status3 %divider %static
        }
        if (%remove == 3) {
          topic $chan %status %divider %status2 %divider %static
        }
        if (%remove == 12 || %remove == 21) {
          topic $chan %status3 %divider %static
        }

        if (%remove == 13 || %remove == 31) {
          topic $chan %status2 %divider %static
        }

        if (%remove == 23 || %remove == 32) {
          topic $chan %status %divider %static
        }
        if (%remove == all || %remove == 123 || %remove == 132 || %remove == 213 || %remove == 231 || %remove == 321 || %remove == 312) {
          topic $chan %static
        }
        if (%remove == static) {

          topic $chan %status %divider %status2 %divider %status3
        }
        if (%remove == static1) {
          topic $chan %status2 %divider %status3
        }
        if (%remove == static2) {
          topic $chan %status %divider %status3
        }
        if (%remove == static3) {
          topic $chan %status %divider %status2
        }
        if (%remove == static12 || %remove == static21) {
          topic $chan %status3
        }
        if (%remove == static13 || %remove == static31) {
          topic $chan %status2
        }
        if (%remove == static23 || %remove == static32) {
          topic $chan %status
        }
      }
    }
  }
}


Edited by Freelancer (02/23/09 09:44 PM)

Top


Moderator:  Jeff, mandy, usrbingeek