mIRC Home    About    Download    Register    News    Help

Print Thread
Help @ Quizbot (Wildcard in string) #49410 14/09/03 01:57 PM
Joined: Feb 2003
Posts: 15
C
CaNNoN Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Feb 2003
Posts: 15
hYa guys .. i have a big problem with my quiz bot ..

Code:
on 1:TEXT:*:%quizchan:{
  /set %quizinput $$1-
  /set %quizcontrole $ctime
  if (%quizactive == 1) && (%quizinput == %quizanswer) {
    /set %quiznick $nick
    /quizansweroke
  }
} 


now my problem ..
if %quizanswer = " lon*wor* "
and %quizinput = " longword " ...

how can i tell mirc that * (star) is a wildcard ?

-------

i use mirc 5.8 - 32bit

------

Thanks in advance

Re: Help @ Quizbot (Wildcard in string) #49411 14/09/03 02:09 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
if (%quizanswer iswm %quizinput)


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: Help @ Quizbot (Wildcard in string) #49412 14/09/03 02:21 PM
Joined: Feb 2003
Posts: 15
C
CaNNoN Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Feb 2003
Posts: 15
ahhhh ... BIG thanks .. i was trying with $gettok etc.