mIRC Home    About    Download    Register    News    Help

Print Thread
#189823 12/11/07 02:40 AM
Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
hey, i was wondering if there was a way for

1. putting a delay in to where there is like say a 5 secind wait before it sends the message. like
Code:
on 1:TEXT:*command*:#: {
  <delay goes here>
  /msg $chan <message>
}


and

2. on the text comand, if there was a for me to be able to change nick but the command still work when you type the nick in the command.. like
Code:
on 1:TEXT:*hi <nick>*:#: {
  /msg $chan <message>
}


any help would be great.. been racking my brain for a week on this and cant seem to figure it out.

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
1) Look at the /timer command.

2)
Code:
ON *:TEXT:$(* $+ hi $me $+ *):#: {
  msg # Hi $nick! :)
}


This will work when someone says 'Hi <yournickname>'.

This method is documented under /help $(...) from memory.

(Edit: fixed missing } and added the '...' to the help item name)

Last edited by Bekar; 12/11/07 04:48 AM.
Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
how would i get him to do a describe?

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Change "msg" to "describe"
Code:
  describe # <message>

Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
tried that and it didnt work

ok i was trying to something it didnt like.. it does work.. im trying to get it to where like if you say get <someones name> <bot nick> then the bot will respond with some message.

Last edited by Zaine; 12/11/07 04:52 AM.
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Hmmm, something lie this?
Code:
on *:text:$(get & $me):#:{
  if $2 ison # { describe # pokes $2 }
}

Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
no that didnt work


sorry it did work

Last edited by Zaine; 12/11/07 05:21 AM.
Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
so how do i get a delay in between the trigger and the message?

Joined: Oct 2007
Posts: 92
N
Babel fish
Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
use timer
/help /timer

Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
that isnt what i was lookin for.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
then you're going to have to clarify what it is you're wanting, as /timer is the only command in mIRC that matches your request so far. Here's the code that you have said works, but altered to include a 5 second delay

Code:
on *:text:$(get & $me):#:{
  if $2 ison # { .timer 1 5 describe !$chan pokes !$2 }
}

Last edited by RusselB; 13/11/07 04:13 AM.
Joined: Mar 2007
Posts: 13
Z
Zaine Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Mar 2007
Posts: 13
that was what i was looking for.. thanks


Link Copied to Clipboard