mIRC Script Help please

Discussion in 'Computing, Science, and Technology' started by JoeyB, Jul 30, 2009.

  1. JoeyB

    JoeyB Active Member

    Joined:
    Mar 13, 2009
    Messages:
    1,670
    Likes Received:
    12
    Device:
    iPhone 4 (White)
    OK, so I got this Uno script off of a website.(I would say the link but i don't want to get infracted for advertising :/) So, the problem is the command to start a game ( !uno ) it can be started in any channel

    Please Register or Log in to view images

    so I changed that part of the script from:

    Code:
    on $*:text:/^[@!.]uno$/Si:#:{
       if ($hget(#,players)) notice $nick There is already an uno game in progress in # $+ . 
      else {
        if ($hget(#)) hfree #
        hmake #
        hadd # p1 $nick
        hadd # $nick $cards(7)
        hinc # players
        msg # $nick has started 3U04N12O v2.0 by BrAndo. Type !join to join the game.
        notice $nick Type !deal to start the game.
      }
    }
    

    I made it to

    Code:
    on $*:text:/^[@!.]uno$/Si:#:{
      if ($chan == #uno)
      if ($hget(#,players)) notice $nick There is already an uno game in progress in # $+ . 
      else {
        if ($hget(#)) hfree #
        hmake #
        hadd # p1 $nick
        hadd # $nick $cards(7)
        hinc # players
        msg # $nick has started 3U04N12O v2.0 by BrAndo. Type !join to join the game.
        notice $nick Type !deal to start the game.
      }
    }
    
    I edited in if ($chan == #uno) and it didn't work so if you can post the way the script should be that would help alot

    Please Register or Log in to view images

    Please Register or Log in to view images

    Please Register or Log in to view images

    Please Register or Log in to view images

    Please Register or Log in to view images

    Please Register or Log in to view images

    Please Register or Log in to view images

Share This Page