mIRC Home    About    Download    Register    News    Help

Print Thread
#122938 17/06/05 04:20 PM
Joined: Jun 2004
Posts: 33
X
Xidus Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jun 2004
Posts: 33
im workign on some scripts for my bot that i use on my server, im trying to make him say raw commands using this on 10:text:!rawcommand*:*:{ // $+ $2- }
yet this happens when i use it
<Xidus> !rawcommand $time
<Xserv> $time
anyideas?

#122939 17/06/05 04:27 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Use $eval($2-,2) which can be shortened to $($2-,2) in place of $2-

Your paste suggests the code uses /msg and not just // $+ $2- (which would execute $2- as a command)

#122940 17/06/05 04:33 PM
Joined: Jun 2004
Posts: 33
X
Xidus Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jun 2004
Posts: 33
Just out of insterest if i wanted to do this
Code:
 on 10:text:!rawcommand*:*:{ //msg $chan ($2-,2) } 
it wont work :P but how to make it work XD ?

#122941 17/06/05 04:38 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on 10:text:!rawcommand*:*:{ msg $chan [color:red]$[/color]($2-,2) } 


New username: hixxy
#122942 17/06/05 04:43 PM
Joined: Jun 2004
Posts: 33
X
Xidus Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jun 2004
Posts: 33
yay thanks laugh


Link Copied to Clipboard