1. Welcome to Smogon! Check out the Smogon Starters Hangout for everything you need to know about starting out in the community. Don't forget to introduce yourself in the Introduction and Hangout Thread, too!
  2. Welcome to Smogon Forums! Please take a minute to read the rules.

Use mIRC and Metalkid's IV calc? Check this thread.

Discussion in 'Stark Mountain' started by chaos, Jul 3, 2007.

  1. chaos

    chaos
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Smogon IRC SOPis a Contributor to Smogonis an Administratoris a Tournament Director Alumnusis a Researcher Alumnus
    Owner

    Joined:
    Dec 18, 2004
    Messages:
    10,123
    Hit Alt+R and put this somewhere in the textbox:

    Code:
    on 1:INPUT:* {
      if ( $regex(ivpaste,$1-,^([^-]+) - #(\d{1,3}) \(([a-zA-Zï]+)\)$) ) {
        set %ivpaste $regml(ivpaste, 3) $chr(35) $+ $regml(ivpaste, 2) $regml(ivpaste, 1) $+ :
        haltdef
      }
      elseif ( $regex(ivpaste, $1-, ^HP:    (\d{1,2}|x|Invalid)( - \d{1,2})?$) ) {
        set %ivpaste %ivpaste $regml(ivpaste,1) $regml(ivpaste,2)
        haltdef
      }
      elseif ( $regex(ivpaste, $1-, ^Att:   (\d{1,2}|x|Invalid)( - \d{1,2})?$) ) {
        set %ivpaste %ivpaste / $regml(ivpaste,1) $regml(ivpaste,2)
        haltdef
      } 
      elseif ( $regex(ivpaste, $1-, ^Def:   (\d{1,2}|x|Invalid)( - \d{1,2})?$) ) {
        set %ivpaste %ivpaste / $regml(ivpaste,1) $regml(ivpaste,2)
        haltdef
      }
      elseif ( $regex(ivpaste, $1-, ^SpA:   (\d{1,2}|x|Invalid)( - \d{1,2})?$) ) {
        set %ivpaste %ivpaste / $regml(ivpaste,1) $regml(ivpaste,2)
        haltdef
      } 
      elseif ( $regex(ivpaste, $1-, ^SpD:   (\d{1,2}|x|Invalid)( - \d{1,2})?$) ) {
        set %ivpaste %ivpaste / $regml(ivpaste,1) $regml(ivpaste,2)
        haltdef
      } 
      elseif ( $regex(ivpaste, $1-, ^Speed: (\d{1,2}|x|Invalid)( - \d{1,2})?$) ) {
        set %ivpaste %ivpaste / $regml(ivpaste,1) $regml(ivpaste,2)
        haltdef
        say %ivpaste
        unset %ivpaste
      } 
    }
    
    copy and paste information from Metalkid's program like normal, and it will output it on one line instead of taking up 7.

    please post bugs in here

    edit: you have to paste the full output.

    <+Mekkah> Skarmory - #227 (Impish)
    <+Mekkah> HP: 17
    <+Mekkah> Att: 30
    <+Mekkah> Def: 16
    <+Mekkah> SpA: 8
    <+Mekkah> SpD: Invalid
    <+Mekkah> Speed: 28

    ->

    <+Mekkah> Impish #227 Skarmory: 17 / 30 / 16 / 8 / Invalid / 28
  2. Steelicks

    Steelicks Come here and Battle me!
    is a Smogon IRC AOp Alumnusis a Super Moderator Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Dec 19, 2004
    Messages:
    3,765
    excellent script, it's most helpful! good work big chaos
  3. Mekkah

    Mekkah
    is a Super Moderatoris a Tutor Alumnusis a Site Staff Alumnusis a Smogon IRC SOp Alumnusis a CAP Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis an Administrator Alumnus
    Super Moderator

    Joined:
    Feb 8, 2005
    Messages:
    14,083
    Cool script, that'll give Misty's nooby mIRC stats more meaning.
  4. noobster

    noobster space cowboy
    is a Site Staff Alumnusis a Super Moderator Alumnusis a Researcher Alumnusis a Contributor Alumnuswon the 2nd Official Smogon Tournament

    Joined:
    Apr 1, 2005
    Messages:
    2,591
    looks great! i'll make sure to use it when i get dp soon
  5. Rodan-

    Rodan-

    Joined:
    Jun 19, 2007
    Messages:
    91
    How do you use mIRC for the scripts and stuff?
  6. Shiv

    Shiv mostly harmless
    is a Site Staff Alumnusis a Smogon IRC AOp Alumnusis a Forum Moderator Alumnusis a Battle Server Moderator Alumnusis a Past WCoP Winner

    Joined:
    Apr 7, 2005
    Messages:
    5,874
    Alt+R then paste this in the textbox. also, good script, we'll see lesser of those pokemon now!
  7. Rodan-

    Rodan-

    Joined:
    Jun 19, 2007
    Messages:
    91
    And then what?
  8. Misty

    Misty oh
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Researcher Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Mar 8, 2005
    Messages:
    7,152
    Then it immediately starts working.
  9. Rodan-

    Rodan-

    Joined:
    Jun 19, 2007
    Messages:
    91
    Then apparently I'm doing something wrong :/
  10. Misty

    Misty oh
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Researcher Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Mar 8, 2005
    Messages:
    7,152
    If you get on Smogon IRC (#smogon on irc.dejatoons.net), I can look into it and see what the problem is (I'd rather not clog up this topic.)
  11. noobster

    noobster space cowboy
    is a Site Staff Alumnusis a Super Moderator Alumnusis a Researcher Alumnusis a Contributor Alumnuswon the 2nd Official Smogon Tournament

    Joined:
    Apr 1, 2005
    Messages:
    2,591
    you may have to type /remote on
  12. Misty

    Misty oh
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Researcher Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Mar 8, 2005
    Messages:
    7,152
    I've discovered that the use of characteristics or hidden power will cause the output to have commas, which breaks the script.
  13. Mercenary Raven

    Mercenary Raven

    Joined:
    May 23, 2007
    Messages:
    37
    No, I did D: I informed you of it, at least T_T

    Regardless, this is a pretty nice script you guys have come up with. And, it prevents the annoying flood we cause when we try to load this ^_^

    ... a question, is there any way to use a similar script - or this same script - on KVIRC? I want to give it to my friend, but he's stubborn as fuck and won't use mIRC :s
  14. chaos

    chaos
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Smogon IRC SOPis a Contributor to Smogonis an Administratoris a Tournament Director Alumnusis a Researcher Alumnus
    Owner

    Joined:
    Dec 18, 2004
    Messages:
    10,123
    ive never used metalkids program in my life. youll have to give me sample output to fix it
  15. Misty

    Misty oh
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Researcher Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Mar 8, 2005
    Messages:
    7,152
    Sneasel - #215 (Adamant)
    HP: 4, 9, 14, 19, 24, 29
    Att: 10 - 29
    Def: 0 - 29
    SpA: Invalid
    SpD: 0 - 29
    Speed: 0 - 29
  16. MetalKid

    MetalKid

    Joined:
    Aug 5, 2005
    Messages:
    246
    lol... You could have just asked me to have a one line output, as well...

Users Viewing Thread (Users: 0, Guests: 0)