Top

Comments

  (65)  RSS
vaseline28's
a careful warchild
Comments: 8
 
mIRC Snippet:  Highlight Script (now with ignore list)
Posted on Jul 3, 2008 4:07 am
you might want to incorporate it so it works when people say your nick with colour

on *:text:*nick*:*: {

replace that with

on $*:text:$(/ $+ $me $+ /iS):#: {
BlueThen
Comments: 232
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 1:27 pm
Ok. :P
vaseline28
Comments: 105
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 1:23 pm
Edited that out BlueThen, now explains how PROP must be specified, thanks!
BlueThen
Comments: 232
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 1:22 pm
Quote:
$anytok(text,text to search,N) <-- Searches all of the unspecified amount of text in 'text' for at least 1 match in 'text to search' with an ascii character where N is


Edit: Oh. :(
vaseline28
Comments: 105
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 1:22 pm
Absolutely nothing, I don't see the need to add something, unless you want by default, to get a certain prop return.

I would easily edit that in if someone wanted it.
Lindrian
Comments: 693
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 1:11 pm
What happends if $prop == $null?
jonesy44
Comments: 614
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 10:44 am
looks usefull vaseline! I may use this sometimes soon :P
vaseline28
Comments: 105
 
mIRC Snippet:  $anytok()
Posted on Jul 1, 2008 10:22 am
Edited again: Now actually works!
vaseline28
Comments: 105
 
mIRC Snippet:  Rock Paper Scissors game
Posted on Jun 30, 2008 11:32 am
-s echoes it back to status window, e.g.:

%PlayerChoice set to Rock
RagBot
Comments: 34
 
mIRC Snippet:  Converter Dialog (TempLengthVolAreaWeight)
Posted on Jun 27, 2008 9:05 am
This dialog is great becuase i'm the only Canadian on an IRC channel and the others use different measurements. This will help me alot with converting. 10/10
vaseline28
Comments: 105
 
mIRC Snippet:  Dice Rolling Script
Posted on Jun 25, 2008 12:48 am
I like leaving the -s in when I'm working on my scripts for bug-testing, seems that i haven't removed them.

Edit: Changed now.
vaseline28
Comments: 105
 
mIRC Snippet:  $anytok()
Posted on Jun 25, 2008 12:47 am
Thanks, not making much difference though, and the comma in there is good for me if I edit it, easier to see!

Edited: Includes the ability to work for all Ascii characters, not just 32.
Typo
Comments: 48
 
mIRC Snippet:  Dice Rolling Script
Posted on Jun 24, 2008 11:35 pm
He is using var -s to specifically show the variables result when set so instead of using .var -s %var to quiet it the better suggestion would be to lose the -s all together.
Nomader
Comments: 4
 
mIRC Snippet:  Dice Rolling Script
Posted on Jun 24, 2008 11:15 pm
nice... might I suggest putting a . in front of your vars to cut out the status window spam.
Typo
Comments: 48
 
mIRC Snippet:  $anytok()
Posted on Jun 24, 2008 11:02 pm
I cant imagine at this moment what I would use this for but it looks good.

btw your
$iif(v1 -- v2,T,)
doesnt require the trailing , when not assigning F like you did, i.e.
$iif(v1 -- v2,T)
would be the same, atleast in my experience.

score = 7/10
T012m3n7oR
Comments: 22
 
mIRC Snippet:  Rock Paper Scissors game
Posted on Jun 24, 2008 3:20 pm
what does the -s do? i've never seen one in a script...
F*U*R*B*Y*
Comments: 404
 
mIRC Snippet:  Rock Paper Scissors game
Posted on Jun 23, 2008 10:47 pm
Code:

  var -s %PlayerChoice $2 | /var -s %PlayerChoiceNum $replace(%PlayerChoice,Paper,2,Rock,1,Scissors,0) | /var -s %ScriptChoiceNum $rand(0,2) | /var -s %ScriptChoice $replace(%ScriptChoiceNum,2,Paper,1,Rock,0,Scissors)


can't that be changed to

Code:

  var -s %PlayerChoice $2, -s %PlayerChoiceNum $replace(%PlayerChoice,Paper,2,Rock,1,Scissors,0), -s %ScriptChoiceNum $rand(0,2), -s %ScriptChoice $replace(%ScriptChoiceNum,2,Paper,1,Rock,0,Scissors)
T012m3n7oR
Comments: 22
 
mIRC Snippet:  Rock Paper Scissors game
Posted on Jun 23, 2008 10:40 pm
8/10 good script i had to change it some so its easier to use.

Code:
on *:text:!rps*:#: {
  if ($2 == p) { var %PlayerChoice Paper | goto rps }
  if ($2 == r) { var %PlayerChoice Rock | goto rps }
  if ($2 == s) { var %PlayerChoice Scissors | goto rps }
  if ($2 == paper) { var %PlayerChoice $2 | goto rps }
  if ($2 == rock) { var %PlayerChoice $2 | goto rps }
  if ($2 == scissors) { var %PlayerChoice $2 | goto rps }
  else { msg $chan [4 $nick ] You've got to choose Rock, Paper or Scissors! | halt }
  :rps
  var %ScriptChoiceNum $rand(0,2)
  var %ScriptChoice $replace(%ScriptChoiceNum,2,Paper,1,Rock,0,Scissors)
  if (%PlayerChoice == %ScriptChoice) { msg $chan [4 $nick ] <Your Choice:4 $replace($($upper($left(%PlayerChoice,1)) $+ $right(%PlayerChoice,-1)),$chr(32),$chr(32)) > <My Choice:4 %ScriptChoice > It's a draw! | halt }
  var %PlayerChoiceNum $replace(%PlayerChoice,Paper,2,Rock,1,Scissors,0)
  if (($calc(%ScriptChoiceNum - %PlayerChoiceNum) == 1) || ($calc(%ScriptChoiceNum - %PlayerChoiceNum) == -2)) { var %winner $me }
  else { var %winner $nick }
  msg $chan [4 $nick ] <Your Choice:4 $replace($($upper($left(%PlayerChoice,1)) $+ $right(%PlayerChoice,-1)),$chr(32),$chr(32)) > <My Choice:4 %ScriptChoice > [4 %Winner ] has won!
}

---
lol ragbot you gave him a 4/10 if you voted if you didn't, well then sorry for the odd accusation.
---
all those '4's in my script are sopose to have the color box.. it isn't showing up in code... i wonder why?
Vlada_bgd
Comments: 7
 
mIRC Snippet:  Currency Converter Dialog
Posted on Jun 23, 2008 3:31 am
RSD a.k.a. Serbian Dinar :)
Atm 1€=78.2RSD
Xlbrag
Comments: 4
 
mIRC Snippet:  Highlight Script (now with ignore list)
Posted on Jun 21, 2008 3:43 pm
Vas, the changes worked perfectly!!
now it fits my needs, thanks a TON!
Xlbrag
btw, totally worth the 8!
1 2 3 4 Next
Bottom