Top

Comments

  (92)  RSS
Monky's
napa182
Comments: 735
 
mIRC Snippet:  Annihalation kick/ban
Posted on Jun 17, 2008 10:44 pm
you can also do that this way as well
Code:
if (($nick(#,$nick,oh)) && $2 != $me) {

and yes i would use ban -k for the kick ban
Code:
ban -k # $2 2 annihilated
linkz
Comments: 2
 
mIRC Snippet:  Annihalation kick/ban
Posted on Jun 17, 2008 9:23 pm
been awhile lol.. that made it work for me btw just had to add another } at the end
mountaindew
Comments: 1,366
 
mIRC Snippet:  Annihalation kick/ban
Posted on Jun 17, 2008 6:15 pm
Code:

if (($nick ishop $chan || $nick isop $chan) && $2 != $me) {

And I'd use /ban -k to combine the ban and the kick together.

Edit: hmm...last seen September 2007
linkz
Comments: 2
 
mIRC Snippet:  Annihalation kick/ban
Posted on Jun 17, 2008 5:01 pm
says this /if: ambiguous format (line 2, remote.ini) =|
criminal
Comments: 127
 
mIRC Snippet:  Poison Game
Posted on Mar 13, 2008 1:45 pm
Very good,
The keys are are 8,0 Gold, 15,0 Silver, 3,0 and 7,0 Bronze. 3,0 Type !pick <Color> key.

You say ' The keys are are ' :P just telling
criminal
Comments: 127
 
mIRC Snippet:  Pickpocket Game
Posted on Mar 12, 2008 12:47 pm
funny game :P
keep it on
~ Criminal
mountaindew
Comments: 1,366
 
mIRC Snippet:  Kombat Game
Posted on Nov 12, 2007 8:30 pm
Code:
on $*:text:!kombatcmds:*:{

why r u doing on $ when u dont do regex?
Code:

        unset %fight
        unset %player1
        unset %player2
        unset %fight2
        unset %p1hp
        unset %p2hp
        unset %stamina1
        unset %stamina2
        unset %turn
        unset %hit1
        unset %hit2

just do
Code:

unset %fight %player1 %player2 %fight2 %p1hp %p2hp %stamina1 %stamina2 %turn %hit1 %hit2

Dramakus
Comments: 3
 
mIRC Snippet:  Kombat Game
Posted on Nov 12, 2007 8:14 pm
Fixed the color examples

Code:

on *:LOAD: {
  /echo Kombat script loaded.
  /echo Colors: 0,1 0=White 1 1=Black 2 2=Dark Blue 3 3=Green 4 4=Red 5 5=Dark Red 6 6=Dark Purple 7 7=Orange 8 8= Yellow 9 9=Bright Green 10 10=Teal 11 11=Light Blue 12 12=Blue 13 13=Purple 14 14=Dark Gray 15 15=Gray
  /set %txt1 $?="What text color # did you want to use?"
  /set %bg1 $?="What Background color # did you want to use?"
  /set %KCol  $+ %txt1 $+ , $+ %bg1
}
Dramakus
Comments: 3
 
mIRC Snippet:  Kombat Game
Posted on Nov 12, 2007 8:06 pm
Heres a rough fix of the code posted above.
1. I enabled the endurance.
2. Added a !rest command to be able to recover endurance at the cost of a turn
3. Adjusted some of the damage and the endurance costs for the moves.
4. Added a color choice.
5. Added an on PART/QUIT check.


Code:

on *:LOAD: {
  /echo Kombat script loaded.
  /echo Colors: 0,1 $+ 0=White 1 $+ 1=Black 2 $+ 2=Dark Blue 3 $+ 3=Green 4 $+ 4=Red 5 $+ 5=Dark Red 6 $+ 6=Dark Purple 7 $+ 7=Orange 8 $+ 8= Yellow 9 $+ 9=Bright Green 10 $+ 10=Teal 11 $+ 11=Light Blue 12 $+ 12=Blue 13 $+ 13=Purple 14 $+ 14=Dark Gray 15 $+ 15=Gray
  /set %txt1 $?="What text color # did you want to use?"
  /set %bg1 $?="What Background color # did you want to use?"
  /set %KCol  $+ %txt1 $+ , $+ %bg1
}

on $*:text:!kombatcmds:*:{
  notice $nick %KCol $+ ~ Attacks ~
  notice $nick !upper cut
  notice $nick !dbl punch
  notice $nick !jab
  notice $nick !skick
  notice $nick %KCol $+ ~ Others ~
  notice $nick !rest
  notice $nick !flee
  notice $nick !kombat
  notice $nick !stopkmb
}

on *:text:!kombat*:#: {
  if (%fight2 == active) {
    msg $chan %KCola $+ Match is already underway! Wait your turn!
  }
  if (%fight == active) {
    set %player2 $nick
    if (%player2 = %player1) { halt }
    msg $chan %KCol $+ the match is set! %player1 vs %player2
    notice %player1 Type "!kombatcmds" for the commands list.
    notice %player2 Type "!kombatcmds" for the commands list.
    set %fight2 active
    set %p1hp 99
    set %p2hp 99
    set %stamina1 0
    set %stamina2 0
    set %turn 1

  }
  else {
    set %fight active
    set %player1 $nick
    msg $chan %KCol $+ $nick has declared a challenge type !kombat to fight them
  }
}

on *:text:!dbl punch*:#: {
  if (%turn == 1) {
    if ($nick == %player1) {
      if (%stamina2 < 10) {
        set %hit1 $rand(0,15)
        set %hit2 $rand(0,15)
        inc %stamina1 2
        msg $chan %KCol $+ %player1 has hit %hit1 and %hit2
        dec %p2hp %hit1
        dec %p2hp %hit2
        msg $chan %KCol $+ %player2 has %p2hp hp left
        notice $nick %KCol $+ %player1 you have $calc(10 - %stamina1) stamina left.
        set %turn 2
      }
      if (%p2hp <= 0) {
        msg $chan %KCol $+ %player1 has koed %player2
        unset %fight
        unset %player1
        unset %player2
        unset %fight2
        unset %p1hp
        unset %p2hp
        unset %stamina1
        unset %stamina2
        unset %turn
        unset %hit1
        unset %hit2
      }
      else {
      }
    }
    else if (%stamina1 >= 10) {
      notice %player1 you are out of stamina
    }
  }
  else {
    if (%turn == 2) {
      if ($nick == %player2) {
        if (%stamina2 < 10) {
          set %hit1 $rand(0,15)
          set %hit2 $rand(0,15)
          inc %stamina2 2
          msg $chan %KCol $+ %player2 has hit %hit1 and %hit2
          dec %p1hp %hit1
          dec %p1hp %hit2
          msg $chan %KCol $+ %player1 has %p1hp hp left
          notice $nick %KCol $+ %player2 you have $calc(10 - %stamina2) stamina left.
          set %turn 1
          if (%p1hp <= 0) {
            msg $chan %KCol $+ %player2 has koed %player1
            unset %fight
            unset %player1
            unset %player2
            unset %fight2
            unset %p1hp
            unset %p2hp
            unset %stamina1
            unset %stamina2
            unset %turn
            unset %hit1
            unset %hit2
          }
          else {
          }
        }
        else if (%stamina2 >= 10) {
          notice %player2 you are out of stamina
        }
      }
    }
  }
}

on *:text:!skick*:#: {
  if (%turn == 1) {
    if ($nick == %player1) {
      if (%stamina1 < 10) {
        set %hit1 $rand(1,20)
        set %hit2 $rand(1,20)
        inc %stamina1 4
        msg $chan %KCol $+ %player1 has hit %hit1 and %hit2
        dec %p2hp %hit1
        dec %p2hp %hit2
        msg $chan %KCol $+ %player2 has %p2hp hp left
        notice $nick %KCol $+ %player1 you have $calc(10 - %stamina1) stamina left.
        set %turn 2
        if (%p2hp <= 0) {
          msg $chan %KCol $+ %player1 has koed %player2
          unset %fight
          unset %player1
          unset %player2
          unset %fight2
          unset %p1hp
          unset %p2hp
          unset %stamina1
          unset %stamina2
          unset %turn
          unset %hit1
          unset %hit2
        }
        else {
        }
      }
      else if (%stamina1 >= 10) {
        notice %player1 %KCol $+ you are out of stamina
      }
    }
  }
  else {
    if (%turn == 2) {
      if ($nick == %player2) {
        if (%stamina2 < 10) {
          set %hit1 $rand(1,20)
          set %hit2 $rand(1,20)
          inc %stamina2 4
          msg $chan %KCol $+ %player2 has hit %hit1 and %hit2
          dec %p1hp %hit1
          dec %p1hp %hit2
          msg $chan %KCol $+ %player1 has %p1hp hp left
          notice $nick %KCol $+ %player2 you have $calc(10 - %stamina2) stamina left.
          set %turn 1
          if (%p1hp <= 0) {
            msg $chan %KCol $+ %player2 has koed %player1
            unset %fight
            unset %player1
            unset %player2
            unset %fight2
            unset %p1hp
            unset %p2hp
            unset %stamina1
            unset %stamina2
            unset %turn
            unset %hit1
            unset %hit2
          }
          else {
          }
        }
        else if (%stamina2 >= 10) {
          notice %player2 %KCol $+ you are out of stamina
        }
      }
    }
  }
}

on *:text:!jab*:#: {
  if (%turn == 1) {
    if ($nick == %player1) {
      set %turn 2
      set %hit $rand(0,10)
      msg $chan %KCol $+ %player1 has hit a %hit
      dec %p2hp %hit
      msg $chan %KCol $+ %player2 has %p2hp hp left
      notice $nick %KCol $+ %player1 you have $calc(10 - %stamina1) stamina left.
      if (%p2hp <= 0) {
        msg $chan %KCol $+ %player1 has koed %player2
        unset %fight
        unset %player1
        unset %player2
        unset %fight2
        unset %p1hp
        unset %p2hp
        unset %stamina1
        unset %stamina2
        unset %turn
        unset %hit1
        unset %hit2
      }
      else {
      }
    }
  }
  else if (%turn == 2) {
    if ($nick == %player2) {
      set %turn 1
      set %hit $rand(0,10)
      msg $chan %KCol $+ %player2 has hit a %hit
      dec %p1hp %hit
      msg $chan %KCol $+ %player1 has %p1hp hp left
      notice $nick %KCol $+ %player2 you have $calc(10 - %stamina2) stamina left.
      if (%p1hp <= 0) {
        msg $chan %KCol $+ %player2 has koed %player1
        unset %fight
        unset %player1
        unset %player2
        unset %fight2
        unset %p1hp
        unset %p2hp
        unset %stamina1
        unset %stamina2
        unset %turn
        unset %hit1
        unset %hit2
      }
      else {
      }
    }
  }
}

on *:text:!upper cut*:#: {
  if (%turn == 1) {
    if ($nick == %player1) {
      if (%stamina1 < 10) {
        set %turn 2
        set %hit $rand(10,26)
        inc %stamina1 6
        msg $chan %KCol $+ %player1 has hit a %hit
        dec %p2hp %hit
        msg $chan %KCol $+ %player2 has %p2hp hp left
        notice $nick %KCol $+ %player1 you have $calc(10 - %stamina1) stamina left.
        if (%p2hp <= 0) {
          msg $chan %KCol $+ %player1 has koed %player2
          unset %fight
          unset %player1
          unset %player2
          unset %fight2
          unset %p1hp
          unset %p2hp
          unset %stamina1
          unset %stamina2
          unset %turn
          unset %hit1
          unset %hit2
        }
      }
      else if (%stamina1 >= 10) {
        notice %player1 %KCol $+ you are out of stamina
      }
    }
  }
  if (%turn == 2) {
    if ($nick == %player2) {
      if (%stamina2 < 10) {
        set %turn 1
        set %hit $rand(10,26)
        inc %stamina2 6
        msg $chan %KCol $+ %player2 has hit a %hit
        dec %p1hp %hit
        msg $chan %KCol $+ %player1 has %p1hp hp left
        notice $nick %KCol $+ %player2 you have $calc(10 - %stamina2) stamina left.
        if (%p1hp <= 0) {
          msg $chan %KCol $+ %player2 has koed %player1
          unset %fight
          unset %player1
          unset %player2
          unset %fight2
          unset %p1hp
          unset %p2hp
          unset %stamina1
          unset %stamina2
          unset %turn
          unset %hit1
          unset %hit2
        }
      }
      else if (%stamina2 >= 10) {
        notice %player2 %KCol $+ you are out of stamina
      }
    }
  }
}

on *:text:!rest*:#: {
  if (%turn == 1) {
    if ($nick == %player1) {
      dec %stamina1 4
      set %turn 2
      msg $chan %KCol $+ %player1 rested.
      notice %player1 %KCol $+ %player1 you have $calc(10 - %stamina1) stamina left.
    }
  }
  if (%turn == 2) {
    if ($nick == %player2) {
      dec %stamina2 4
      set %turn 1
      msg $chan %KCol $+ %player2 rested.
      notice %player2 %KCol $+ %player2 you have $calc(10 - %stamina2) stamina left.
    }
  }
}

on *:text:!flee*:#: {
  if (%turn == 1) {
    if ($nick == %player1) {
      msg $chan msg $chan %KCol $+ %player2 has won the match by default
      unset %fight
      unset %player1
      unset %player2
      unset %fight2
      unset %p1hp
      unset %p2hp
      unset %stamina1
      unset %stamina2
      unset %turn
      unset %hit1
      unset %hit2
    }
    else{
  }
  if (%turn == 2) {
    if ($nick == %player2) {
      msg $chan %KCol $+ %player1 has won the match by default
      unset %fight
      unset %player1
      unset %player2
      unset %fight2
      unset %p1hp
      unset %p2hp
      unset %stamina1
      unset %stamina2
      unset %turn
      unset %hit1
      unset %hit2
    }
  }
}
on *:text:!stopkmb*:#: {
  if ($nick isop $chan) {
    msg $chan %KCol $+ KOMBAT STOPPED
    unset %fight
    unset %player1
    unset %player2
    unset %fight2
    unset %p1hp
    unset %p2hp
    unset %stamina1
    unset %stamina2
    unset %turn
    unset %hit1
    unset %hit2
  }
}

on *:PART:#: {
    if ($nick == %player1) || ($nick == %player2) {
      msg $chan %KCol $+ $nick has forfeited the match by leaving the channel.
      unset %fight
      unset %player1
      unset %player2
      unset %fight2
      unset %p1hp
      unset %p2hp
      unset %stamina1
      unset %stamina2
      unset %turn
      unset %hit1
      unset %hit2
    }
}

on *:QUIT: {
    if ($nick == %player1) || ($nick == %player2) {
      msg $chan %KCol $+ $nick has forfeited the match by quiting IRC.
      unset %fight
      unset %player1
      unset %player2
      unset %fight2
      unset %p1hp
      unset %p2hp
      unset %stamina1
      unset %stamina2
      unset %turn
      unset %hit1
      unset %hit2
    }
}
Anti
Comments: 288
 
mIRC Snippet:  Kombat Game
Posted on Nov 12, 2007 10:40 am
Colors are much of a problem in scripting i think monky is just learning to script dont want to get it to hard for him experience level system i guess if you want to help him through it go ahead.

But serously i hit myself playing against reddawg i think it's not something i would use personaly
Dramakus
Comments: 3
 
mIRC Snippet:  Kombat Game
Posted on Nov 11, 2007 8:04 pm
The color scheme on this is...
The game was ok but the script posted here has many errors that require the person who wants it to correct them.
1: The endurance if your not going to have it enabled whats the point in having more than 1 move...
2: some of the player variables were backwards on the commands.
3: you could have easily implemented a experience/level system.
4: the colors are just awful.
napa182
Comments: 735
 
mIRC Snippet:  Poison Game
Posted on Sep 4, 2007 8:09 pm
to me this looks ripped from http://www.hawkee.com/snippet/2343/
and changed around.. does anyone else see what im talking about
Riht_2
Comments: 43
 
mIRC Snippet:  Pickpocket Game
Posted on Aug 24, 2007 12:14 pm
>> And maybe you could make a .ini file for it so you can find different stuff than what you already have?
Riht_2
Comments: 43
 
mIRC Snippet:  Pickpocket Game
Posted on Aug 24, 2007 12:13 pm
Hmm... have you tried..:
on *:text:!pickpocket*:#:{
if ($2 ison $Chan) {
msg $chan 12,14 $me walks up to $2 silently...
.timer 1 2 msg $chan 0,2 $me carefully reaches inside $2 $+ 's pocket and finds...
var %item = $rand(1,12)
if (%item == 1) .timer 1 2 msg $chan 2,0 A cell phone!
if (%item == 2) .timer 1 2 msg $chan 3,9 money!
if (%item == 3) .timer 1 2 msg $chan 5,0 A wallet! w00t!
if (%item == 4) .timer 1 2 msg $chan 0,1 A receipt... -.-
if (%item == 5) .timer 1 2 msg $chan 14,1 An ipod!!!
if (%item == 6) .timer 1 2 msg $chan 7,0 Cigarettes... blah...
if (%item == 7) .timer 1 2 msg $chan 4,0 A lighter... wonder what that's for...
if (%item == 8) .timer 1 2 msg $chan 1,4 OMG! A condom!
if (%item == 9) .timer 1 2 msg $chan 15,0 A quarter ~ wooptido -.-
if (%item == 10) .timer 1 2 msg $chan 13,0 Yummy! Bubble gum!
if (%item == 11) .timer 1 2 msg $chan 12,0 Nuthin...
if (%item == 12) .timer 1 2 msg $chan 12,14 Lint???
}
else {
notice $Nick That person is not in here!
}
}
Monky
Comments: 52
 
Image:  Eagle Eye
Posted on Aug 17, 2007 10:55 pm
ty
Monky
Comments: 52
 
mIRC Snippet:  Prank
Posted on Aug 17, 2007 10:29 pm
Callison1 ~ i said probably only the new people would fall 4 it, and it a prank(joke)so if sum1 wants to talk bad about it ill tell em 2 get a sense of humor

ghost ~ i could but i just made while i was borred so i didnt think about it

anti ~ lol
napa182
Comments: 735
 
mIRC Snippet:  Prank
Posted on Aug 17, 2007 6:25 pm
well you can use alt+F4 too ctrl+F4 x's out the room
Anti
Comments: 288
 
mIRC Snippet:  Prank
Posted on Aug 17, 2007 6:02 pm
./Quit won i guess.. roflmao that took me an hour to figure out.
Firedog150
Comments: 11
 
Image:  Eagle Eye
Posted on Aug 17, 2007 5:18 pm
Neat picture
Trav
Comments: 16
 
mIRC Snippet:  Sword in the stone
Posted on Aug 17, 2007 9:31 am
First attempt I got " [Trav] Yanks the sword out easily, and falls backwards stabbing themself." ;p nice script man :D
1 2 3 4 5 Next
Bottom