mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2006
Posts: 27
Z
Zaephyr Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Aug 2006
Posts: 27
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)

Joined: Jul 2006
Posts: 26
I
Ameglian cow
Offline
Ameglian cow
I
Joined: Jul 2006
Posts: 26
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?


Very new to mIRC, don't know much.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Quote:
Code:
on *:TEXT:!dance*:#:{  


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

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

Joined: Aug 2006
Posts: 27
Z
Zaephyr Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Aug 2006
Posts: 27
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,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Change on ^* to on ^30


Link Copied to Clipboard