mIRC Home    About    Download    Register    News    Help

Print Thread
Z
Zaephyr
Zaephyr
Z
How can I set up a script to trigger only when my nick, Zaephyr, says the trigger word !dance (I'd also like the !dance to not appear in the room) (I'm the room owner)

I
Inky
Inky
I
Im not entirely sure as I am new to mIRC scripting, but wouldn't the first line be:

Code:
on *:!dance:*:#:{ 


Of course im new, that may not work, but for a bot I'm pretty sure it's:

Code:
on *:TEXT:!dance*:#:{  


I would be geatful to a better scripter to confirm?

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Quote:
Code:
on *:TEXT:!dance*:#:{  


That'll work. You don't need the * though.

Code:
on *:text:!dance:#:{
  if ($nick == Zaephyr) { ... }
}

Z
Zaephyr
Zaephyr
Z
Is there a way to set this so that only users with an access level of 30 or higher are allowed to run this command?

on ^*:TEXT:!bindf &:#Zaephyr's_Tower: {
/describe $chan takes $2 and binds her hands securely.
/haltdef
}

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Change on ^* to on ^30


Link Copied to Clipboard