Pokemon catch snippet

By Lord-Harlot on Mar 17, 2008

Hi

This is my first snippet. It's simple but does what you need it to.
if it rolls once or twice you escape

[~Lord-Harlot] !pokemon

  • ~bot-of-zana sees a wild Lord-Harlot
  • ~bot-of-zana Throws a Pokeball at the Lord-Harlot
  • ~bot-of-zana sees the ball roll 2 times
    (~bot-of-zana) Lord-Harlot got away

3 times and your caught

[~Lord-Harlot] !pokemon

  • ~bot-of-zana sees a wild Lord-Harlot
  • ~bot-of-zana Throws a Pokeball at the Lord-Harlot
  • ~bot-of-zana sees the ball roll 3 times
    (~bot-of-zana) I got a new Lord-Harlot

Then if your already caught

[~Lord-Harlot] !pokemon
(~bot-of-zana) Oh no, Lord-Harlot is already caught.

Its simple but does what it needs to.

TO USE:
copy and paste this code into remotes.
When someone type "!pokemon" the script is activated.
To recatch a nick go into the variables and delete
"%Lord-Harlot.pokenick" The nick will be what ever the nick you want deleting is.

Hope this explains it.

on *:text:!Pokemon:#: {
  if ((% [ $+ [ $nick ] $+ [ .pokenick ] ] == caught)) {
    .msg $chan Oh no, $nick is already caught.
    .halt
  }
  elseif ((% [ $+ [ $nick ] $+ [ .pokenick ] ] == $null)) {
    set %pokeballroll $rand(1,3)
    if (%pokeballroll == 1) {
      .describe $chan sees a wild $nick | describe $chan Throws a Pokeball at the $nick | describe $chan sees the ball roll %pokeballroll time | .msg $chan $nick got away
    }
    elseif (%pokeballroll == 2) {
      .describe $chan sees a wild $nick | describe $chan Throws a Pokeball at the $nick | describe $chan sees the ball roll %pokeballroll times | .msg $chan $nick got away
    }
    else {
      .describe $chan sees a wild $nick | .describe $chan Throws a Pokeball at the $nick | .describe $chan sees the ball roll %pokeballroll times | .msg $chan I got a new $nick | set % $+ $nick $+ .pokenick caught
    }
  }
}

Comments

Sign in to comment.
Xemnas   -  Mar 21, 2008

LOL.

 Respond  
Lord-Harlot   -  Mar 20, 2008

And I give you my many thank yous for that :)

 Respond  
DarkNES   -  Mar 20, 2008

Heh, if it wasn\'t for me, it never would\'ve worked ;p
btw, DarkNES = Apocalypse :x

 Respond  
criminal   -  Mar 18, 2008

nice and funny :P
but you should edit it... You cant release some :c
thats why :D

 Respond  
Jonesy44   -  Mar 17, 2008

(00:13:40) <~Silent-Walker> gay-boy got away
(00:13:46) <+gay-boy> ohh ur lucky

 Respond  
iwz   -  Mar 17, 2008

(00:12:47) !pokemon
(00:12:47) Silent-Walker sees a wild Piece-of-poop
(00:12:47)
Silent-Walker Throws a Pokeball at the Piece-of-poop
(00:12:47) * Silent-Walker sees the ball roll 3 time\'s
(00:12:47) I got a new Piece-of-poop

rofl

 Respond  
EL   -  Mar 17, 2008

Lol napa\'s a show off:P

 Respond  
Jonesy44   -  Mar 17, 2008

napa will always re-create scripts because everytime he does, he does it awesomly =P

 Respond  
Lord-Harlot   -  Mar 17, 2008

Thanks for your comments everyone. They have all been helpful and better then the first one.
I\'m incorporating a battle scene into this script.(or trying) :)

 Respond  
Anti   -  Mar 17, 2008

Hah! classic napa way to RE-CREATE IT

 Respond  
napa182   -  Mar 17, 2008

the way you have it now can be done like this as well

on *:text:!Pokemon:#: {
  if ($($+(%,$nick,.,pokenick),2) == caught) { msg $chan Oh no, $nick is already caught. }
  else { var %pokeballroll $r(1,3) | describe $chan sees a wild $nick | describe $chan Throws a Pokeball at the $nick | describe $chan sees the ball roll %pokeballroll time $+ $iif(%pokeballroll > 1,\'s) | msg $chan $iif(%pokeballroll != 3,$nick got away,I got a new $nick) | $iif(%pokeballroll == 3,set -u600 $+(%,$nick,.,pokenick) caught) }
}

eh just one of many ways it can be done..

 Respond  
EL   -  Mar 17, 2008

NOTE for dumbish people who wonder why it isn\'t working.
To use just load it into remote and type !pokemon
If this is on your mirc client you cant use it yourself but other people can.

Umm ok how about explaining it like that in the first place instead of assuming people are dumb Lol. and if it doesnt work in th first place it your fault an if they don\'t know how to work it its also your fault if your responsiblity to describe how to use the code you post.Anywho i ll test it later just hought i d throw my 2 cents in about that is all.Altho doesn\'t look to bad.`-.-

 Respond  
Anti   -  Mar 17, 2008

why not add something like catching other people then other then you\'re self? and also if you\'re going to do that make it check if there in the chan :D

 Respond  
napa182   -  Mar 17, 2008

um nice for ur first script but how about making the var unset after 10 min\'s or so . that way you dont have to open up the scripts editer to remove the var. also you should make the random var a local var instead of a global one, and you can make it alot shorter as well..
but nice go at ur first script

 Respond  
Lord-Harlot   -  Mar 17, 2008

So what. It can be changed to what ever you want. Pokemon is just the main thing I made it for.

 Respond  
Jonesy44   -  Mar 17, 2008

Pokemon .. lol

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.