mIRC Home    About    Download    Register    News    Help

Print Thread
#92155 29/07/04 07:12 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 100:TEXT:.ai on:#: { enable #AIBot | msg # AI Controls Enabled. }
on 100:TEXT:.ai off:#: { disable #AIBot | msg # AI Controls Disabled. }
#AIBot on
;Other lines of script that were checked, and work fine, without an error go here..
#AIBot End

#AIBot is the only group in the whole mirc folder, and it was checked on and off, and even off it allowed those said commands to work.

#92156 29/07/04 08:27 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I think you might try it like this
Code:
  
on 100:TEXT:.ai on:#: enable #AIBot | msg $chan AI Controls Enabled. 
on 100:TEXT:.ai off:#: disable #AIBot | msg $chan AI Controls Disabled. 
#AIBot on
;Other lines of script that were checked, and work fine, without an error go here..
#AIBot End

#92157 29/07/04 11:15 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
The { and } 's wont make a difference.

Eamonn.

#92158 29/07/04 11:19 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788

on 100:TEXT:.ai on:#: { enable #AIBot | msg # AI Controls Enabled. }
on 100:TEXT:.ai off:#: { disable #AIBot | msg # AI Controls Disabled. }


The above looks fine, however are they actually being triggered to start off with, is the channel being msg'd with 'Ai Controls Enabled/Disabled' you should also see a enable/disabled group message on your screen - if not thats a problem with your 100 userlevel..

If it is, then what commands/events are in the #AIBot group, there should only be ON Events, no aliases and such.

Failing the above, paste some sample contents of the group.

Eamonn.


#92159 30/07/04 07:35 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
liek is aid, everything is fine, i'ts jsut not disabling it, and i will not paste the code i want, it doesnt feeel right to me, its the same as telling some homeless guy, "hey come on in, stay awhile"

#92160 30/07/04 08:53 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Your "homeless guy speech" didnt quite make sense, but of course its upto you whether to paste your code or not, but since you say its all working there isnt any need.

The ON TEXT's above should work.. however try as an alternative:

on 100:TEXT:.ai*:#: {
if ($2 == on) { enable #AIBot | msg # AI Controls Enabled. }
elseif ($2 == off) { disable #AIBot | msg # AI Controls Disabled. }
}


Eamonn.


Link Copied to Clipboard