mIRC Home    About    Download    Register    News    Help

Print Thread
#183879 23/08/07 10:57 AM
Joined: Feb 2007
Posts: 91
S
spermis Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2007
Posts: 91
I need a script that if user with level 100 in channel #thatsme types !start or !start 4 it counts +1 for the user and then if someone type !started usernick - it shows how much times user have typed !start or !start4.

oh and it shouldnt work in sentence.. like - <usernick> hello im gonig to type !start
but it should work - <usernick> !start

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On 100:Text:*:#thatsme: {
  if ($1 == !start) || ($1 == !start4) {
    hinc -m start $nick
  }
  if ($1 == !started) && ($hfind(start,$2)) msg $chan $2 has said !start(4) $hget(start,$2) times.
}

Joined: Feb 2007
Posts: 91
S
spermis Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2007
Posts: 91
k it works good.. how to make if user never did write !start it shows - Cant find user or he never typed start

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
On 100:Text:!start*:#thatsme: {
  if ($istok(!start !start4,$1,32)) { hinc -m start $nick }
  elseif ($1 == !started) { msg $chan $$2 $iif($hget(start,$2),has said !start(4) $v1 times.,hasn't said !start(4) yet.) }
}


Link Copied to Clipboard