mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Mar 2003
Posts: 1,271
L
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
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.


Link Copied to Clipboard