A Part Of My Cookie Script

By DaXoR on Jan 19, 2011

Alright, here's the thing. I'm making a Cookie script (a more advanced one than the ones you generally see) and one of the features is that you can try to steal more cookies than generally given. My scripting is sloppy, but it generally works for me. And yes I know I could have done VAR %steal.all $rand(1,00) but I wanted to set it.

No matter how many times I test it, I always seem to get the Failed message. I've tried it well over 200 times, so I SHOULD have gotten the success one at LEAST once.

This is not yet complete, I just can't continue until I figure this out. Any ideas?

on *:text:!steal all:#: {
  if ($me isop $chan) {
    set %steal.all $rand(1,100)
    if (%steal.all < 21) {
      msg $chan This is a test. This message means he stole all.
    }
    else {
      msg $chan This is also a test. This message means he failed to steal
    }
  }
}

Comments

Sign in to comment.
DaXoR   -  Jan 20, 2011

Oh, my bad.

 Respond  
napa182   -  Jan 19, 2011

The snippet section is to post full working snippets, not to ask for help to fix it.
If you need help to fix it or to get it done an working then you should have posted it in the forum.
@
mIRC Snippet Requests
or @
mIRC Scripting

anyways just as an example.

on @*:text:!steal all:#:msg # This is a test. This message means he $iif($r(1,100) < 21,stole all.,failed to steal.)

<~napa182> !steal all
<~Sick0> This is a test. This message means he stole all.
<~napa182> !steal all
<~Sick0> This is a test. This message means he failed to steal.

 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.