|
Joined: Sep 2003
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2003
Posts: 31 |
At the moment i got this part of scripting for when im not around and someone calls my nick. on *:text:$($+(*,$me,*)):#:{ if $chan != $active { echo 14 -a 4[Nick Call]7 $nick in7 $chan said: $1- } } But i was wondering if i could implement some sort of code that for when im CS'ing or playing some other game a.k.a when i can't see the mIRC windows my MSagent speaks the line wich contains my nick. Codes for loading the MSagent etc are below: /gload Mike Mike.acs
//gtalk Nick Call: $nick in $chan said: $1-
Don't know if there is a way to use them both, cause when im not gaming for example i don't want the agent to continuesly speak the text. Any of you bright scripters that can give me a helping hand with this ? Thankz in Advance Btw my nick is ]x[, so thats why the code my look a bit strange
Active mIRC user since 1998
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:TEXT:$(* $+ $me $+ *):*: {
if ($chan != $active) {
echo 14 -a 4[Nick Call]7 $nick in7 $chan said: $1-
}
if (!$appactive) {
gload Mike Mike.acs
gtalk Nick Call: $nick in $chan said: $1-
}
}
|
|
|
|
Joined: Sep 2003
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2003
Posts: 31 |
So the !$appactive variable is not $true when im playing other games right or am i mistaken here, and thus is loads the agent ?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
You're correct. Only it's an identifier not a variable. When your name is being called on a channel where mIRC is not $appactive (the active application). It will load the agent for you etc.
Hope this helps.
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
Can you also make it echo this way when a highlight has been done? Not only when anybody sais your nick but also when a word said is in your highlight list. Is that possible?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
I'm not too hot on the Highlight Feature, truth be told I've never actually used it. Is this what you mean
on 1:TEXT:$(* $+ $highlight($1-) $+ *):#: {
commands..
}
|
|
|
|
Joined: Sep 2003
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2003
Posts: 31 |
Hmmmz the following problems have occured * /gload: 'Mike' (Mike.acs) already loaded (line 64, script.ini) Shows up in my status window. When people sent a pm ( if i turn the agent on with private events then it does work just to make that clear ) and im active in that pm, i suddenly get spammed with [13:30] [Nick Call] DAFsam in said: ]x[ test message
And when they say the message in the channel then it still doesnt work Any ideas ?
Active mIRC user since 1998
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:TEXT:$(* $+ $me $+ *):#: {
|
|
|
|
Joined: Sep 2003
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2003
Posts: 31 |
Edit: The highlight part works fine, but the char isnt speaking to me
Last edited by DiMTRX; 12/01/05 01:00 PM.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:TEXT:$(* $+ $me $+ *):*: {
if ($window($active) == $target) {
return
}
if (!$appactive) {
if ($agent(Mike)) {
gtalk Nick Call: $nick in $chan said: $1-
}
else {
gload Mike Mike.acs
gtalk Nick Call: $nick in $chan said: $1-
}
}
else {
echo 14 -a 4[Nick Call]7 $nick in7 $chan said: $1-
}
}
Last edited by SladeKraven; 12/01/05 01:02 PM.
|
|
|
|
Joined: Sep 2003
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2003
Posts: 31 |
Still nothing :'( btw i changed gtalk Nick Call: $nick in $chan said: $1- to gtalk Mike Nick Call: $nick in $chan said: $1- so thats not the problem aswel
|
|
|
|
Joined: Sep 2003
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2003
Posts: 31 |
Got it working
Active mIRC user since 1998
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Good. My apologies.
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
------------------------------------------------ ;on *:text:$(* $+ $highlight($1-) $+ *):*:{ ; if ($chan !== $active) { ; echo -a Highlight: $nick in $chan said: $1- ; } ; if (!$appactive) { ; gload -h voice rover.acs ; gtalk voice Highlight: $nick in $chan said: $1- ; gunload voice ; } ;} ------------------------------------------------ This is my code (don't mind it is commentedt out, that's because I've a problem with the $highlight. The problem is: it doesn't just spam tha lines I'm highlighted in, it spams everything said in a channel to the active channel :s Help!
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Try this on *:text:*:#:{
if $highlight($1-) {
if $chan != $active || $cid != $activecid { echo -bflirt Highlight: $nick in $chan said: $1- }
if !$appactive {
.gload -h voice rover.acs
.gtalk voice Highlight: $nick in $chan said: $1-
}
}
}
on *:agent:if $agentname == voice { .gunload voice }
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
Nice thanx! the echoing part works perfect now, except for the color, but I'll play a while with that.
I still get an error with the reading stuff: - * /gload: error loading 'voice' (rover.acs) (line 15, LethPhaos Script - Current Projects.mrc) - The file rover.acs is in the mirc folder.
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
AFAIK rover.acs must be in <Windir>\msagent\chars Oh and the color Change it to this - echo -bflirt Highlight: $nick in $chan said: $1-
and the color should be the color from highlight settings in options.
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
thanx the .acs file is a copy of the file in the windir directory, it should still be there :s any other possible solutions?
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Damaged or corrupt agent perhaps, Try gload -h voice default
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
indeed, that helped. The agent now pops up, gives the text in a text balloon and disappears. Will it pop up over a running game for example without disturbing it? Can you make the agent litteraly really READ it?
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
>> Will it pop up over a running game for example without disturbing it? I can't tell you, I have no games installed on this machine. Try it and see >>Can you make the agent litteraly really READ it? Read what?
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
read loud, like speaking, is that possible?
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Yes, that's what it does, but if you're using WinXP you have to install SAPI 4 engine, see the note in Step 3 of The use of Agents with mIRC
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
Ok thanx for all the help! I'm going to bed now, school tomorrow
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
NPs
|
|
|
|
Joined: Mar 2004
Posts: 155
Vogon poet
|
Vogon poet
Joined: Mar 2004
Posts: 155 |
I'm trying to inorperate your cade here into what I am currently using but I also use a sound that i want to play first then the agent load and say what was said and then unload. I basically have it working but the sound plays as the agent is speaking. I can make it so the agent speaks first and then the sound plays but i think it would be better if the sound plays first then the agent speak. From the code below is there a way this can be done. I know it can be using a timer but if I can avoid using one it would be better. thanks in advance for any help on this.
on ^:text:*:#:{
if ($R.Set(Nicky,Your.Nick.Win) == On) && ($me isin $1-) {
/window -n @Nick.Messages
/echo @Nick.Messages $ts $c(3) »»» $c(1) $+ Your nick was mentioned by $c(2) $+ $nick $c(1) $+ in $c(2) $+ $chan $+ . $c(1) $+ With the msg of : $c(2) $+ $1- | .splay $mircdirsounds/notice.wav }
if !$appactive {
.gload -h voice Merlin.acs
.gtalk voice $nick said: $1-
}
}
on *:agent:if $agentname == voice { .gunload voice }
on ^*:text:*:#:{
if ($R.Set(Nicky,Your.Nick.Win) == On) && (%alt_nick isin $1-) {
/window -n @Nick.Messages
/echo @Nick.Messages $ts $c(3) »»» $c(1) $+ Your nick was mentioned by $c(2) $+ $nick $c(1) $+ in $c(2) $+ $chan $+ . $c(1) $+ With the msg of : $c(2) $+ $1- | .splay $mircdirsounds/notice.wav }
if !$appactive {
.gload -h voice Merlin.acs
.gtalk voice $nick said: $1-
}
}
on *:agent:if $agentname == voice { .gunload voice }
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
Ok i found another problem, when someone says a number without something else the agents pops up and tells me I'm highlighted. What could be the problem?
Code atm is: ----------------------------------------------------------------- on *:text:*:#:{ if $highlight($1-) { if ( $chan !== $active || $cid != $activecid ) { echo -alt < $+ HIGHLIGHT: $nick @ $chan $+ > $1- } if !$appactive { talk You were highlighted by $nick } } }
alias talk { .gload -h talk default .gtalk talk $$1- } on *:agent:if ( $agentname == talk ) { .gunload talk } -----------------------------------------------------------------
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
OK That' would happen for any number<= your total highlight ebtries (in options) because you can also use$highlight(N). Easy fix is to add something to the front of the $1-, such as $nick. on *:text:*:#:{
if $highlight([color:red]$nick[/color] $1-) {
if ( $chan !== $active || $cid != $activecid ) { echo -alt < $+ HIGHLIGHT: $nick @ $chan $+ > $1- }
if !$appactive { talk You were highlighted by $nick }
}
}
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Hm I take it it's a longish sound (ogg or mp3 or such). Possibly use on mp3end / waveend / midiend (depending on the sound file type), check if $filename is the one used here and if so then do the agent stuff from that event.
|
|
|
|
Joined: Aug 2004
Posts: 237
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 237 |
|
|
|
|
Joined: Jan 2005
Posts: 15
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 15 |
was wondering if someone knew were i could find a small http downloader for my *.mrc files download to a dir then reload the files
thanks
paradox
|
|
|
|
|