mIRC Home    About    Download    Register    News    Help

Print Thread
#127185 10/08/05 05:28 AM
Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
I dont know how to do so the bot uses /me... can someone help me?

#127186 10/08/05 05:44 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/describe <target> <Message>.
/describe $chan is god.

All the best.

-Andy

#127187 10/08/05 05:46 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
I dont know how to do so the bot uses /me... can someone help me?


something like
ON *:TEXT:*:*:{
if ($1 == !beer) { describe gives a nice cold $2 too $nick }
}

??? thats like using the me command


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#127188 10/08/05 05:58 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Couple of minor errors I saw with your code dude.

1. You're not specifying a target in your Status Window you'll get a "gives no such nick/channel" error.

2. I'm sure you meant $1 and not $2.

Code:
On *:TEXT:*:*: {
  tokenize 33 $1
  if ($1 == beer) {
    describe $iif($target !ischan,$nick,$chan) gives a nice cold $1 to $nick
  }
}


When $1 is tokenized it is beer and not !beer. smile

And the $iif() function determines where the message is coming from whether it's Private Message or Channel.

-Andy

#127189 10/08/05 06:07 AM
Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
but if i want to use it in:
on *:text:!straffa &:#: {
{ msg # $nick $read(straffa.txt)
}
}

and i want to do that no one can use !straffa on the nick fobiC.. i just guessed here and its totally wrong i think but..
on *:text:!straffa &:#: {
IF ($nick == fobiC) {return}
{ msg # $nick $read(straffa.txt)
}
}

#127190 10/08/05 06:13 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:text:!straffa:#: {
  if ($nick == fobiC) { halt }
  else { msg # $nick $read(straffa.txt) }
}


-Andy

#127191 10/08/05 06:15 AM
Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
not so far from beeing right.. but how do I do so it writes the text from the document straffa.txt in /me?? =(

#127192 10/08/05 06:21 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I thought we already explained dude, use /describe.

Edited at 00:27 am.

Code:
on *:text:!straffa:#: { 
  if ($nick == fobiC) { halt } 
  else { $iif($exists(straffa.txt),describe $chan $nick $read(straffa.txt)) } 
}


-Andy

#127193 10/08/05 06:22 AM
Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
and that script i got now did that i couldn't use the !straffa script.. it didn't protect me from others using it on me.. sorry that I ask for help that much.. I hope that you understand my english too..

#127194 10/08/05 11:38 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
Couple of minor errors I saw with your code dude.

1. You're not specifying a target in your Status Window you'll get a "gives no such nick/channel" error.

2. I'm sure you meant $1 and not $2.

Code:
On *:TEXT:*:*: {
  tokenize 33 $1
  if ($1 == beer) {
    describe $iif($target !ischan,$nick,$chan) gives a nice cold $1 to $nick
  }
}


When $1 is tokenized it is beer and not !beer. smile

And the $iif() function determines where the message is coming from whether it's Private Message or Channel.

-Andy


actually i dead mean to put $2 example

!beer Heneiken

nick gives a nice cold Heneiken too $nick < $nick of person

the $2 command i was implementing was to give the kind of beer


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#127195 10/08/05 11:55 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:text:!straffa &amp;:#:{
  if ($2 != fobic) { describe $chan $2 $read(straffa.txt,n) }
}


New username: hixxy

Link Copied to Clipboard