mIRC Home    About    Download    Register    News    Help

Print Thread
#238565 09/08/12 09:13 AM
Joined: Jul 2012
Posts: 9
P
puxekas Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jul 2012
Posts: 9
ok so there it is

on *:TEXT:!choose*:#veildice {
if (!$2) { notice $nick Invalid format. Use: !choose 1/2/3 | halt }
set %choose %2
msg $chan player chose $2 }

if player types !choose 4 massage comes player chose 4
i wan to let him only choose 1 2 or 3
like if he types !choose 4 nothing happens
but if hy types !choose 1 2 or 3
massage comes player chose 1/2/3
please help me smirk

puxekas #238566 09/08/12 09:33 AM
Joined: Jul 2012
Posts: 9
P
puxekas Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jul 2012
Posts: 9
solved

puxekas #238568 09/08/12 10:09 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It's always good to show a solution in case anyone else has a similar question. Here's one solution:

Code:
on *:TEXT:!choose*:#veildice {
  if ($2 !isnum 1-3) { notice $nick Invalid format. Use: !choose 1/2/3 | halt }
  msg $chan player chose $2
}


Note that you don't need to set any variables unless you're using the information somewhere else.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard